/* Booking Page Styles */

.booking-hero {
    padding: 160px 20px 80px;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE8B3 100%);
    text-align: center;
}

.booking-hero h1 {
    font-size: 56px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.booking-hero p {
    font-size: 24px;
    color: #666;
}

.booking-section {
    padding: 80px 20px;
    background: #fff;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto 80px;
    position: relative;
    padding: 20px 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #D1D1D6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step-label {
    font-size: 15px;
    color: #86868B;
    font-weight: 500;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.step.active .step-number {
    background: #C9A55E;
    width: 32px;
    height: 32px;
    box-shadow: 0 4px 12px rgba(201, 165, 94, 0.3);
    transform: scale(1);
}

.step.active .step-label {
    color: #1d1d1f;
    font-weight: 600;
}

.step.completed .step-number {
    background: #C9A55E;
    position: relative;
    width: 24px;
    height: 24px;
    box-shadow: 0 2px 8px rgba(201, 165, 94, 0.25);
}

.step.completed .step-number::after {
    content: '\2713';
    position: absolute;
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.step.completed .step-label {
    color: #86868B;
    font-weight: 500;
}

/* Booking Form */
.booking-form {
    max-width: 900px;
    margin: 0 auto;
    background: #F5F5F7;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

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

.form-step h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.step-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

/* Center titles on service selection page */
.form-step[data-step="1"] h2,
.form-step[data-step="1"] .step-description {
    text-align: center;
}

.section-subtitle {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 30px 0 15px;
}

.section-subtitle.centered-title {
    text-align: center;
    margin-bottom: 24px;
}

.field-note {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* Service Selection */
.services-selection {
    margin-bottom: 40px;
}

.service-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Center the last card when there's an odd number */
.service-cards-grid.odd-count .service-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.service-card {
    background: white;
    border: 3px solid transparent;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.service-card:hover {
    border-color: #C9A55E;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(201, 165, 94, 0.2);
}

.service-card.selected {
    border-color: #C9A55E;
    background: #FFF9E6;
}

/* Service Checkbox */
.service-checkbox {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
}

.service-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: #C9A55E;
    cursor: pointer;
    border-radius: 6px;
}

.service-checkbox label {
    cursor: pointer;
    display: inline-block;
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.service-price {
    font-size: 28px;
    font-weight: 700;
    color: #C9A55E;
    margin-bottom: 12px;
}

.service-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.service-category {
    display: inline-block;
    background: #C9A55E;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Date & Time Selection */
.datetime-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.date-picker-container,
.time-picker-container {
    background: white;
    padding: 24px;
    border-radius: 16px;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.time-slot {
    padding: 14px 8px;
    border: 2px solid #E5E5E7;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: #1d1d1f;
    font-size: 14px;
    min-width: 110px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-slot:hover {
    border-color: #C9A55E;
    background: #FFF9E6;
}

.time-slot.selected {
    border-color: #C9A55E;
    background: #C9A55E;
    color: white;
}

.time-slot.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
}

.select-date-first {
    grid-column: 1 / -1;
    text-align: center;
    color: #86868B;
    padding: 40px;
}

/* Form Inputs */
.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E5E5E7;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #C9A55E;
    box-shadow: 0 0 0 4px rgba(201, 165, 94, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Medical Checkboxes */
.medical-checkboxes {
    background: white;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-group:last-child {
    margin-bottom: 0;
}

.checkbox-group > label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.radio-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
    padding: 10px 16px;
    border: 2px solid #E5E5E7;
    border-radius: 12px;
    transition: all 0.3s;
}

.radio-options label:hover {
    border-color: #C9A55E;
    background: #FFF9E6;
}

.radio-options input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #C9A55E;
    cursor: pointer;
}

/* Booking Summary */
.booking-summary {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.summary-section {
    padding: 20px 0;
    border-bottom: 1px solid #E5E5E7;
}

.summary-section:last-child {
    border-bottom: none;
}

.summary-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.summary-section p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin: 4px 0;
}

/* Consent Section */
.consent-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #C9A55E;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 16px 40px;
    border: none;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-prev {
    background: white;
    color: #1d1d1f;
    border: 2px solid #E5E5E7;
}

.btn-prev:hover {
    border-color: #C9A55E;
    color: #C9A55E;
}

.btn-next,
.btn-submit {
    background: #C9A55E;
    color: white;
    min-width: 180px;
}

.btn-next:hover,
.btn-submit:hover {
    background: #B89440;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 165, 94, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
}

.alert-error {
    background: #FFE5E5;
    color: #D32F2F;
    border: 1px solid #FFCDD2;
}

.alert-success {
    background: #E8F5E9;
    color: #388E3C;
    border: 1px solid #C8E6C9;
}

.alert-info {
    background: #E3F2FD;
    color: #1976D2;
    border: 1px solid #BBDEFB;
}

/* Loading State */
.service-loading {
    text-align: center;
    padding: 60px;
    color: #86868B;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .booking-hero {
        padding: 140px 16px 60px;
    }

    .booking-hero h1 {
        font-size: 36px;
    }

    .booking-hero p {
        font-size: 18px;
    }

    .booking-section {
        padding: 60px 16px;
    }

    .progress-steps {
        margin-bottom: 60px;
        gap: 24px;
        padding: 15px 0;
    }

    .step-label {
        font-size: 13px;
    }

    .step-number {
        width: 20px;
        height: 20px;
    }

    .step.active .step-number {
        width: 28px;
        height: 28px;
    }

    .step.completed .step-number {
        width: 20px;
        height: 20px;
    }

    .step.completed .step-number::after {
        font-size: 14px;
    }

    .booking-form {
        padding: 30px 20px;
    }

    .form-step h2 {
        font-size: 28px;
    }

    .step-description {
        font-size: 16px;
    }

    .service-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* On mobile, odd cards still span full width but are more constrained */
    .service-cards-grid.odd-count .service-card:last-child {
        max-width: 100%;
    }

    .service-card {
        padding: 16px;
    }

    .service-card h3 {
        font-size: 16px;
    }

    .service-price {
        font-size: 22px;
    }

    .service-description {
        font-size: 13px;
    }

    .datetime-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .time-slot {
        min-width: 100px;
        height: 44px;
        font-size: 13px;
        padding: 12px 6px;
    }

    .radio-options {
        flex-direction: column;
        gap: 12px;
    }

    .radio-options label {
        width: 100%;
    }

    .form-navigation {
        flex-direction: column-reverse;
    }

    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .booking-hero {
        padding: 120px 12px 50px;
    }

    .booking-hero h1 {
        font-size: 32px;
    }

    .booking-form {
        padding: 24px 16px;
    }

    .form-step h2 {
        font-size: 24px;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
        margin-bottom: 50px;
        padding: 10px 0;
    }

    .step-label {
        font-size: 12px;
    }

    .step-number {
        width: 18px;
        height: 18px;
    }

    .step.active .step-number {
        width: 24px;
        height: 24px;
    }

    .step.completed .step-number {
        width: 18px;
        height: 18px;
    }

    .step.completed .step-number::after {
        font-size: 12px;
    }
}

/* Flatpickr Customization */
.flatpickr-calendar {
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: none;
}

.flatpickr-day.selected {
    background: #C9A55E;
    border-color: #C9A55E;
}

.flatpickr-day:hover {
    background: #FFF9E6;
    border-color: #C9A55E;
}
