/* assets/css/waste-collection.css */
/* Specific styles for the Waste Collection booking page */

/* --- Hero Section --- */
.hero-waste-collection {
    /* Ensure 'assets/images/' exists relative to the *HTML file* for this path to work from CSS */
    /* Path goes UP from css folder, then DOWN into images */
    background: linear-gradient(rgba(40, 167, 69, 0.8), rgba(0, 0, 0, 0.8)), url('../images/waste-collection-hero.jpg') center center no-repeat;
    background-size: cover;
    padding: 5rem 0 4rem;
    color: #fff;
}

/* --- Benefits Section --- */
.waste-collection-benefits .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(40, 167, 69, 0.1); /* Using RGB for alpha */
    border-radius: 50%;
    margin: 0 auto 1.25rem auto; /* Center horizontally */
    color: var(--bs-success, #198754); /* Fallback color */
    font-size: 1.5rem;
}
.waste-collection-benefits .benefit-item h3 {
    color: var(--bs-dark, #212529); /* Ensure heading color stands out */
}

/* --- Booking Widget --- */
.booking-widget {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 2rem;
}

.booking-widget .nav-tabs {
    border-bottom: 1px solid #dee2e6; /* Use Bootstrap's variable or color */
    margin-bottom: 25px;
}

.booking-widget .nav-tabs .nav-link {
    border: none;
    color: #6c757d; /* Secondary text color */
    font-weight: 500;
    padding: 0.75rem 1rem;
    margin-right: 0.5rem;
    border-radius: 0; /* Sharp top corners */
    position: relative;
    transition: color 0.3s ease;
    background: none; /* Ensure no background */
    border-bottom: 3px solid transparent; /* Reserve space for underline */
    margin-bottom: -1px; /* Overlap border */
}

.booking-widget .nav-tabs .nav-link:hover {
    color: #495057; /* Slightly darker on hover */
}

.booking-widget .nav-tabs .nav-link.active {
    color: var(--bs-success, #198754);
    background-color: transparent;
    border-bottom-color: var(--bs-success, #198754); /* Use border for underline */
    font-weight: 600; /* Make active tab bolder */
}

/* Remove pseudo-element underline method if using border */
/* .booking-widget .nav-tabs .nav-link::after { ... } */
/* .booking-widget .nav-tabs .nav-link.active::after { ... } */


/* --- Form Options Styling (Radios/Checkboxes as Buttons) --- */
.vehicle-option,
.waste-type-option,
.frequency-option,
.address-type-option,
.payment-method-option {
    display: none; /* Hide the actual input */
}

.vehicle-option + label,
.waste-type-option + label,
.frequency-option + label,
.address-type-option + label,
.payment-method-option + label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #dee2e6; /* Bootstrap default border color */
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff; /* Ensure options have white background */
}

.vehicle-option + label:hover,
.waste-type-option + label:hover,
.frequency-option + label:hover,
.address-type-option + label:hover,
.payment-method-option + label:hover {
    border-color: var(--bs-success, #198754);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.vehicle-option:checked + label,
.waste-type-option:checked + label,
.frequency-option:checked + label,
.address-type-option:checked + label,
.payment-method-option:checked + label {
    border-color: var(--bs-success, #198754);
    background-color: rgba(25, 135, 84, 0.05); /* Light success background */
    box-shadow: 0 3px 10px rgba(25, 135, 84, 0.1);
    border-width: 1px; /* Ensure border width consistent */
}

/* Specifics for different option types */

/* Vehicle */
.vehicle-option + label .vehicle-icon { font-size: 1.75rem; color: var(--bs-success, #198754); margin-right: 15px; width: 40px; text-align: center; }
.vehicle-option + label .vehicle-details { flex: 1; }
.vehicle-option + label .vehicle-details h5 { margin-bottom: 0.25rem; font-weight: 600; font-size: 1rem;}
.vehicle-option + label .vehicle-details p { margin-bottom: 0; font-size: 0.9rem; color: #6c757d; }

/* Waste Type (Pills) */
.waste-type-option + label { display: inline-flex; padding: 8px 15px; border-radius: 50px; margin-right: 10px; font-size: 0.9rem; }
.waste-type-option:checked + label { background-color: var(--bs-success, #198754); color: white; }
.waste-type-option + label i { margin-right: 5px; }

/* Frequency & Address Type (Column Layout) */
.frequency-option + label,
.address-type-option + label { display: flex; justify-content: center; flex-direction: column; width: 100%; padding: 15px 10px; text-align: center; }
.frequency-option + label i,
.address-type-option + label i { font-size: 1.5rem; color: var(--bs-success, #198754); margin-bottom: 8px; }
.frequency-option + label span,
.address-type-option + label span { font-weight: 500; }

/* Payment Method */
.payment-method-option + label .payment-icon { font-size: 1.5rem; color: var(--bs-success, #198754); margin-right: 15px; width: 40px; text-align: center; }
.payment-method-option + label .payment-details { flex: 1; }
.payment-method-option + label .payment-details h5 { margin-bottom: 0.25rem; font-weight: 600; font-size: 1rem; }
.payment-method-option + label .payment-details p { margin-bottom: 0; font-size: 0.9rem; color: #6c757d; }

/* --- Booking Summary --- */
.booking-summary {
    background-color: rgba(25, 135, 84, 0.05); /* Light success background */
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
    border: 1px solid rgba(25, 135, 84, 0.1); /* Subtle border */
}
.booking-summary h5 { margin-bottom: 15px; color: var(--bs-success, #198754); font-weight: 600; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 0.95rem; line-height: 1.4; }
.summary-row span:first-child { color: #6c757d; padding-right: 10px; flex-shrink: 0; } /* Label */
.summary-row span:last-child { font-weight: 500; text-align: right; word-break: break-word; } /* Value */
.summary-row.total { border-top: 1px solid #dee2e6; padding-top: 10px; margin-top: 10px; font-weight: 700; font-size: 1.1rem; }
.summary-row.total span:last-child { color: var(--bs-success, #198754); }
.estimate-tag { display: inline-block; background-color: var(--bs-success, #198754); color: white; font-size: 0.7rem; padding: 2px 8px; border-radius: 50px; margin-left: 5px; font-weight: 400; vertical-align: middle; }

/* --- Pricing Section --- */
.city-pricing-card {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border: 1px solid #dee2e6;
    height: 100%; /* Make cards same height in a row */
    display: flex; /* Enable flex for footer */
    flex-direction: column;
}
.city-pricing-card .card-header { background-color: var(--bs-success, #198754); color: white; text-align: center; padding: 1rem; }
.city-pricing-card .card-body { padding: 1.5rem; flex-grow: 1; } /* Allow body to grow */
.city-pricing-card h5 { color: var(--bs-success, #198754); font-size: 1rem; margin-bottom: 0.8rem; font-weight: 600; }
.city-pricing-card p { font-size: 0.9rem; margin-bottom: 0.5rem; color: #495057; }
.city-pricing-card strong { color: #212529; font-weight: 600;}

/* --- General Section Titles --- */
.section-title { font-weight: 700; margin-bottom: 0.75rem; }
.section-subtitle { font-size: 1.1rem; color: #6c757d; margin-bottom: 3rem; }

/* --- Map Preview Placeholder --- */
#map-preview {
    background-color: #e9ecef; /* Light grey background */
    border: 1px solid #ced4da; /* Standard border */
}

/* --- Validation Feedback --- */
.invalid-feedback { width: 100%; margin-top: .25rem; font-size: .875em; color: var(--bs-danger, #dc3545); }
.was-validated .form-check-input:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-feedback { display: block; }
.was-validated #weekly-options .invalid-feedback.d-block { display: block !important; } /* Ensure weekly feedback shows */