/* ═══════════════════════════════════════════════════════ */
/* Austin MN Sewer Inspection — Standalone Styles         */
/* ═══════════════════════════════════════════════════════ */

:root {
    --austin-blue: #1e3a5f;
    --austin-blue-light: #2c5282;
    --austin-accent: #2b6cb0;
    --austin-green: #38a169;
    --austin-green-dark: #276749;
    --austin-red: #e53e3e;
    --austin-orange: #dd6b20;
    --austin-yellow: #d69e2e;
    --bg: #f7fafc;
    --bg-alt: #edf2f7;
    --card-bg: #ffffff;
    --text: #1a202c;
    --text-muted: #718096;
    --border: #e2e8f0;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
    background: var(--austin-blue);
    color: white;
    padding: 0.75rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.header-brand i { font-size: 1.5rem; opacity: 0.9; }
.header-title { font-weight: 700; font-size: 1rem; display: block; }
.header-subtitle { font-size: 0.75rem; opacity: 0.8; display: block; }
.header-nav { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.plumber-greeting { font-size: 0.8rem; opacity: 0.85; margin-right: 0.25rem; }
.btn-nav {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.4rem 0.85rem; border-radius: 6px;
    font-size: 0.8rem; font-weight: 600; text-decoration: none;
    color: white; background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer; transition: background 0.2s;
}
.btn-nav:hover { background: rgba(255,255,255,0.25); }
.btn-nav-outline { background: transparent; }

/* ── HERO ───────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--austin-blue) 0%, var(--austin-blue-light) 100%);
    color: white;
    padding: 3rem 1.25rem;
    text-align: center;
}
.hero-ordinance {
    display: inline-block; background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3); border-radius: 20px;
    padding: 0.3rem 1rem; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 0.75rem;
    opacity: 0.95;
}
.hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; }
.hero-subtitle { font-size: 1.1rem; opacity: 0.9; max-width: 640px; margin: 0 auto 1.5rem; }
.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 1.5rem; border-radius: 8px;
    font-size: 0.95rem; font-weight: 600; text-decoration: none;
    border: 2px solid transparent; cursor: pointer; transition: all 0.2s;
}
.btn-primary { background: var(--austin-green); color: white; border-color: var(--austin-green); }
.btn-primary:hover { background: var(--austin-green-dark); border-color: var(--austin-green-dark); }
.btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── STATS BAR ──────────────────────────────────────── */
.stats-bar { background: var(--card-bg); padding: 1.5rem 1.25rem; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-number { font-size: 1.75rem; font-weight: 800; color: var(--austin-accent); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ── SECTIONS ───────────────────────────────────────── */
.section { padding: 3rem 1.25rem; }
.section-alt { background: var(--bg-alt); }
.section-title {
    text-align: center; font-size: 1.6rem; font-weight: 700;
    color: var(--austin-blue); margin-bottom: 0.5rem;
}
.section-intro {
    text-align: center; color: var(--text-muted); max-width: 640px;
    margin: 0 auto 2rem; font-size: 0.95rem;
}

/* ── HOW IT WORKS ───────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-card {
    background: var(--card-bg); border-radius: var(--radius-lg);
    padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow);
    position: relative;
}
.step-number {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    width: 28px; height: 28px; border-radius: 50%; background: var(--austin-accent);
    color: white; font-size: 0.8rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.step-icon { font-size: 2rem; color: var(--austin-accent); margin-bottom: 0.75rem; }
.step-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ── FACTS ──────────────────────────────────────────── */
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.fact-card {
    background: var(--card-bg); border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--shadow); border-left: 4px solid var(--austin-accent);
}
.fact-icon { font-size: 1.5rem; color: var(--austin-accent); margin-bottom: 0.5rem; }
.fact-card h3 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.fact-card p { font-size: 0.82rem; color: var(--text-muted); }

/* ── FORM SECTIONS ──────────────────────────────────── */
.form-section {
    background: var(--card-bg); border-radius: var(--radius-lg);
    padding: 1.75rem; margin-bottom: 1.25rem; box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.form-section-header {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1.25rem; padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg-alt);
}
.form-section-badge {
    background: var(--austin-blue); color: white;
    padding: 0.25rem 0.75rem; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.form-section-header h3 { font-size: 1.1rem; color: var(--austin-blue); }
.form-group-title {
    font-size: 0.9rem; font-weight: 700; color: var(--text);
    margin: 1.25rem 0 0.5rem; padding-top: 0.75rem;
    border-top: 1px solid var(--bg-alt);
}
.form-group-title:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 0.75rem; }
.form-group label {
    display: block; font-size: 0.82rem; font-weight: 600;
    color: var(--text); margin-bottom: 0.3rem;
}
.req { color: var(--austin-red); }
.form-hint { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; }

input[type="text"], input[type="email"], input[type="tel"],
input[type="url"], input[type="number"], input[type="date"],
input[type="password"], textarea, select {
    width: 100%; padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--border); border-radius: 8px;
    font-size: 0.9rem; font-family: inherit;
    background: var(--card-bg); color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--austin-accent);
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}
input.valid { border-color: var(--austin-green); }
input.invalid { border-color: var(--austin-red); }
input.autofilled { background: #f0fff4; border-color: var(--austin-green); }

/* ── SIGNATURE PAD ──────────────────────────────────── */
.sig-pad-wrap {
    border: 2px dashed var(--border); border-radius: 10px;
    padding: 0.5rem; background: #fafafa; position: relative;
    transition: border-color 0.2s;
}
.sig-pad-wrap:hover { border-color: var(--austin-accent); }
.sig-canvas {
    width: 100%; height: 150px; cursor: crosshair;
    display: block; border-radius: 6px; background: white;
    touch-action: none;
}
.sig-canvas.has-signature + .sig-pad-actions .btn-sig-clear { color: var(--austin-red); }
.sig-pad-actions {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 0.35rem; padding: 0 0.25rem;
}
.btn-sig-clear {
    background: none; border: 1px solid var(--border); border-radius: 6px;
    padding: 0.25rem 0.65rem; font-size: 0.75rem; font-weight: 600;
    color: var(--text-muted); cursor: pointer; transition: all 0.15s;
    display: inline-flex; align-items: center; gap: 0.3rem;
}
.btn-sig-clear:hover { background: #fff5f5; border-color: var(--austin-red); color: var(--austin-red); }
.sig-pad-wrap.signed { border-color: var(--austin-green); border-style: solid; }

/* ── YES/NO BUTTONS ─────────────────────────────────── */
.yesno-grid { display: flex; flex-direction: column; gap: 0.5rem; }
.yesno-row {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.5rem 0.75rem; background: var(--bg-alt); border-radius: 8px;
}
.yesno-label { flex: 1; font-size: 0.85rem; }
.yesno-btns { display: flex; gap: 0.35rem; flex-shrink: 0; }
.inline-yesno { margin-top: 0.35rem; }
.yesno-btn {
    padding: 0.35rem 1rem; border-radius: 6px;
    font-size: 0.8rem; font-weight: 700; cursor: pointer;
    border: 2px solid var(--border); background: var(--card-bg);
    color: var(--text-muted); transition: all 0.15s;
}
.yesno-btn:hover { border-color: var(--austin-accent); }
.yesno-btn.yes.selected { background: #c6f6d5; border-color: var(--austin-green); color: var(--austin-green-dark); }
.yesno-btn.no.selected { background: #fed7d7; border-color: var(--austin-red); color: #9b2c2c; }

/* ── RADIO BUTTONS ──────────────────────────────────── */
.radio-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.radio-group-vertical { flex-direction: column; }
.radio-btn {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; border: 1.5px solid var(--border);
    border-radius: 8px; font-size: 0.85rem; cursor: pointer;
    transition: all 0.15s; background: var(--card-bg);
}
.radio-btn:hover { border-color: var(--austin-accent); }
.radio-btn:has(input:checked) {
    border-color: var(--austin-accent); background: #ebf8ff;
    color: var(--austin-blue); font-weight: 600;
}
.radio-btn input[type="radio"] { accent-color: var(--austin-accent); }

/* ── RESULT CARDS ───────────────────────────────────── */
.result-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 0.5rem; }
.result-card {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    padding: 1.25rem; border-radius: var(--radius); border: 2px solid var(--border);
    background: var(--card-bg); cursor: pointer; transition: all 0.2s;
    font-weight: 700; font-size: 0.9rem;
}
.result-card i { font-size: 1.75rem; }
.result-card.pass i { color: var(--austin-green); }
.result-card.fail i { color: var(--austin-red); }
.result-card.followup i { color: var(--austin-orange); }
.result-card.pass.selected { border-color: var(--austin-green); background: #f0fff4; }
.result-card.fail.selected { border-color: var(--austin-red); background: #fff5f5; }
.result-card.followup.selected { border-color: var(--austin-orange); background: #fffaf0; }
.result-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ── PRICING CARDS ──────────────────────────────────── */
.pricing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pricing-card {
    border: 2px solid var(--border); border-radius: var(--radius-lg);
    padding: 1.5rem; text-align: center; cursor: pointer;
    transition: all 0.2s; position: relative; background: var(--card-bg);
}
.pricing-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pricing-card.selected { border-color: var(--austin-accent); background: #ebf8ff; }
.pricing-badge {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: var(--austin-accent); color: white; padding: 0.15rem 0.75rem;
    border-radius: 12px; font-size: 0.7rem; font-weight: 700; white-space: nowrap;
}
.pricing-badge.best { background: var(--austin-green); }
.pricing-price { font-size: 2.25rem; font-weight: 800; color: var(--austin-blue); margin-top: 0.5rem; }
.pricing-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--text-muted); }
.pricing-features { list-style: none; text-align: left; font-size: 0.82rem; }
.pricing-features li { padding: 0.3rem 0; display: flex; align-items: center; gap: 0.5rem; }
.pricing-features i { color: var(--austin-green); font-size: 0.75rem; }

/* ── PROGRESS BAR ───────────────────────────────────── */
.progress-wrap {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1.5rem; padding: 0.75rem 1rem;
    background: var(--card-bg); border-radius: var(--radius);
    box-shadow: var(--shadow); position: sticky; top: 52px; z-index: 50;
}
.progress-bar { flex: 1; height: 8px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; }
.progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--austin-accent), var(--austin-green));
    border-radius: 4px; transition: width 0.3s ease;
}
.progress-text { font-size: 0.8rem; font-weight: 700; color: var(--austin-accent); white-space: nowrap; }

/* ── SUBMIT ─────────────────────────────────────────── */
.form-submit-wrap { text-align: center; margin-top: 1.5rem; }
.btn-submit { width: 100%; max-width: 400px; font-size: 1.1rem; padding: 1rem 2rem; }
.submit-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ── VIDEO STATUS ───────────────────────────────────── */
.video-status {
    font-size: 0.8rem; margin-top: 0.35rem; font-weight: 600;
    display: flex; align-items: center; gap: 0.35rem;
}
.video-status.valid { color: var(--austin-green); }
.video-status.invalid { color: var(--austin-red); }

/* ── CHECKBOX ───────────────────────────────────────── */
.checkbox-label {
    display: flex; align-items: flex-start; gap: 0.5rem;
    font-size: 0.85rem; cursor: pointer; line-height: 1.4;
}
.checkbox-label input[type="checkbox"] {
    width: auto; margin-top: 0.2rem; accent-color: var(--austin-accent);
}

/* ── FAQ ────────────────────────────────────────────── */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
    background: var(--card-bg); border-radius: var(--radius);
    margin-bottom: 0.5rem; border: 1px solid var(--border);
    overflow: hidden;
}
.faq-item summary {
    padding: 1rem 1.25rem; cursor: pointer; font-weight: 600;
    font-size: 0.95rem; list-style: none;
    display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--austin-accent); font-weight: 700; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 1.25rem 1rem; font-size: 0.88rem; color: var(--text-muted); }

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
    background: var(--austin-blue); color: rgba(255,255,255,0.7);
    padding: 2rem 1.25rem; text-align: center; font-size: 0.8rem;
}
.site-footer p { margin-bottom: 0.5rem; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ── MODAL ──────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    display: none; align-items: center; justify-content: center;
    z-index: 200; padding: 1.25rem;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: var(--card-bg); border-radius: var(--radius-lg);
    padding: 2rem; max-width: 420px; width: 100%;
    box-shadow: var(--shadow-lg); position: relative;
}
.modal-close {
    position: absolute; top: 0.75rem; right: 1rem;
    background: none; border: none; font-size: 1.5rem;
    cursor: pointer; color: var(--text-muted);
}
.modal-box h3 { margin-bottom: 0.5rem; color: var(--austin-blue); }
.modal-box > p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }

/* ── ALERTS ─────────────────────────────────────────── */
.alert {
    padding: 0.75rem 1rem; border-radius: 8px;
    font-size: 0.88rem; font-weight: 500;
    display: flex; align-items: center; gap: 0.5rem;
}
.alert-warning { background: #fffaf0; color: #c05621; border: 1px solid #fbd38d; }
.alert-error { background: #fff5f5; color: #c53030; border: 1px solid #feb2b2; margin-bottom: 1rem; }
.alert-success { background: #f0fff4; color: #276749; border: 1px solid #9ae6b4; }

/* ── MISSING FIELDS LIST ────────────────────────────── */
.missing-fields-list {
    list-style: none; max-height: 300px; overflow-y: auto; margin: 0.5rem 0;
}
.missing-fields-list li {
    padding: 0.4rem 0.75rem; margin-bottom: 0.25rem;
    background: #fff5f5; border-radius: 6px;
    font-size: 0.85rem; color: var(--austin-red);
    cursor: pointer; transition: background 0.15s;
}
.missing-fields-list li:hover { background: #fed7d7; }

/* ── DASHBOARD ──────────────────────────────────────── */
.dash-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem;
}
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.dash-table th {
    text-align: left; padding: 0.6rem 0.75rem;
    background: var(--bg-alt); font-weight: 600; color: var(--text);
    border-bottom: 2px solid var(--border);
}
.dash-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
.dash-table tr:hover td { background: #f7fafc; }
.badge {
    display: inline-block; padding: 0.15rem 0.5rem; border-radius: 12px;
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
}
.badge-pass { background: #c6f6d5; color: #276749; }
.badge-fail { background: #fed7d7; color: #9b2c2c; }
.badge-followup { background: #fefcbf; color: #975a16; }
.badge-pending { background: #e2e8f0; color: #4a5568; }
.badge-paid { background: #c6f6d5; color: #276749; }
.btn-sm {
    padding: 0.3rem 0.65rem; font-size: 0.75rem; border-radius: 6px;
    font-weight: 600; cursor: pointer; border: 1px solid var(--border);
    background: var(--card-bg); color: var(--text); transition: all 0.15s;
    text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem;
}
.btn-sm:hover { background: var(--bg-alt); }
.btn-sm-primary { background: var(--austin-accent); color: white; border-color: var(--austin-accent); }
.btn-sm-primary:hover { background: var(--austin-blue); }
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }
.empty-state i { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }
.edit-info-section { margin-top: 2rem; }
.edit-info-section h3 { margin-bottom: 1rem; color: var(--austin-blue); }

/* ── SUCCESS PAGE ───────────────────────────────────── */
.success-wrap {
    max-width: 560px; margin: 2rem auto; text-align: center;
}
.success-icon { font-size: 4rem; color: var(--austin-green); margin-bottom: 1rem; }
.success-details {
    background: var(--bg-alt); border-radius: var(--radius);
    padding: 1.25rem; margin: 1.5rem 0; text-align: left;
}
.success-details dt { font-weight: 600; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
.success-details dd { font-size: 0.95rem; margin-bottom: 0.25rem; }
.account-prompt {
    background: #ebf8ff; border: 2px solid var(--austin-accent);
    border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 1.5rem;
    text-align: left;
}
.account-prompt h3 { color: var(--austin-blue); margin-bottom: 0.5rem; }
.account-prompt p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1rem; }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.5rem; }
    .hero { padding: 2rem 1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; }
    .facts-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .result-cards { grid-template-columns: 1fr; }
    .pricing-cards { grid-template-columns: 1fr; }
    .yesno-row { flex-direction: column; align-items: flex-start; }
    .header-inner { flex-direction: column; gap: 0.5rem; }
    .progress-wrap { top: 88px; }
    .dash-table { font-size: 0.78rem; }
    .dash-table th, .dash-table td { padding: 0.4rem 0.5rem; }
}
