/* ===== extra.css — Additions on top of styles.css ===== */

/* Doctor photo placeholder */
.doctor-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: linear-gradient(145deg, #DCEFE8 0%, #BFE5D2 100%);
    border-radius: 16px;
    gap: 16px;
    color: #1C6F4A;
}

.doctor-avatar svg {
    opacity: 0.4;
}

.photo-placeholder-text {
    font-size: 0.85rem;
    color: #6D6D6D;
    text-align: center;
    line-height: 1.6;
    padding: 0 20px;
}

/* When real photo is used — hide placeholder text */
.doctor-image-frame img.doctor-real-photo {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 3/4;
    display: block;
}

/* Floating badges on doctor card */
.doctor-badge-float {
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(14, 79, 79, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    font-family: 'Playfair Display', serif;
}

.badge-exp {
    bottom: -16px;
    right: -16px;
}

@media (max-width: 768px) {
    .badge-exp {
        bottom: 8px;
        right: 8px;
    }

    .badge-reg {
        top: 8px;
        left: 8px;
    }
}

.badge-exp .badge-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1C6F4A;
    line-height: 1;
}

.badge-exp .badge-lbl {
    font-size: 0.75rem;
    color: #6D6D6D;
    font-family: 'Inter', sans-serif;
}

.badge-reg {
    top: -12px;
    left: -12px;
    background: #D4AF37;
    color: #0E4F4F;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    padding: 8px 14px;
    border-radius: 20px;
    flex-direction: row;
    gap: 4px;
}

/* Direct contact box */
.direct-contact-box {
    margin-top: 32px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.direct-contact-box p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    width: 100%;
    text-align: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 40px;
    background: #1C6F4A;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.contact-link:hover {
    background: #0E4F4F;
    transform: translateY(-2px);
}

.whatsapp-link {
    background: #25D366;
}

.whatsapp-link:hover {
    background: #1da851;
}

/* Address field (shown/hidden) */
#addressGroup {
    transition: all 0.3s ease;
}

#addressGroup input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #DCEFE8;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    background: #FDFDFC;
    color: #2B2B2B;
    transition: all 0.3s ease;
    outline: none;
}

#addressGroup input:focus {
    border-color: #1C6F4A;
    background: white;
}

/* Loading spinner on submit button */
.btn-submit.loading {
    opacity: 0.75;
    cursor: not-allowed;
    position: relative;
}

.btn-submit.loading svg {
    display: none;
}

/* Form validation highlights */
input.invalid,
select.invalid,
textarea.invalid {
    border-color: #e05c5c !important;
}

/* Booking subtitle */
.booking-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* ===== Payment Step (Step 2 of booking form) ===== */

#formStep1,
#formStep2 {
    animation: fadeStepIn 0.35s ease;
}

@keyframes fadeStepIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Appointment summary card */
.appointment-summary {
    background: #F4FAF7;
    border: 1px solid #DCEFE8;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.appointment-summary h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #0E4F4F;
    margin: 0 0 12px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(28, 111, 74, 0.08);
    font-size: 0.92rem;
}

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

.summary-label {
    color: #6D6D6D;
}

.summary-value {
    color: #2B2B2B;
    font-weight: 600;
    text-align: right;
}

.summary-row-fee {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 2px solid #DCEFE8;
    border-bottom: none;
}

.summary-row-fee .summary-label {
    color: #0E4F4F;
    font-weight: 700;
}

.summary-row-fee .summary-value {
    color: #1C6F4A;
    font-size: 1.2rem;
    font-weight: 800;
}

/* Payment method selector — mirrors .service-type-options styling */
.payment-method-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 640px) {
    .payment-method-options {
        grid-template-columns: 1fr;
    }
}

.payment-method-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-method-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    border: 2px solid #DCEFE8;
    border-radius: 14px;
    background: #FDFDFC;
    cursor: pointer;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2B2B2B;
    transition: all 0.2s ease;
}

.payment-method-option label svg {
    width: 22px;
    height: 22px;
    color: #1C6F4A;
}

.payment-method-option input[type="radio"]:checked+label {
    border-color: #1C6F4A;
    background: #EAF6EF;
    box-shadow: 0 4px 14px rgba(28, 111, 74, 0.15);
}

/* Account details card (EasyPaisa / JazzCash) */
.account-details-card {
    background: #FDFDFC;
    border: 1.5px solid #DCEFE8;
    border-radius: 16px;
    padding: 20px 24px;
    margin: 16px 0 24px 0;
}

.account-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(28, 111, 74, 0.08);
}

.account-detail-row:last-of-type {
    border-bottom: none;
}

.account-label {
    font-size: 0.85rem;
    color: #6D6D6D;
    flex-shrink: 0;
}

.account-value {
    font-weight: 700;
    color: #0E4F4F;
    font-size: 1rem;
    flex-grow: 1;
    text-align: right;
}

.copy-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    border: 1.5px solid #1C6F4A;
    background: transparent;
    color: #1C6F4A;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #1C6F4A;
    color: white;
}

/* Card payment "coming soon" notice */
.card-notice {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0 24px 0;
    font-size: 0.9rem;
    color: #6D5511;
    line-height: 1.6;
}

.card-notice a {
    color: #1C6F4A;
    font-weight: 700;
}

/* Step 2 action buttons */
.form-step2-buttons {
    display: flex;
    gap: 12px;
}

.form-step2-buttons .btn-outline {
    flex: 0 0 auto;
}

.form-step2-buttons .btn-submit {
    flex: 1;
}

/* EmailJS setup notice (shown in dev, hidden in prod) */
.setup-notice {
    background: #fffbf3;
    border: 1.5px solid #f0d9a0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: #856404;
    display: none;
    /* shown by JS only when keys not configured */
}

.setup-notice.visible {
    display: block;
}

.setup-notice strong {
    display: block;
    margin-bottom: 4px;
}

.setup-notice code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
}