/**
 * Page chrome for the live lead form (index.html) only — header, logo,
 * container, progress bar, about/privacy modals, footer, and this app's
 * color palette. NOT loaded by dash.ezlender.org's admin builder, unlike
 * questions/form.css: nothing in here is about how a rendered step/field
 * looks (that's form.css, shared so the admin's live preview can't drift
 * from what a lead actually sees) — it's about the page around the form.
 * The admin dash defines its own matching --primary/etc. values separately
 * (see questions/form.css's header comment).
 */
:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --gray: #6b7280;
    --light: #f3f4f6;
    --success: #10b981;
}
* {
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    margin: 0;
    min-height: 100vh;
    color: #1f2937;
    display: flex;
    flex-direction: column;
}
header {
    background: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -2px;
    user-select: none;
}
.logo .ez {
    color: var(--primary);
}
.logo .lender {
    color: #1f2937;
}
.header-links {
    display: flex;
    align-items: center;
    gap: 16px;
}
.about-link {
    font-size: 0.85rem;
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
}
.about-link:hover {
    color: var(--gray);
    text-decoration: underline;
}
.container {
    max-width: 800px;
    width: 100%;
    margin: 1.5rem auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.progress-bar {
    height: 8px;
    background: #e5e7eb;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-content {
    padding: 0 2rem 3rem;
    flex: 1;
    /* position:relative for this element comes from questions/form.css's
       .ez-rendered-form rule — #form-content carries that class too, and
       that's the shared file since the .step children it positions need
       to work identically in the admin preview. */
}
/* Step/field rendering styles (h2, inputs, .option-card, .checkbox-item,
   .input-wrapper, .navigation/.btn-prev/.btn-next, the .step slide
   transition, etc.) live in questions/form.css, shared with the admin
   builder's live preview — see that file, not here. */
/* Full-viewport, click-through wrapper the helper widget (helper/helper.js)
   mounts into — position:fixed so the widget sits relative to the actual
   viewport regardless of page scroll/content height, not to .form-content.
   pointer-events:none here (re-enabled on .ez-helper itself, in the shared
   helper.css) so this invisible full-page div never blocks clicks on
   anything else. This positioning choice is page-specific, which is why
   it's here and not in helper.css — the admin dash's live preview mounts
   the same widget into a small position:relative panel instead (see
   dash's css/helpers.css), not a viewport-fixed wrapper. */
#helper-mount {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 500;
}
/* MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    .logo {
        font-size: 1.8rem;
    }
    .container {
        margin: 0;
        border-radius: 0;
    }
    .form-content {
        padding: 0 1.5rem 2rem;
    }
}
@media (max-width: 480px) {
    .form-content {
        padding: 0 1rem 1.5rem;
    }
}
/* About Modal */
.about-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.about-modal.active {
    display: flex;
}
.about-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
}
.about-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.8rem;
    color: #9ca3af;
    cursor: pointer;
}
.about-close:hover {
    color: #4b5563;
}
footer {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
}
