/* Become-a-provider application (pa-*). Builds on the hm-* tokens and buttons. */

.pa-page { background: var(--hm-soft); min-height: 60vh; }
.pa-hero {
    padding: 24px 0 52px; border-bottom: 1px solid var(--hm-line);
    background: radial-gradient(700px 220px at 100% 0%, rgba(8, 117, 225, .12), transparent 70%), linear-gradient(180deg, #f4f9ff 0%, #fff 100%);
}
.pa-hero .hm-eyebrow { font-size: 11px; }
.pa-hero h1 { margin-top: 6px; max-width: none; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--hm-ink); }
.pa-hero p { margin-top: 6px; max-width: 760px; font-size: 14.5px; line-height: 1.55; color: var(--hm-muted); }
.pa-perks { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--hm-text); }
.pa-perks i { color: var(--hm-blue); font-size: 17px; vertical-align: -3px; margin-right: 4px; }

.pa-body { padding: 0 0 64px; margin-top: -28px; }
.pa-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.pa-steps { position: sticky; top: 16px; padding: 22px; background: #fff; border: 1px solid var(--hm-line); border-radius: 22px; box-shadow: var(--hm-shadow); }
.pa-progress { height: 6px; margin-bottom: 18px; border-radius: 999px; background: var(--hm-line); overflow: hidden; }
.pa-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--hm-blue), #38bdf8); transition: width .35s ease; }
.pa-steps ol { display: grid; gap: 4px; }
.pa-step { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 14px; background: transparent; text-align: left; cursor: pointer; transition: background-color .15s ease; }
.pa-step:hover { background: var(--hm-soft); }
.pa-step-icon { position: relative; width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--hm-soft); color: var(--hm-muted); font-size: 20px; }
.pa-step .pa-step-done { display: none; }
.pa-step-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--hm-ink); }
.pa-step-text small { display: block; margin-top: 1px; font-size: 12px; color: var(--hm-muted); }
.pa-step.is-active { background: #e8f2ff; }
.pa-step.is-active .pa-step-icon { background: var(--hm-blue); color: #fff; box-shadow: 0 8px 16px rgba(8, 117, 225, .3); }
.pa-step.is-done .pa-step-icon { background: #d1fae5; color: #047857; }
.pa-step.is-done .pa-step-icon > i:first-child { display: none; }
.pa-step.is-done .pa-step-done { display: inline-block; }
.pa-note { display: flex; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hm-line); font-size: 12.5px; line-height: 1.5; color: var(--hm-muted); }
.pa-note i { color: var(--hm-blue); font-size: 18px; flex-shrink: 0; }

.pa-card { background: #fff; border: 1px solid var(--hm-line); border-radius: 24px; box-shadow: var(--hm-shadow-lg); padding: 36px; }
.pa-panel { min-width: 0; margin: 0; padding: 0; border: 0; }
.pa-panel[hidden] { display: none; }
.pa-legend { float: none; width: 100%; margin: 0 0 24px; padding: 0 0 18px; border-bottom: 1px solid var(--hm-line); }
.pa-legend-count { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hm-blue); }
.pa-legend h2 { margin-top: 4px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--hm-ink); }

.pa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.pa-field { margin-bottom: 20px; min-width: 0; }
.pa-field[hidden], .pa-subpanel[hidden] { display: none; }
.pa-field label, .pa-label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 700; color: var(--hm-ink); }
.pa-field label b, .pa-label b { color: #dc2626; }
.pa-field small { display: block; margin-top: 5px; font-size: 12px; color: var(--hm-muted); font-weight: 400; }
.pa-label small, .pa-subpanel h3 small, .pa-field label small { display: inline; margin: 0; font-weight: 500; color: var(--hm-muted); }
.pa-subpanel .pa-choice { margin-bottom: 16px; }
.pa-field input:not([type=radio]):not([type=checkbox]):not([type=file]), .pa-field select, .pa-field textarea, .pa-ref input {
    width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid #d5deea; border-radius: 12px; background: #fff;
    font-size: 14.5px; color: var(--hm-ink); transition: border-color .2s ease, box-shadow .2s ease;
}
.pa-field textarea { resize: vertical; line-height: 1.55; }
.pa-field input:focus, .pa-field select:focus, .pa-field textarea:focus, .pa-ref input:focus { outline: 0; border-color: var(--hm-blue); box-shadow: 0 0 0 3px rgba(8, 117, 225, .15); }
.pa-field input[type=file] { width: 100%; padding: 10px; border: 1px dashed #b9c8dc; border-radius: 12px; background: var(--hm-soft); font-size: 13px; }
.pa-field .is-invalid { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.pa-error { margin-top: 6px !important; font-size: 12.5px; font-weight: 600; color: #dc2626; }
.pa-help { margin-bottom: 12px; font-size: 14px; line-height: 1.6; color: var(--hm-muted); }
.pa-inline { display: flex; gap: 10px; align-items: center; }
.pa-inline > input { flex: 1; min-width: 0; }
.pa-wrap { flex-wrap: wrap; }

.pa-choice { display: flex; flex-wrap: wrap; gap: 10px; }
.pa-choice label, .pa-chip { position: relative; margin: 0; cursor: pointer; }
.pa-choice input, .pa-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pa-choice span, .pa-chip span {
    display: inline-flex; align-items: center; padding: 10px 18px; border: 1px solid #d5deea; border-radius: 999px; background: #fff;
    font-size: 14px; font-weight: 600; color: var(--hm-text); transition: all .15s ease;
}
.pa-choice input:checked + span, .pa-chip input:checked + span { border-color: var(--hm-blue); background: #e8f2ff; color: var(--hm-blue-dark); }
.pa-choice input:focus-visible + span, .pa-chip input:focus-visible + span { outline: 2px solid var(--hm-blue); outline-offset: 2px; }
.pa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pa-chip span { padding: 8px 14px; font-size: 13.5px; }

.pa-phone-status, .pa-status { margin-top: 8px; font-size: 13px; font-weight: 600; min-height: 1em; }
.pa-phone-status.is-ok, .pa-status.is-ok { color: #047857; }
.pa-phone-status.is-bad, .pa-status.is-bad { color: #dc2626; }
.pa-otp { display: flex; gap: 10px; margin-top: 10px; }
.pa-otp[hidden] { display: none; }
.pa-otp input { width: 150px; min-height: 42px; padding: 8px 14px; border: 1px solid #d5deea; border-radius: 12px; font-size: 18px; letter-spacing: .3em; text-align: center; }

.pa-callout { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; padding: 14px 16px; border-radius: 14px; background: #e8f2ff; color: var(--hm-blue-dark); }
.pa-callout i { font-size: 22px; flex-shrink: 0; }
.pa-callout p { font-size: 13.5px; line-height: 1.55; }
.pa-subpanel { margin: 4px 0 20px; padding: 20px; border: 1px solid var(--hm-line); border-radius: 18px; background: var(--hm-soft); }
.pa-subpanel h3 { margin-bottom: 14px; font-size: 15px; font-weight: 800; color: var(--hm-ink); }
.pa-subpanel .pa-field:last-child { margin-bottom: 0; }

.pa-selfie-stage { position: relative; width: 100%; max-width: 360px; aspect-ratio: 4 / 3; margin: 0 0 12px; border-radius: 18px; overflow: hidden; background: #0f2a4d; }
.pa-selfie-stage video, .pa-selfie-stage img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.pa-selfie-stage img { transform: none; }
.pa-selfie-stage [hidden] { display: none; }
.pa-selfie-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: rgba(255, 255, 255, .7); font-size: 13px; }
.pa-selfie-empty i { font-size: 38px; }
.pa-challenge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 8px 14px; border-radius: 10px; background: #fef3c7; color: #92400e; font-size: 13.5px; font-weight: 700; }
.pa-fallback { display: block; margin-top: 14px; font-size: 12.5px !important; font-weight: 500 !important; color: var(--hm-muted) !important; }
.pa-fallback input { margin-top: 6px; }
.pa-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pa-previews figure { position: relative; width: 64px; height: 64px; margin: 0; border-radius: 10px; overflow: hidden; background: var(--hm-soft); border: 1px solid var(--hm-line); }
.pa-previews img, .pa-previews video { width: 100%; height: 100%; object-fit: cover; }

.pa-enhanced { background: #fffbeb; border-color: #fde68a; }
.pa-enhanced-head { display: flex; gap: 14px; margin-bottom: 16px; }
.pa-enhanced-icon { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #fef3c7; color: #b45309; font-size: 24px; }
.pa-enhanced h3 { margin-bottom: 4px; }
.pa-enhanced-head p { font-size: 13.5px; line-height: 1.55; color: #78350f; }
.pa-ref { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }

.pa-week { display: grid; gap: 10px; margin-bottom: 8px; }
.pa-day { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border: 1px solid var(--hm-line); border-radius: 14px; background: #fff; transition: border-color .15s ease, background-color .15s ease; }
.pa-day.is-on { border-color: #b9d5f7; background: #f4f9ff; }
.pa-day-toggle { display: flex; align-items: center; gap: 12px; margin: 0; cursor: pointer; min-width: 150px; }
.pa-day-toggle input { position: absolute; opacity: 0; }
.pa-switch { position: relative; width: 40px; height: 22px; border-radius: 999px; background: #cbd5e1; transition: background-color .2s ease; flex-shrink: 0; }
.pa-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.pa-day-toggle input:checked + .pa-switch { background: var(--hm-blue); }
.pa-day-toggle input:checked + .pa-switch::after { transform: translateX(18px); }
.pa-day-toggle input:focus-visible + .pa-switch { outline: 2px solid var(--hm-blue); outline-offset: 2px; }
.pa-day-times { display: flex; align-items: center; gap: 8px; }
.pa-day-times input { min-height: 40px; padding: 6px 10px; border: 1px solid #d5deea; border-radius: 10px; font-size: 14px; }
.pa-day-times input:disabled { opacity: .4; }

.pa-check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500 !important; cursor: pointer; font-size: 14px !important; line-height: 1.55; color: var(--hm-text) !important; }
.pa-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--hm-blue); flex-shrink: 0; }
.pa-terms { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--hm-line); }

.pa-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hm-line); }
.pa-actions [hidden] { display: none; }
.pa-alert { display: flex; gap: 14px; margin: 0 0 20px; padding: 16px 20px; border: 1px solid #fecaca; border-radius: 16px; background: #fef2f2; color: #991b1b; }
.pa-alert > i { font-size: 24px; flex-shrink: 0; }
.pa-alert ul { margin-top: 4px; padding-left: 18px; list-style: disc; font-size: 13.5px; }

@media (max-width: 991.98px) {
    .pa-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .pa-steps { position: static; padding: 14px; }
    .pa-steps ol { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
    .pa-steps ol::-webkit-scrollbar { display: none; }
    .pa-step { flex-shrink: 0; width: auto; padding: 8px 12px 8px 8px; }
    .pa-step-text small, .pa-note { display: none; }
    .pa-progress { margin-bottom: 12px; }
}
@media (max-width: 575.98px) {
    .pa-hero { padding: 18px 0 44px; }
    .pa-perks { display: none; }
    .pa-card { padding: 22px 18px; border-radius: 20px; }
    .pa-grid, .pa-ref { grid-template-columns: minmax(0, 1fr); gap: 0 0; }
    .pa-ref { gap: 8px; }
    .pa-day { flex-direction: column; align-items: flex-start; gap: 10px; }
    .pa-actions { flex-direction: column-reverse; }
    .pa-actions .hm-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .pa-progress span, .pa-switch, .pa-switch::after { transition: none; }
}

/* ── Status page ───────────────────────────────────────────────── */
.pa-flash { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 14px 18px; border-radius: 14px; background: #d1fae5; color: #065f46; font-weight: 600; font-size: 14px; }
.pa-status-hero { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: 18px; margin-bottom: 28px; }
.pa-status-hero h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--hm-ink); }
.pa-status-hero p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--hm-text); }
.pa-status-hero small { display: block; margin-top: 10px; font-size: 12.5px; color: var(--hm-muted); }
.pa-status-icon { width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 16px; font-size: 28px; background: #fff; }
.pa-status-hero.is-wait { background: #fffbeb; } .is-wait .pa-status-icon { color: #b45309; }
.pa-status-hero.is-ok { background: #ecfdf5; } .is-ok .pa-status-icon { color: #047857; }
.pa-status-hero.is-bad { background: #fef2f2; } .is-bad .pa-status-icon { color: #b91c1c; }
.pa-status-title { margin-bottom: 12px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hm-ink); }
.pa-checklist { display: grid; gap: 8px; }
.pa-checklist li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--hm-line); border-radius: 14px; }
.pa-check-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--hm-soft); color: var(--hm-blue); font-size: 20px; flex-shrink: 0; }
.pa-checklist strong { flex: 1; font-size: 14.5px; color: var(--hm-ink); }
.pa-pill { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pa-pill.is-approved { background: #d1fae5; color: #065f46; }
.pa-pill.is-pending { background: #fef3c7; color: #92400e; }
.pa-pill.is-rejected { background: #fee2e2; color: #991b1b; }
@media (max-width: 575.98px) { .pa-status-hero { flex-direction: column; padding: 18px; } }
.pa-body-flat { margin-top: 0; padding-top: 48px; }
.pa-narrow { max-width: 820px; }
.pa-actions-start { justify-content: flex-start; }
.pa-enhanced > .pa-label { margin-top: 6px; }
