/* ═══════════════════════════════════════════════════════
   New Visit – shared step shell (Biometrics / Exam / Rx)
   ═══════════════════════════════════════════════════════ */

.av-step-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    position: relative;
}

.av-step-shell {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #1e293b;
}

.av-step-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem 1.15rem;
    background: linear-gradient(135deg, #1a2c4a 0%, #2a4580 100%);
    color: #ffffff;
    flex-shrink: 0;
}

.av-step-header-compact {
    padding: 1rem 1.5rem;
}

.av-step-header-text {
    min-width: 0;
}

.av-step-eyebrow {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ec5ff;
}

.av-step-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
}

.av-step-subtitle {
    margin: 0.45rem 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.88);
    max-width: 42rem;
}

.av-step-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.5rem 1rem;
}

.av-step-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fbfdff;
    padding: 1rem 1.1rem 1.15rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.av-step-card-title {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.av-step-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}

.av-step-footer-end {
    justify-content: flex-end;
}

.av-step-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: none;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.6rem 1.15rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.av-step-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.av-step-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.av-step-btn-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.av-step-btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
}

.av-step-btn-secondary {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}

.av-step-btn-secondary:hover:not(:disabled) {
    background: #f8fafc;
}

.av-step-btn-ghost {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.av-step-btn-ghost:hover:not(:disabled) {
    background: #e2e8f0;
    color: #0f172a;
}

@media (max-width: 768px) {
    .av-step-header,
    .av-step-body,
    .av-step-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .av-step-header {
        flex-direction: column;
        align-items: stretch;
    }

    .av-step-footer {
        flex-direction: column;
    }

    .av-step-footer .av-step-btn {
        width: 100%;
    }
}
