﻿
/* =========================================================
   AvTaxServ Appointment Booking
   Matches Views/Appointments/Book.cshtml
   ========================================================= */

.appointment-page {
    padding: 56px 0 80px;
    background: var(--background, #F8FAFC);
    color: var(--text, #111827);
}

    .appointment-page > .container {
        max-width: 1320px;
    }

/* Hero */

.appointment-hero {
    max-width: 900px;
    margin: 0 auto 44px;
}

.appointment-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--primary, #A10F3C);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.appointment-hero h1 {
    margin: 0 0 16px;
    color: var(--dark, #1F2937);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
}

    .appointment-hero h1 span {
        color: var(--primary, #A10F3C);
    }

.appointment-hero > p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--gray, #6B7280);
    line-height: 1.75;
}

.appointment-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    margin-top: 20px;
}

    .appointment-highlights span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: var(--dark, #1F2937);
        font-size: 0.93rem;
    }

    .appointment-highlights i {
        color: var(--primary, #A10F3C);
    }

/* Main booking card */

.appointment-card {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    padding: 36px;
    overflow: visible;
    background: var(--card, #FFFFFF);
    border: 1px solid var(--border, #E5E7EB);
    border-radius: 18px;
    box-shadow: 0 10px 32px rgb(15 23 42 / 5%);
}

/* Numbered section headings */

.appointment-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    min-width: 0;
    margin: 0 0 26px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.appointment-step-number {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: var(--primary, #A10F3C);
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
}

.appointment-step > div:last-child {
    flex: 1 1 auto;
    min-width: 0;
}

.appointment-step h2 {
    margin: 0 0 7px;
    color: var(--dark, #1F2937);
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
}

.appointment-step p {
    margin: 0;
    color: var(--gray, #6B7280);
    font-size: 0.96rem;
    line-height: 1.6;
}

.appointment-divider {
    width: 100%;
    height: 1px;
    margin: 30px 0;
    background: var(--border, #E5E7EB);
}

/* Form controls */

.appointment-card .form-label {
    display: block;
    margin-bottom: 9px;
    color: var(--dark, #1F2937);
    font-weight: 600;
}

.appointment-card .form-control,
.appointment-card .form-select {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    border: 1px solid var(--border, #E5E7EB);
    border-radius: 9px;
    background-color: #FFFFFF;
    color: var(--text, #111827);
}

.appointment-card .form-select {
    cursor: pointer;
}

.appointment-card textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.appointment-card .form-control:focus,
.appointment-card .form-select:focus {
    border-color: var(--primary, #A10F3C);
    box-shadow: 0 0 0 3px rgb(161 15 60 / 12%);
}

.appointment-card .form-control::placeholder {
    color: #9CA3AF;
}

.appointment-card .text-muted {
    color: var(--gray, #6B7280) !important;
}

/* Available time slots */

.appointment-times {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.appointment-time-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 11px 10px;
    border: 1px solid var(--border, #E5E7EB);
    border-radius: 9px;
    background: #FFFFFF;
    color: var(--dark, #1F2937);
    font-size: 0.94rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

    .appointment-time-slot:hover {
        border-color: var(--primary, #A10F3C);
        color: var(--primary, #A10F3C);
    }

    .appointment-time-slot.active,
    .appointment-time-slot.selected,
    .appointment-time-slot[aria-pressed="true"] {
        border-color: var(--primary, #A10F3C);
        background: var(--primary, #A10F3C);
        color: #FFFFFF;
    }

    .appointment-time-slot:focus-visible {
        outline: 3px solid rgb(161 15 60 / 22%);
        outline-offset: 2px;
    }

    .appointment-time-slot:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.appointment-empty-state {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding: 18px 16px;
    border: 1px dashed var(--border, #E5E7EB);
    border-radius: 10px;
    background: #F9FAFB;
    color: var(--gray, #6B7280);
    font-size: 0.94rem;
    line-height: 1.6;
}

/* Alerts */

#appointmentAlert {
    margin-bottom: 24px;
    border-radius: 10px;
}

/* Submit area */

.appointment-submit-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    margin-top: 30px;
}

    .appointment-submit-area .btn-avtax {
        min-height: 50px;
        padding: 13px 30px;
        border-radius: 40px;
        font-weight: 700;
    }

        .appointment-submit-area .btn-avtax:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

    .appointment-submit-area > p {
        margin: 0;
        color: var(--gray, #6B7280);
        font-size: 0.88rem;
        text-align: right;
    }

/* Booking confirmation */

.appointment-confirmation {
    margin-top: 26px;
    padding: 28px;
    border: 1px solid #BBF7D0;
    border-radius: 14px;
    background: #F0FDF4;
    color: #166534;
    overflow-wrap: anywhere;
}

    .appointment-confirmation h4 {
        margin-bottom: 14px;
        font-weight: 700;
    }

    .appointment-confirmation p:last-child {
        margin-bottom: 0;
    }

/* Responsive */

@media (max-width: 991.98px) {
    .appointment-page > .container {
        max-width: 100%;
    }

    .appointment-card {
        padding: 28px;
    }

    .appointment-times {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .appointment-page {
        padding: 36px 0 56px;
    }

    .appointment-hero {
        margin-bottom: 30px;
    }

    .appointment-highlights {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .appointment-card {
        padding: 22px 16px;
        border-radius: 14px;
    }

    .appointment-step {
        gap: 12px;
        margin-bottom: 22px;
    }

    .appointment-step-number {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 0.95rem;
    }

    .appointment-step h2 {
        font-size: 1.15rem;
    }

    .appointment-step p {
        font-size: 0.9rem;
    }

    .appointment-divider {
        margin: 24px 0;
    }

    .appointment-times {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .appointment-time-slot {
        padding: 10px 6px;
        font-size: 0.86rem;
    }

    .appointment-submit-area {
        align-items: stretch;
    }

        .appointment-submit-area .btn-avtax {
            width: 100%;
        }

        .appointment-submit-area > p {
            text-align: center;
        }

    .appointment-confirmation {
        padding: 20px 16px;
    }
}

/* Turnstile alignment above the booking button */
.appointment-turnstile {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 24px;
    margin-bottom: 16px;
}

@media (max-width: 575.98px) {
    .appointment-turnstile {
        justify-content: center;
    }
}


/* Appointment review modal */

.appointment-review-modal {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
}

    .appointment-review-modal .modal-header {
        padding: 1.4rem 1.5rem;
        border-bottom: 1px solid #e9edf2;
    }

    .appointment-review-modal .modal-title {
        font-weight: 700;
        color: #202b3c;
    }

    .appointment-review-modal .modal-body {
        padding: 1.5rem;
    }

.appointment-review-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

    .appointment-review-item > i {
        color: #a80f43;
        font-size: 1.1rem;
        width: 22px;
        text-align: center;
        margin-top: 3px;
    }

.appointment-review-label {
    color: #6c757d;
    font-size: 0.82rem;
    margin-bottom: 0.2rem;
}

.appointment-review-value {
    color: #202b3c;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.appointment-review-notice {
    background: #f8f9fb;
    border: 1px solid #e9edf2;
    border-radius: 10px;
    padding: 0.9rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #596579;
}

.appointment-review-modal .modal-footer {
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid #e9edf2;
    gap: 0.5rem;
}

.appointment-review-modal .btn {
    border-radius: 8px;
    padding: 0.65rem 1rem;
}

@media (max-width: 575.98px) {
    .appointment-review-modal .modal-header,
    .appointment-review-modal .modal-body {
        padding: 1.1rem;
    }

    .appointment-review-modal .modal-footer {
        padding: 1rem 1.1rem;
    }

        .appointment-review-modal .modal-footer .btn {
            flex: 1;
        }
}
