/* ==========================================================================
   Houston Child Development Center - Tour Booking & Inquiry Section
   Project Color Scheme:
   - Navy Heading / Main Dark: #393d72
   - Primary Accent / Gold / Button: #ffae00
   - Secondary Accent / Pink / Error: #ff4880
   - Sky Blue: #5798fe
   - Input Background / Cream: #f9f5f0
   - Border Color: #ede7df
   - Muted Text: #858687
   - White: #ffffff
   ========================================================================== */

.tour-booking-section {
    position: relative;
    padding: 95px 0 105px;
    background-color: #fbf9f6;
    background-image: 
        radial-gradient(#ffae0018 1px, transparent 1px),
        radial-gradient(#393d7210 1px, #fbf9f6 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    overflow: hidden;
}

/* Subtle background accent glow */
.tour-booking-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 174, 0, 0.12) 0%, rgba(251, 249, 246, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.tour-booking-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 72, 128, 0.08) 0%, rgba(251, 249, 246, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.tour-booking-section .auto-container {
    position: relative;
    z-index: 1;
}

/* Section Header (Adopting Bebio .sec-title standard) */
.tour-booking-section .sec-title {
    margin-bottom: 50px;
}

.tour-booking-section .sec-title .title {
    font-family: 'Schoolbell', cursive;
    font-size: 22px;
    color: #ff4880;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.tour-booking-section .sec-title h2 {
    font-family: 'Fredoka One', cursive;
    color: #393d72;
    font-size: 46px;
    line-height: 1.25;
    margin-bottom: 15px;
}

.tour-booking-section .sec-title .text {
    font-family: 'Rubik', sans-serif;
    color: #858687;
    font-size: 16px;
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto;
}

/* Two Columns Layout */
.tour-columns-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.tour-col {
    display: flex;
    margin-bottom: 30px;
}

/* Cards Base */
.tour-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 38px 36px;
    width: 100%;
    box-shadow: 0 16px 45px rgba(57, 61, 114, 0.08);
    border: 1.5px solid #f2ece4;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-card:hover {
    box-shadow: 0 22px 55px rgba(57, 61, 114, 0.12);
    transform: translateY(-2px);
}

/* Card Header */
.tour-card-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1.5px solid #f5eee5;
}

.card-icon-badge {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.calendar-card .card-icon-badge {
    background: #fff6e0;
    color: #ffae00;
    border: 1.5px solid rgba(255, 174, 0, 0.3);
}

.inquiry-card .card-icon-badge {
    background: #ffeef4;
    color: #ff4880;
    border: 1.5px solid rgba(255, 72, 128, 0.25);
}

.tour-card:hover .calendar-card .card-icon-badge,
.tour-card.calendar-card:hover .card-icon-badge {
    background: #ffae00;
    color: #ffffff;
    transform: scale(1.05);
}

.tour-card.inquiry-card:hover .card-icon-badge {
    background: #ff4880;
    color: #ffffff;
    transform: scale(1.05);
}

.card-title-group h3 {
    font-family: 'Fredoka One', cursive;
    color: #393d72;
    font-size: 25px;
    margin-bottom: 5px;
    line-height: 1.25;
}

.card-title-group p {
    font-family: 'Rubik', sans-serif;
    color: #858687;
    font-size: 14.5px;
    margin: 0;
    line-height: 1.45;
}

/* ==========================================================================
   Left Column - Calendar Styling (Project Colors)
   ========================================================================== */
.calendar-wrapper {
    background: #f9f5f0;
    border: 1.5px solid #ede7df;
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 24px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.month-title {
    font-family: 'Fredoka One', cursive;
    font-size: 20px;
    color: #393d72;
    margin: 0;
}

.calendar-nav-buttons {
    display: flex;
    gap: 8px;
}

.cal-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #ffffff;
    border: 1.5px solid #ede7df;
    color: #393d72;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.cal-nav-btn:hover:not(:disabled) {
    background: #ffae00;
    color: #ffffff;
    border-color: #ffae00;
    transform: scale(1.05);
}

.cal-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f2ece4;
}

/* Weekday Headers */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #858687;
    margin-bottom: 10px;
    font-family: 'Rubik', sans-serif;
    letter-spacing: 0.5px;
}

/* Calendar Days Grid */
.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    color: #393d72;
    background: #ffffff;
    border: 1.5px solid transparent;
    user-select: none;
    font-family: 'Rubik', sans-serif;
}

.cal-day.empty {
    background: transparent;
    cursor: default;
    border: none;
}

.cal-day.available {
    background: #ffffff;
    border-color: #ede7df;
    color: #393d72;
}

.cal-day.available:hover {
    background: #fff8e8;
    border-color: #ffae00;
    color: #393d72;
    transform: scale(1.06);
    z-index: 2;
}

.cal-day.is-today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #ff4880;
}

.cal-day.selected {
    background: #ffae00 !important;
    color: #ffffff !important;
    border-color: #ffae00 !important;
    font-weight: 700;
    box-shadow: 0 5px 14px rgba(255, 174, 0, 0.4);
    transform: scale(1.08);
    z-index: 3;
}

.cal-day.selected::after {
    background-color: #ffffff;
}

.cal-day.unavailable,
.cal-day.past {
    color: #c7c0b6;
    background: #f4eee7;
    cursor: not-allowed;
    border-color: transparent;
}

.cal-day.weekend {
    color: #c7c0b6;
    background: #f4eee7;
    cursor: not-allowed;
}

/* Legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e4dcce;
    font-size: 11.5px;
    color: #858687;
    font-family: 'Rubik', sans-serif;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.available {
    background-color: #ffae00;
}

.legend-dot.selected {
    background-color: #393d72;
}

.legend-dot.unavailable {
    background-color: #d8d0c4;
}

/* Time Slots */
.time-slots-container {
    margin-bottom: 24px;
    padding-top: 4px;
}

.slots-header h5 {
    font-family: 'Fredoka One', cursive;
    font-size: 16px;
    color: #393d72;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slots-header h5 i {
    color: #ffae00;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.time-slot-btn {
    padding: 11px 12px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 12px;
    background: #f9f5f0;
    border: 1.5px solid #ede7df;
    color: #393d72;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: 'Rubik', sans-serif;
}

.time-slot-btn:hover {
    background: #fff6e0;
    border-color: #ffae00;
    color: #ffae00;
    transform: translateY(-1px);
}

.time-slot-btn.selected {
    background: #ffae00;
    color: #ffffff;
    border-color: #ffae00;
    box-shadow: 0 4px 12px rgba(255, 174, 0, 0.35);
}

/* Appointment Summary Box */
.tour-summary-box {
    margin-top: auto;
    background: #f9f5f0;
    border: 1.5px solid #ede7df;
    border-radius: 20px;
    padding: 22px;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.summary-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #ffffff;
    color: #ffae00;
    border: 1.5px solid #ede7df;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.summary-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #858687;
    font-weight: 600;
    line-height: 1.2;
    font-family: 'Rubik', sans-serif;
}

.summary-value {
    display: block;
    font-size: 14px;
    color: #393d72;
    font-weight: 600;
    line-height: 1.3;
    font-family: 'Rubik', sans-serif;
}

/* Buttons adopting Bebio styles */
.tour-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 30px !important;
    font-size: 17px !important;
    line-height: 1.2 !important;
    border-radius: 50px !important;
    text-transform: capitalize;
    box-shadow: 0 6px 18px rgba(255, 174, 0, 0.28);
}

.btn-style-one.tour-submit-btn {
    background-color: #ffae00;
    color: #ffffff;
}

.btn-style-one.tour-submit-btn:hover {
    color: #ffffff;
    -webkit-animation: 2s rainbow infinite alternate;
    animation: 2s rainbow infinite alternate;
}

.btn-style-two.tour-submit-btn {
    background-color: #393d72;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(57, 61, 114, 0.25);
}

.btn-style-two.tour-submit-btn:hover {
    background-color: #ffae00;
    color: #ffffff;
}

/* Tour Feedback message */
.tour-feedback-message {
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    font-family: 'Rubik', sans-serif;
}

.tour-feedback-message.alert-success {
    background: #fff9ed;
    border: 1.5px solid #ffae00;
    color: #7a5000;
}

.tour-feedback-message.alert-warning {
    background: #fff2f5;
    border: 1.5px solid #ff4880;
    color: #b01a47;
}

/* ==========================================================================
   Right Column - Inquiry Form (Project Colors)
   ========================================================================== */
.tour-inquiry-form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.form-group-custom {
    margin-bottom: 16px;
    position: relative;
}

.form-group-custom label {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: 14px;
    font-weight: 400;
    color: #393d72;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.required-star {
    color: #ff4880;
    font-weight: 700;
}

.optional-tag {
    color: #858687;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 12px;
    margin-left: 4px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 18px;
    color: #ffae00;
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease;
}

/* Matching project's .contact-form input styles */
.form-control-custom {
    width: 100%;
    height: 52px;
    padding: 10px 18px 10px 48px;
    font-size: 15px;
    color: #393d72;
    background-color: #f9f5f0;
    border: 1.5px solid #ede7df;
    border-radius: 15px;
    transition: all 0.25s ease;
    outline: none;
    box-shadow: none;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
}

.form-control-custom::placeholder {
    color: #9c9993;
    font-weight: 400;
}

.form-control-custom:focus {
    background-color: #ffffff;
    border-color: #ffae00;
    box-shadow: 0 0 0 3px rgba(255, 174, 0, 0.2);
}

.form-control-custom:focus + .input-icon,
.input-with-icon:focus-within .input-icon {
    color: #ff4880;
}

.form-control-custom.is-invalid {
    border-color: #ff4880 !important;
    background-color: #fff6f8 !important;
}

.form-control-custom.is-invalid + .input-icon {
    color: #ff4880 !important;
}

.field-error-msg {
    display: block;
    color: #ff4880;
    font-size: 12.5px;
    margin-top: 4px;
    font-weight: 500;
    font-family: 'Rubik', sans-serif;
}

/* Custom Select styling */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffae00;
    pointer-events: none;
    font-size: 15px;
}

.select-wrapper select.form-control-custom {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    cursor: pointer;
}

/* Textarea */
.textarea-custom {
    height: auto;
    min-height: 90px;
    padding: 14px 18px;
    resize: vertical;
}

/* Contact Method Radios */
.contact-method-options {
    display: flex;
    gap: 12px;
}

.method-radio-label {
    flex: 1;
    margin: 0;
    cursor: pointer;
}

.method-radio-label input[type="radio"] {
    display: none;
}

.radio-custom-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f9f5f0;
    border: 1.5px solid #ede7df;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #393d72;
    transition: all 0.2s ease;
    text-align: center;
    font-family: 'Rubik', sans-serif;
}

.radio-custom-box i {
    color: #ffae00;
    transition: color 0.2s ease;
}

.method-radio-label input[type="radio"]:checked + .radio-custom-box {
    background: #393d72;
    border-color: #393d72;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(57, 61, 114, 0.25);
}

.method-radio-label input[type="radio"]:checked + .radio-custom-box i {
    color: #ffae00;
}

.method-radio-label:hover .radio-custom-box {
    border-color: #ffae00;
}

/* Privacy Consent Checkbox */
.consent-group {
    margin-top: 18px;
    margin-bottom: 22px;
}

.consent-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.consent-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 7px;
    border: 1.5px solid #ede7df;
    background-color: #f9f5f0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.consent-checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
    background-color: #ffae00;
    border-color: #ffae00;
}

.consent-checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #ffffff;
    font-size: 11px;
}

.consent-text {
    font-size: 13px;
    color: #858687;
    line-height: 1.55;
    font-family: 'Rubik', sans-serif;
}

.consent-text a.privacy-modal-link {
    color: #ff4880;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.consent-text a.privacy-modal-link:hover {
    color: #ffae00;
}

/* Success State Banner (Project Colors) */
.inquiry-success-banner {
    background: #fffaf0;
    border: 2px solid #ffae00;
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    margin-bottom: 20px;
    animation: fadeInSlideUp 0.4s ease;
}

.success-icon {
    font-size: 50px;
    color: #ffae00;
    margin-bottom: 14px;
}

.success-text h4 {
    font-family: 'Fredoka One', cursive;
    color: #393d72;
    font-size: 24px;
    margin-bottom: 10px;
}

.success-text p {
    font-family: 'Rubik', sans-serif;
    color: #393d72;
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.tour-btn-outline-sm {
    display: inline-block;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    background: #ffffff;
    border: 2px solid #393d72;
    color: #393d72;
    cursor: pointer;
    font-family: 'Fredoka One', cursive;
    transition: all 0.2s ease;
}

.tour-btn-outline-sm:hover {
    background: #393d72;
    color: #ffffff;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 991px) {
    .tour-booking-section {
        padding: 70px 0 80px;
    }
    .tour-booking-section .sec-title h2 {
        font-size: 34px;
    }
    .tour-card {
        padding: 30px 24px;
    }
    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    .tour-booking-section {
        padding: 55px 0 65px;
    }
    .tour-booking-section .sec-title h2 {
        font-size: 28px;
    }
    .tour-card {
        padding: 24px 18px;
        border-radius: 18px;
    }
    .card-title-group h3 {
        font-size: 21px;
    }
    .calendar-wrapper {
        padding: 14px 10px;
    }
    .cal-day {
        font-size: 13px;
        border-radius: 8px;
    }
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-method-options {
        flex-direction: column;
        gap: 8px;
    }
}
