/* ============================================================
   Larry Trustee AI — Attorney Portal Styles
   Dark navy + gold theme matching the rest of the site.
   ============================================================ */

:root {
    --ap-bg: #0c1a2e;
    --ap-bg-alt: #122340;
    --ap-text: #e8e6e3;
    --ap-text-muted: #d6cfb8;
    --ap-text-faint: #a8a39a;
    --ap-gold: #c9a84c;
    --ap-gold-bright: #f5e8b8;
    --ap-gold-warm: #f0d98a;
    --ap-border: rgba(201, 168, 76, 0.3);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--ap-bg);
    color: var(--ap-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.55;
    min-height: 100vh;
}

/* ---- Header ---- */
.ap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid var(--ap-border);
    background: rgba(255, 255, 255, 0.02);
}
.ap-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ap-gold-bright);
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    font-weight: 600;
}
.ap-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--ap-gold);
    object-fit: cover;
}
.ap-gold { color: var(--ap-gold); }
.ap-back {
    color: var(--ap-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}
.ap-back:hover { color: var(--ap-gold-warm); }

/* ---- Main + card ---- */
.ap-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 36px 22px 60px;
}
.ap-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ap-border);
    border-radius: 14px;
    padding: 36px 32px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

.ap-icon-wrap {
    text-align: center;
    margin-bottom: 8px;
}

.ap-title {
    font-family: 'Playfair Display', serif;
    color: var(--ap-gold-bright);
    font-size: 28px;
    text-align: center;
    margin: 4px 0 8px;
    font-weight: 600;
}
.ap-subtitle {
    color: var(--ap-text-muted);
    text-align: center;
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.6;
}

.ap-eligibility {
    background: rgba(201, 168, 76, 0.06);
    border-left: 3px solid var(--ap-gold);
    padding: 14px 16px;
    border-radius: 6px;
    margin: 0 0 26px;
    font-size: 13px;
    color: var(--ap-text-muted);
    line-height: 1.6;
}
.ap-eligibility strong { display: block; color: var(--ap-gold-warm); margin-bottom: 4px; font-size: 14px; }
.ap-eligibility p { margin: 0; }

.ap-eligibility-critical {
    background: rgba(255, 138, 138, 0.06);
    border-left-color: #ff8a8a;
}
.ap-eligibility-critical strong { color: #ffb878; }

/* ---- Tabs ---- */
.ap-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--ap-border);
}
.ap-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--ap-text-faint);
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    font-family: inherit;
}
.ap-tab:hover { color: var(--ap-gold-warm); }
.ap-tab.active {
    color: var(--ap-gold-bright);
    border-bottom-color: var(--ap-gold);
    font-weight: 700;
}
.ap-form.hidden { display: none !important; }
.hidden { display: none !important; }

/* ---- Vital records verification preview ---- */
.ap-verify-preview { margin-top: 14px; }
.ap-verify-card {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid #86efac;
    border-left: 4px solid #86efac;
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--ap-text-muted);
    font-size: 13px;
    line-height: 1.6;
}
.ap-verify-card strong:first-child { color: #86efac; display: block; margin-bottom: 6px; font-size: 14px; }
.ap-verify-card p { margin: 6px 0; }
.ap-verify-meta { color: var(--ap-text-faint); font-size: 12px; }
.ap-verify-meta strong { color: var(--ap-gold-warm); }

/* ---- Form ---- */
.ap-form { display: flex; flex-direction: column; gap: 18px; }

.ap-fieldset {
    border: 1px solid var(--ap-border);
    border-radius: 10px;
    padding: 18px;
    margin: 0;
    background: rgba(255, 255, 255, 0.02);
}
.ap-fieldset legend {
    color: var(--ap-gold-warm);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 8px;
}
.ap-fieldhint {
    margin: 0 0 12px;
    color: var(--ap-text-faint);
    font-size: 12.5px;
}
.ap-fieldhint code {
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 6px;
    border-radius: 3px;
    color: var(--ap-gold-warm);
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.ap-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--ap-text-muted);
    font-weight: 500;
    margin-bottom: 12px;
}
.ap-form label:last-child { margin-bottom: 0; }

.ap-form input[type="text"],
.ap-form input[type="email"],
.ap-form input[type="tel"],
.ap-form select,
.ap-form textarea {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--ap-border);
    color: var(--ap-text);
    padding: 11px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
}
.ap-form input:focus,
.ap-form select:focus,
.ap-form textarea:focus {
    outline: none;
    border-color: var(--ap-gold);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.ap-form input:disabled,
.ap-form select:disabled,
.ap-form textarea:disabled { opacity: 0.5; cursor: not-allowed; }

.ap-row { display: flex; gap: 12px; }
.ap-row .ap-narrow { flex: 1 1 0; min-width: 0; }
.ap-row .ap-wide { flex: 1.6 1 0; min-width: 0; }

/* ---- Warning box ---- */
.ap-warning {
    background: rgba(255, 160, 80, 0.08);
    border: 1px solid rgba(255, 160, 80, 0.5);
    border-left-width: 4px;
    border-radius: 6px;
    padding: 14px 16px;
    color: #ffd9b3;
    font-size: 13px;
    line-height: 1.6;
}
.ap-warning strong { color: #ffb878; }
.ap-warning ul { margin: 8px 0 0; padding-left: 18px; }
.ap-warning li { margin-bottom: 5px; }

/* ---- Checkbox ---- */
.ap-checkbox {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    cursor: pointer;
    line-height: 1.45;
    margin-bottom: 0 !important;
}
.ap-checkbox input { margin-top: 3px; accent-color: var(--ap-gold); flex-shrink: 0; }

/* ---- Submit ---- */
.ap-submit {
    background: linear-gradient(135deg, var(--ap-gold), #b08a30);
    color: var(--ap-bg);
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.ap-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(201, 168, 76, 0.45);
}
.ap-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.ap-msg {
    margin: 0;
    padding: 0;
    font-size: 13.5px;
    color: var(--ap-text-muted);
    min-height: 18px;
    line-height: 1.5;
}
.ap-msg.ok { color: #86efac; }
.ap-msg.err { color: #ff8a8a; }

/* ---- Success state ---- */
.ap-success {
    text-align: center;
    padding: 18px 0;
}
.ap-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 2px solid #86efac;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 18px;
}
.ap-success h2 {
    font-family: 'Playfair Display', serif;
    color: var(--ap-gold-bright);
    font-size: 22px;
    margin: 0 0 10px;
}
.ap-success p { color: var(--ap-text-muted); margin: 8px 0; }
.ap-success ol {
    text-align: left;
    color: var(--ap-text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 18px 14px 36px;
    border-radius: 6px;
    border-left: 3px solid var(--ap-gold);
}
.ap-success ol li { margin-bottom: 8px; }
.ap-success-anchor {
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--ap-gold);
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 14px !important;
}
.ap-success-note {
    color: var(--ap-text-faint) !important;
    font-size: 12.5px;
    margin-top: 16px !important;
}

/* ---- Footer ---- */
.ap-footer-note {
    text-align: center;
    margin: 26px 0 0;
    color: var(--ap-text-faint);
    font-size: 13px;
}
.ap-footer-note a {
    color: var(--ap-gold);
    text-decoration: underline;
}
.ap-footer-note a:hover { color: var(--ap-gold-warm); }

@media (max-width: 600px) {
    .ap-main { padding: 24px 14px 50px; }
    .ap-card { padding: 28px 20px; }
    .ap-title { font-size: 24px; }
    .ap-row { flex-direction: column; gap: 0; }
    .ap-header { padding: 14px 18px; }
    .ap-brand { font-size: 17px; }
}
