/* ==========================================================================
   booking.css — Book Appointment page
   Classes created by the inline booking script are styled here too:
   .time-slots-grid .time-slot-card .time-slot-input .time-slot-label
   .check-icon .slot-time .slot-duration .slot-price .loading-slots .no-slots-message
   ========================================================================== */

.appointment-section {
    position: relative;
    isolation: isolate;
    padding: 0 var(--gutter) var(--section-y);
    background: var(--bg);
}

/* dark band behind the top of the card */
.appointment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    height: clamp(260px, 30vw, 340px);
    background: var(--grad-hero);
}

.appointment-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    height: clamp(260px, 30vw, 340px);
    background-image: var(--star-pattern);
}

.appointment-container {
    max-width: 920px;
    margin: 0 auto;
    padding-top: clamp(40px, 6vw, 72px);
}

.appointment-header {
    margin-bottom: clamp(26px, 4vw, 40px);
    color: #fff;
    text-align: center;
}

.appointment-header::before {
    content: 'Consultation with Siddhi Bhatt';
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 217, 160, .45);
    border-radius: var(--radius-pill);
    color: #ffd9a0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.appointment-title {
    margin-bottom: 8px;
    color: #fff;
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.08;
}

.appointment-subtitle {
    color: rgba(255, 244, 230, .88);
    font-family: var(--font-display);
    font-size: clamp(18px, 2.2vw, 22px);
    font-style: italic;
}

/* the form card */
#appointmentForm {
    display: grid;
    gap: 22px;
    padding: clamp(24px, 4.5vw, 52px);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 18px;
    padding: 14px 18px;
    border: 1px solid var(--gold-soft);
    border-radius: var(--radius);
    background: var(--gold-tint);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
}

.info-box p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}

.info-box .ico {
    margin-top: 2px;
    color: var(--brand);
}

.pricing-info .ico {
    color: var(--gold-600);
    width: 15px;
    height: 15px;
}

.form-errors {
    margin-bottom: 14px;
    padding: 14px 18px;
    border: 1px solid var(--danger-line);
    border-left: 4px solid var(--danger);
    border-radius: var(--radius-sm);
    background: var(--danger-bg);
    color: #7f1c16;
    font-size: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.form-group {
    margin: 0;
}

.form-label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}

.form-help-text {
    display: block;
    margin-top: 6px !important;
    color: var(--muted) !important;
    font-size: 13px !important;
}

/* ---------- Time slots ---------- */
.time-slots-section {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg);
}

.time-slots-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.time-slots-header .form-label {
    margin: 0;
    font-size: 16px;
}

.pricing-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.pricing-info p {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--text);
    font-size: 13px;
    line-height: 1.3;
}

.pricing-info .price {
    color: var(--success);
    font-weight: 600;
}

.selection-summary {
    display: none;
    margin-bottom: 16px;
    padding: 14px 18px;
    border: 1px solid var(--gold-soft);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.selection-summary.active {
    display: block;
    animation: themeFadeIn .3s var(--ease);
}

.selection-summary-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.selected-count {
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
}

.total-amount {
    color: var(--brand);
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
}

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

.time-slot-card {
    position: relative;
}

.time-slot-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.time-slot-label {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 96px;
    padding: 14px 10px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius);
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease, box-shadow var(--t) ease, transform var(--t) var(--ease);
}

.time-slot-label:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.time-slot-input:focus-visible + .time-slot-label {
    box-shadow: var(--ring);
}

.time-slot-input:checked + .time-slot-label {
    border-color: var(--brand);
    background: var(--grad-brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.slot-time {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.slot-duration {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.slot-price {
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--success-bg);
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
}

.time-slot-input:checked + .time-slot-label .slot-time,
.time-slot-input:checked + .time-slot-label .slot-duration {
    color: #fff;
}

.time-slot-input:checked + .time-slot-label .slot-price {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.check-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transform: scale(.4);
    transition: opacity var(--t-fast) ease, transform var(--t) var(--ease);
}

.check-icon::after {
    content: '';
    width: 11px;
    height: 11px;
    background: var(--brand);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.time-slot-input:checked + .time-slot-label .check-icon {
    opacity: 1;
    transform: scale(1);
}

.loading-slots,
.no-slots-message {
    padding: 32px 20px;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius);
    background: #fff;
    color: var(--muted);
    font-size: 15px;
    text-align: center;
}

.no-slots-message {
    border-color: var(--gold-soft);
    color: var(--ink);
}

.no-slots-message p + p {
    margin-top: 4px;
    color: var(--muted);
}

/* ---------- Payment ---------- */
.payment-section {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg);
}

.payment-section > .form-label {
    font-size: 16px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.payment-option {
    position: relative;
}

.payment-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 16px 18px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
    transition: border-color var(--t-fast) ease, box-shadow var(--t) ease, background-color var(--t-fast) ease;
}

.payment-label:hover {
    border-color: var(--gold);
}

.payment-input:focus-visible + .payment-label {
    box-shadow: var(--ring);
}

.payment-input:checked + .payment-label {
    border-color: var(--brand);
    background: var(--brand-tint);
    box-shadow: 0 0 0 1px var(--brand);
}

.payment-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 12px;
    background: var(--gold-tint);
    color: var(--brand);
}

.payment-icon .ico {
    width: 22px;
    height: 22px;
}

.payment-details {
    flex: 1;
    min-width: 0;
}

.payment-title {
    margin-bottom: 2px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.payment-description {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.payment-radio-indicator {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border: 2px solid var(--line-strong);
    border-radius: 50%;
    background: #fff;
    transition: border-color var(--t-fast) ease;
}

.payment-radio-indicator::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand);
    transform: scale(0);
    transition: transform var(--t) var(--ease);
}

.payment-input:checked + .payment-label .payment-radio-indicator {
    border-color: var(--brand);
}

.payment-input:checked + .payment-label .payment-radio-indicator::after {
    transform: scale(1);
}

/* ---------- Submit ---------- */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 16px 28px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--grad-brand);
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .06em;
    cursor: pointer;
    box-shadow: var(--shadow-brand);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t-fast) ease, opacity var(--t-fast) ease;
}

.submit-btn span:first-child {
    font-size: 12px;
}

.submit-btn:hover:not(:disabled) {
    background: var(--grad-brand-hover);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 640px) {
    .form-row,
    .payment-methods {
        grid-template-columns: 1fr;
    }

    .time-slots-section,
    .payment-section {
        padding: 16px;
    }

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

    #appointmentForm {
        border-radius: var(--radius-lg);
    }
}
