/* ============================================================
/* ============================================================
   VIDEO CONSULTATION — Mobile-first styles
   Chrome + Safari compatible (iOS safe-area, webkit prefixes)
   ============================================================ */

/* ── Booking Modal ────────────────────────────────────────── */
.vc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 7500;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.vc-modal-overlay.open {
    display: flex;
    animation: vcFadeIn 0.25s ease;
}

@keyframes vcFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.vc-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    animation: vcSlideUp 0.35s cubic-bezier(0.34,1.3,0.64,1);
    -webkit-overflow-scrolling: touch;
}

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

.vc-modal::-webkit-scrollbar { width: 5px; }
.vc-modal::-webkit-scrollbar-track { background: #f5f5f5; }
.vc-modal::-webkit-scrollbar-thumb { background: #4caf50; border-radius: 10px; }

.vc-modal-accent {
    height: 7px;
    background: linear-gradient(90deg, #43a047 0%, #66bb6a 50%, #1565c0 100%);
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.vc-modal-close {
    position: absolute;
    top: 0.9rem;
    right: 1.1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #bbb;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, transform 0.15s;
    -webkit-appearance: none;
}

.vc-modal-close:hover { color: #555; transform: rotate(90deg); }

.vc-modal-body {
    padding: 1.75rem 2rem 2rem;
}

/* Progress steps */
.vc-step-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.vc-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: background 0.25s, transform 0.25s;
}

.vc-step-dot.active { background: #4caf50; transform: scale(1.35); }
.vc-step-dot.done   { background: #a5d6a7; }

.vc-step-icon  { text-align: center; font-size: 3rem; margin-bottom: 0.4rem; line-height: 1; }
.vc-step-title { text-align: center; font-size: 1.3rem; font-weight: 700; color: #1a1a1a; margin: 0 0 0.4rem; line-height: 1.3; }
.vc-step-sub   { text-align: center; font-size: 0.9rem; color: #666; margin: 0 0 1.5rem; line-height: 1.5; }

/* ── Step 1: Date picker ─────────────────────────────────── */
.vc-date-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.vc-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.vc-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.vc-form-group input,
.vc-form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background: #fff;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    min-height: 48px;
}

.vc-form-group input:focus,
.vc-form-group select:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76,175,80,0.12);
}

/* ── Step 2: Slot cards ──────────────────────────────────── */
.vc-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    max-height: 280px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
}

.vc-slot-card {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 0.85rem 0.65rem;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.vc-slot-card:hover  { border-color: #4caf50; background: #f1f8e9; transform: translateY(-2px); }
.vc-slot-card.selected { border-color: #4caf50; background: #e8f5e9; }
.vc-slot-card.booked   { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.vc-slot-time {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
}

.vc-slot-period {
    font-size: 0.72rem;
    color: #888;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vc-slots-empty {
    grid-column: 1/-1;
    text-align: center;
    color: #aaa;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── Step 3: Details form ────────────────────────────────── */
.vc-details-grid {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.vc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.vc-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark);
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s;
}

.vc-textarea:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76,175,80,0.12);
}

/* ── Step 4: Payment ─────────────────────────────────────── */
.vc-summary-card {
    background: #f9fbe7;
    border: 2px solid #c8e6c9;
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.vc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

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

.vc-summary-row strong {
    font-weight: 700;
    color: #2e7d32;
    font-size: 1.1rem;
}

.vc-payment-methods {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.vc-pay-btn {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 52px;
    -webkit-appearance: none;
}

.vc-pay-btn:hover { border-color: #4caf50; box-shadow: 0 3px 12px rgba(76,175,80,0.15); }

.vc-pay-btn.primary-pay {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(67,160,71,0.35);
}

.vc-pay-btn.primary-pay:hover { box-shadow: 0 7px 22px rgba(67,160,71,0.5); }

/* ── Nav buttons ─────────────────────────────────────────── */
.vc-nav-btns {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    /* Sticky at bottom of VC modal */
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 0.75rem 0 0.5rem;
    border-top: 1px solid #f0f0f0;
    z-index: 10;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.vc-btn-back {
    flex: 0 0 auto;
    padding: 0.85rem 1.4rem;
    background: #f5f5f5;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: background 0.15s;
    min-height: 48px;
    -webkit-appearance: none;
}

.vc-btn-back:hover { background: #e8e8e8; }

.vc-btn-next {
    flex: 1;
    padding: 0.85rem;
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(67,160,71,0.35);
    transition: transform 0.15s, box-shadow 0.15s;
    min-height: 48px;
    -webkit-appearance: none;
}

.vc-btn-next:hover { transform: translateY(-2px); box-shadow: 0 7px 20px rgba(67,160,71,0.5); }
.vc-btn-next:active { transform: translateY(0); }
.vc-btn-next:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Step 5: Confirmation ────────────────────────────────── */
.vc-confirm-card {
    text-align: center;
    padding: 1rem 0;
}

.vc-confirm-icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
}

.vc-confirm-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.vc-confirm-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.vc-confirm-details {
    background: #f9fbe7;
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: left;
    margin-bottom: 1.25rem;
}

.vc-confirm-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.88rem;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.vc-confirm-detail-row:last-child { border-bottom: none; }
.vc-confirm-detail-row span:first-child { color: #888; }
.vc-confirm-detail-row span:last-child  { font-weight: 600; }

/* ── Consult Nudge — slides in from LEFT on desktop ─────── */
.vc-nudge-banner {
    position: fixed;
    top: 50%;
    left: 1.25rem;
    transform: translateY(-50%) translateX(-120%);
    opacity: 0;
    pointer-events: none;
    width: 90%;
    max-width: 340px;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 60%, #1b5e20 100%);
    color: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.15);
    z-index: 6100;
    /* Start clipped — JS switches to overflow:visible after slide-in completes */
    overflow: hidden;
    transition: transform 0.42s cubic-bezier(0.34,1.3,0.64,1), opacity 0.35s ease;
}

.vc-nudge-banner.visible {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* ── Phone image — overflows above the card ───────────── */
.vc-nudge-phone-wrap {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-62%)
               perspective(700px) rotateY(-8deg) rotateX(3deg);
    width: 160px;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 20px 28px rgba(0,0,0,0.5));
    animation: vcPhoneFloat 3.4s ease-in-out infinite;
    will-change: transform;
    transform-origin: center bottom;
}

.vc-nudge-phone-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 22px;
    /* Remove white background from the JPEG */
    mix-blend-mode: luminosity;
    mix-blend-mode: normal; /* fallback — image already has phone frame */
}

@keyframes vcPhoneFloat {
    0%   { transform: translateX(-50%) translateY(-62%) perspective(700px) rotateY(-8deg) rotateX(3deg) translateZ(0px); }
    50%  { transform: translateX(-50%) translateY(-65%) perspective(700px) rotateY(-8deg) rotateX(3deg) translateZ(8px); }
    100% { transform: translateX(-50%) translateY(-62%) perspective(700px) rotateY(-8deg) rotateX(3deg) translateZ(0px); }
}

.vc-nudge-inner { padding: 1.6rem 1.75rem 1.75rem; padding-top: 6rem; }

.vc-nudge-heading {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.65rem;
    padding-right: 2rem;
}

.vc-nudge-emoji { font-size: 2.4rem; line-height: 1; flex-shrink: 0; }

.vc-nudge-text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.vc-nudge-text span {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.5;
    display: block;
}

.vc-nudge-dismiss {
    position: absolute;
    top: 0.9rem;
    right: 1rem;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, transform 0.15s;
    z-index: 1;
    -webkit-appearance: none;
}

.vc-nudge-dismiss:hover { background: rgba(255,255,255,0.28); transform: rotate(90deg); }

.vc-nudge-actions {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.vc-nudge-cta {
    flex: 1;
    padding: 0.85rem 1rem;
    background: #fff;
    color: #0d47a1;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: transform 0.15s, box-shadow 0.15s;
    animation: vcNudgePulse 2.5s ease-in-out infinite;
    min-height: 48px;
    -webkit-appearance: none;
}

.vc-nudge-cta:hover { transform: translateY(-2px); box-shadow: 0 7px 22px rgba(0,0,0,0.28); animation: none; }

@keyframes vcNudgePulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 0 0 0   rgba(255,255,255,0.4); }
    50%       { box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 0 0 10px rgba(255,255,255,0); }
}

.vc-nudge-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
    justify-content: center;
}

.vc-nudge-trust span {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.22rem 0.7rem;
    white-space: nowrap;
}

/* Backdrop disabled — nudge slides in from side, not center */
.vc-nudge-backdrop { display: none !important; }

/* ── Discount price display (nudge + payment step) ───────── */
.vc-discount-block {
    margin: 0.6rem 0 0.5rem;
}

.vc-discount-badge {
    display: inline-block;
    background: linear-gradient(90deg, #e53935, #ff6f00);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.18rem 0.65rem;
    border-radius: 20px;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
    animation: vcBadgePop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes vcBadgePop {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.vc-discount-prices {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.vc-price-orig {
    font-size: 1rem;
    color: rgba(255,255,255,0.55);
    text-decoration: line-through;
    font-weight: 500;
}

/* Inside payment summary (dark text version) */
.vc-summary-card .vc-price-orig {
    color: #aaa;
}

.vc-price-offer {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.vc-summary-card .vc-price-offer {
    color: #2e7d32;
}

.vc-discount-saving {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
    margin-top: 0.25rem;
    font-weight: 600;
}

.vc-summary-card .vc-discount-saving {
    color: #e65100;
}

/* Compact inline price row inside nudge banner */
.vc-nudge-price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 0.85rem;
    padding: 0.55rem 0.85rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
}

.vc-nudge-price-row .vc-price-orig {
    font-size: 0.88rem;
}

.vc-nudge-price-row .vc-price-offer {
    font-size: 1.2rem;
}

.vc-nudge-price-row .vc-price-save {
    font-size: 0.72rem;
    color: #ffcc80;
    font-weight: 700;
    white-space: nowrap;
}

/* Payment summary price row */
.vc-summary-price-row {
    align-items: flex-start;
    padding-top: 0.6rem;
}

.vc-summary-price-row .vc-discount-badge {
    font-size: 0.68rem;
    padding: 0.14rem 0.55rem;
}

/* FAB button for consult */
.fab-btn--vconsult {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 50%, #2e7d32 100%);
    color: #fff;
    animation: vcFabPulse 2.4s ease-in-out infinite;
}

.fab-btn--vconsult:hover { animation: none; background: linear-gradient(135deg, #1976d2 0%, #1565c0 50%, #43a047 100%); }

@keyframes vcFabPulse {
    0%, 100% { box-shadow: -3px 3px 14px rgba(0,0,0,0.22), 0 0 0 0   rgba(21,101,192,0.5); }
    50%       { box-shadow: -6px 4px 22px rgba(0,0,0,0.28), 0 0 0 7px rgba(21,101,192,0); }
}

/* ── Patient dashboard — Video Calls tab ─────────────────── */
.vc-appt-card {
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

.vc-appt-card.upcoming { border-color: #c8e6c9; }
.vc-appt-card.ready    { border-color: #4caf50; box-shadow: 0 0 0 3px rgba(76,175,80,0.1); }
.vc-appt-card.past     { opacity: 0.7; }

.vc-appt-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.vc-appt-status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vc-appt-status-badge.upcoming { background: #e3f2fd; color: #1565c0; }
.vc-appt-status-badge.ready    { background: #e8f5e9; color: #2e7d32; }
.vc-appt-status-badge.done     { background: #f5f5f5; color: #888; }
.vc-appt-status-badge.pending  { background: #fff3e0; color: #e65100; }

.vc-appt-info { flex: 1; min-width: 0; }

.vc-appt-date {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
    margin-bottom: 0.2rem;
}

.vc-appt-time {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
}

.vc-appt-concern {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.vc-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(67,160,71,0.35);
    transition: transform 0.15s, box-shadow 0.15s;
    min-height: 44px;
    -webkit-appearance: none;
}

.vc-join-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(67,160,71,0.5); }
.vc-join-btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.vc-prescription-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    min-height: 40px;
    -webkit-appearance: none;
}

.vc-prescription-btn:hover { background: #bbdefb; }

.vc-appt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.vc-countdown {
    font-size: 0.8rem;
    color: #e67e22;
    font-weight: 600;
    background: #fff3e0;
    border-radius: 8px;
    padding: 0.25rem 0.6rem;
}

.vc-empty-state {
    text-align: center;
    color: #aaa;
    padding: 2.5rem 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.vc-empty-state p:first-child { font-size: 2.5rem; margin-bottom: 0.5rem; }

/* ── Admin panel — Video Consultations section ───────────── */
.vc-admin-slot-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.vc-admin-slot-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    flex-wrap: wrap;
}

.vc-admin-slot-time {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    min-width: 80px;
}

.vc-admin-slot-toggle {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.vc-appt-admin-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.vc-appt-admin-info { flex: 1; min-width: 0; }

.vc-appt-admin-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.2rem;
}

.vc-appt-admin-meta {
    font-size: 0.83rem;
    color: #888;
    line-height: 1.5;
}

.vc-appt-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.vc-admin-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(67,160,71,0.3);
    transition: transform 0.15s;
    min-height: 40px;
    -webkit-appearance: none;
}

.vc-admin-call-btn:hover { transform: translateY(-1px); }

.vc-admin-rx-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    min-height: 40px;
    -webkit-appearance: none;
}

.vc-admin-rx-btn:hover { background: #bbdefb; }

/* prescription upload area */
.vc-rx-upload-area {
    border: 2px dashed #c8e6c9;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    background: #f9fbe7;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.vc-rx-upload-area:hover { border-color: #4caf50; background: #f1f8e9; }

.vc-rx-upload-area input[type=file] {
    display: none;
}

.vc-rx-upload-icon { font-size: 2.5rem; margin-bottom: 0.5rem; display: block; }
.vc-rx-upload-text { font-size: 0.9rem; color: #555; font-weight: 500; }
.vc-rx-upload-hint { font-size: 0.8rem; color: #aaa; margin-top: 0.3rem; display: block; }

/* ── Video call page ─────────────────────────────────────── */
.vc-call-page {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    background: #1a1a2e;
    color: #fff;
}

.vc-call-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: rgba(0,0,0,0.3);
    flex-shrink: 0;
    padding-top: calc(0.85rem + env(safe-area-inset-top, 0px));
}

.vc-call-logo {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    opacity: 0.9;
}

.vc-call-status {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.vc-call-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    display: inline-block;
    animation: vcBlink 1.5s ease-in-out infinite;
}

@keyframes vcBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.vc-call-frame-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#vcDailyFrame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.vc-call-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    gap: 1rem;
    z-index: 10;
}

.vc-call-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.15);
    border-top-color: #4caf50;
    border-radius: 50%;
    animation: vcSpin 0.8s linear infinite;
}

@keyframes vcSpin { to { transform: rotate(360deg); } }

.vc-call-loading p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    text-align: center;
}

.vc-call-end-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: #c62828;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    min-height: 40px;
    -webkit-appearance: none;
}

.vc-call-end-btn:hover { background: #b71c1c; }

/* ── Timezone bar (inline in slot grid) ─────────────────── */
#vcTzSelect {
    /* Prevent the select from overflowing its container */
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* ── Mobile (≤540px) overrides ───────────────────────────── */
@media (max-width: 540px) {
    .vc-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .vc-modal {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        max-height: 88vh;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        animation: vcSlideUpSheet 0.38s cubic-bezier(0.34,1.2,0.64,1);
    }

    @keyframes vcSlideUpSheet {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }

    .vc-modal-accent {
        border-radius: 20px 20px 0 0;
    }

    .vc-modal-accent::after {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(255,255,255,0.5);
        border-radius: 2px;
        margin: 6px auto 0;
    }

    .vc-modal-body { padding: 1.1rem 1.1rem 1.5rem; }
    .vc-step-title { font-size: 1.15rem; }
    .vc-step-sub   { font-size: 0.85rem; }

    .vc-features { grid-template-columns: 1fr; }

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

    .vc-slots-grid { grid-template-columns: repeat(2, 1fr); }

    /* Nudge: bottom sheet on mobile */
    .vc-nudge-banner {
        width: 100%;
        max-width: 100%;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        opacity: 1;
        overflow: hidden; /* JS releases to visible after slide-in */
        padding-bottom: env(safe-area-inset-bottom, 0px);
        transition: transform 0.4s cubic-bezier(0.34,1.3,0.64,1);
    }

    .vc-nudge-banner.visible { transform: translateY(0); opacity: 1; }

    .vc-nudge-banner::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(255,255,255,0.35);
        border-radius: 2px;
        margin: 0.6rem auto 0;
    }

    /* On mobile the image floats above the sheet — extra top space */
    .vc-nudge-phone-wrap {
        width: 140px;
        left: 50%;
        transform: translateX(-50%) translateY(-58%) perspective(600px) rotateY(-6deg) rotateX(2deg);
        animation: vcPhoneFloatMobile 3.4s ease-in-out infinite;
    }

    @keyframes vcPhoneFloatMobile {
        0%   { transform: translateX(-50%) translateY(-58%) perspective(600px) rotateY(-6deg) rotateX(2deg) translateZ(0px); }
        50%  { transform: translateX(-50%) translateY(-61%) perspective(600px) rotateY(-6deg) rotateX(2deg) translateZ(6px); }
        100% { transform: translateX(-50%) translateY(-58%) perspective(600px) rotateY(-6deg) rotateX(2deg) translateZ(0px); }
    }

    .vc-nudge-inner { padding: 0.85rem 1.25rem 1.5rem; padding-top: 5rem; }
    .vc-nudge-text strong { font-size: 1rem; }
    .vc-nudge-text span   { font-size: 0.84rem; }

    .vc-appt-admin-card { flex-direction: column; }
    .vc-appt-admin-actions { width: 100%; }
}

/* ≤360px very small phones */
@media (max-width: 360px) {
    .vc-nudge-emoji { font-size: 1.8rem; }
    .vc-nudge-text strong { font-size: 0.92rem; }
    .vc-nudge-text span   { font-size: 0.78rem; }
    .vc-nudge-trust       { display: none; }
    .vc-nudge-actions     { flex-direction: column; }
    .vc-nudge-phone-wrap  { width: 110px; }
    .vc-nudge-inner       { padding-top: 4.5rem; }
}

/* ── Desktop upscale (≥768px) ────────────────────────────── */
@media (min-width: 768px) {
    .vc-details-grid { grid-template-columns: 1fr; }
    .vc-form-row     { grid-template-columns: 1fr 1fr; }
    .vc-modal        { animation: vcSlideUp 0.35s cubic-bezier(0.34,1.3,0.64,1); }
}

/* ============================================================
   VC INCOMING CALL NUDGE — Full-screen mobile overlay
   Desktop keeps the existing .vc-nudge-banner card.
   ROLLBACK: set vcUseCallNudge = false in video-consultation.js
   ============================================================ */

/* ── Overlay: full viewport, slides up from bottom ───────── */
.vc-call-nudge {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 6200;
    pointer-events: none;
    /* Image fills the screen */
    background: url('images/Dr Gaurav Video Call image.jpeg') center center / cover no-repeat;
    /* Zoom-out entrance — starts slightly large and fades in, like a real incoming call */
    transform: scale(1.08);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1.0, 0.36, 1),
                opacity   0.35s ease-out;
    /* Slight top padding for status bar on iOS */
    padding-top: env(safe-area-inset-top, 0px);
    overflow: hidden;
}

.vc-call-nudge.visible {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* ── Dark vignette so text is readable over the photo ─────── */
.vc-call-nudge::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(0,0,0,0.55) 0%,
            rgba(0,0,0,0.0)  28%,
            rgba(0,0,0,0.0)  52%,
            rgba(0,0,0,0.72) 78%,
            rgba(0,0,0,0.92) 100%);
    pointer-events: none;
    z-index: 0;
}

/* All children sit above the vignette */
.vc-call-nudge-top,
.vc-call-nudge-bottom {
    position: relative;
    z-index: 1;
}

/* ── Top bar — label only ────────────────────────────────── */
.vc-call-nudge-top {
    padding: 4.5rem 1.5rem 1rem;
    text-align: center;
}

.vc-call-nudge-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

/* ── Bottom info + controls bar ───────────────────────────── */
.vc-call-nudge-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

/* Subtext line */
.vc-call-nudge-desc {
    text-align: center;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0.75rem;
    line-height: 1.45;
    font-weight: 500;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

/* Price row */
.vc-call-nudge-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.vc-call-nudge-price .orig {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    text-decoration: line-through;
    font-weight: 500;
}

.vc-call-nudge-price .offer {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.vc-call-nudge-price .save {
    font-size: 0.72rem;
    background: #e53935;
    color: #fff;
    font-weight: 700;
    padding: 0.18rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

/* Trust pills */
.vc-call-nudge-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.vc-call-nudge-trust span {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ── Slide-to-answer track ────────────────────────────────── */
.vc-call-nudge-slider {
    position: relative;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    margin-bottom: 1rem;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

/* Track hint text */
.vc-call-nudge-slider-hint {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    pointer-events: none;
    letter-spacing: 0.04em;
    transition: opacity 0.2s;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Green draggable button */
.vc-call-nudge-slider-btn {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #43a047, #2e7d32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(67,160,71,0.6);
    position: relative;
    z-index: 2;
    cursor: grab;
    transition: transform 0.15s, box-shadow 0.15s;
    touch-action: none;
    /* Arrow icon inside */
    font-size: 1.4rem;
    color: #fff;
    animation: vcSliderHint 1.8s ease-in-out infinite;
}

.vc-call-nudge-slider-btn:active { cursor: grabbing; }

@keyframes vcSliderHint {
    0%        { transform: translateX(0);    box-shadow: 0 4px 16px rgba(67,160,71,0.6); }
    30%       { transform: translateX(18px); box-shadow: 0 6px 20px rgba(67,160,71,0.8); }
    55%       { transform: translateX(8px);  box-shadow: 0 4px 16px rgba(67,160,71,0.6); }
    75%       { transform: translateX(14px); box-shadow: 0 6px 18px rgba(67,160,71,0.7); }
    100%      { transform: translateX(0);    box-shadow: 0 4px 16px rgba(67,160,71,0.6); }
}

/* Success state — full green fill */
.vc-call-nudge-slider.success {
    background: rgba(67,160,71,0.5);
    border-color: #4caf50;
}

.vc-call-nudge-slider.success .vc-call-nudge-slider-hint {
    opacity: 0;
}

/* ── Dismiss link ─────────────────────────────────────────── */
.vc-call-nudge-dismiss {
    display: block;
    text-align: center;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.35rem;
    width: 100%;
    transition: color 0.15s;
    -webkit-appearance: none;
}

.vc-call-nudge-dismiss:hover { color: rgba(255,255,255,0.9); }

/* ── Only show on mobile (≤767px) ─────────────────────────── */
.vc-call-nudge {
    display: none !important;
    pointer-events: none;
}

@media (max-width: 767px) {
    .vc-call-nudge {
        display: block !important;
        /* Invisible and non-interactive until JS triggers it */
        pointer-events: none;
    }
    .vc-call-nudge.visible {
        pointer-events: auto;
    }
    /* On mobile, hide the old card nudge when call nudge is active */
    body.vc-call-nudge-active .vc-nudge-banner {
        display: none !important;
    }
}


/* ============================================================
   VC DASHBOARD — RECOMMENDED PACKAGE BLOCK
   ============================================================ */

.vc-rec-block {
    margin-top: 1rem;
    border: 1.5px solid #ffe082;
    border-radius: 12px;
    background: linear-gradient(135deg, #fffde7 0%, #fff8e1 100%);
    padding: 1rem 1.1rem;
    position: relative;
}
.vc-rec-block.booked {
    border-color: #a5d6a7;
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
}

.vc-rec-header {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f57f17;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}
.vc-rec-block.booked .vc-rec-header {
    color: #2e7d32;
}

.vc-rec-pkg-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

.vc-rec-doctor-note {
    font-size: 0.83rem;
    color: #555;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.vc-rec-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}
.vc-rec-orig-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 0.9rem;
}
.vc-rec-final-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2e7d32;
}
.vc-rec-saving {
    font-size: 0.78rem;
    font-weight: 600;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}

.vc-rec-waive-note {
    font-size: 0.78rem;
    color: #388e3c;
    margin-bottom: 0.6rem;
}

.vc-rec-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.vc-rec-book-btn {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.vc-rec-book-btn:hover { background: #1b5e20; }

.vc-rec-dismiss-btn {
    background: transparent;
    color: #aaa;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.vc-rec-dismiss-btn:hover { color: #e53935; border-color: #e53935; }

/* ── Recommendation fee breakdown table ── */
.vc-rec-breakdown {
    margin: 0.5rem 0 0.6rem;
    border: 1px solid #ffe082;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.84rem;
}
.vc-rec-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: rgba(255,255,255,0.55);
    border-bottom: 1px solid #fff9c4;
}
.vc-rec-breakdown-row:last-child {
    border-bottom: none;
}
.vc-rec-breakdown-row span:first-child {
    color: #666;
}
.vc-rec-breakdown-row span:last-child {
    font-weight: 600;
    color: #333;
}
.vc-rec-breakdown-total {
    background: #fff8e1 !important;
    border-top: 1.5px solid #ffe082 !important;
}
.vc-rec-breakdown-total span {
    font-size: 0.92rem;
    font-weight: 700 !important;
    color: #e65100 !important;
}
.vc-rec-waived {
    color: #2e7d32 !important;
    font-weight: 600 !important;
}

.vc-rec-booked-tag {
    font-size: 0.88rem;
    color: #2e7d32;
    font-weight: 600;
}
