/* ==========================================================================
   QUI TAM CENTER — Premium Design System
   Inspired by GRAINIENT.SUPPLY aesthetic — deep gradients, tight spacing
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Premium Dark Gradient Palette */
    --bg-dark-start: #000000;
    --bg-dark-mid: #0a1628;
    --bg-dark-end: #1a365d;
    --bg-light: #e8eef5;

    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --text-inverse: #f8fafc;
    --text-muted: rgba(255, 255, 255, 0.7);

    --accent-primary: #1a365d;
    --accent-blue: #3b82f6;
    --accent-success: #059669;
    --accent-error: #dc2626;

    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Tight Spacing (V16.5 Ultra-Compressed) */
    --section-padding: 2rem;
    --container-max: 900px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   HEADER — Minimal, sticky
   ========================================================================== */

header {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 2rem;
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo svg {
    width: 22px;
    height: 22px;
    stroke: white;
    fill: none;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
}

nav a:hover {
    color: white;
}

/* ==========================================================================
   HERO — Premium gradient, tight
   ========================================================================== */

.hero {
    background: linear-gradient(180deg,
            var(--bg-dark-start) 0%,
            var(--bg-dark-mid) 60%,
            var(--bg-dark-end) 85%,
            var(--bg-light) 100%);
    color: var(--text-inverse);
    padding: 8rem 2rem 4rem;
    text-align: center;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.875rem 2rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.2s;
}

.hero-cta:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   HOW IT WORKS — Compact, hidden when not needed
   ========================================================================== */

.how-it-works {
    padding: var(--section-padding) 2rem;
    background: var(--bg-primary);
}

.section-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step {
    text-align: center;
    padding: 1rem;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 auto 0.75rem;
}

.step h3 {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.step p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   INTAKE FORM — Premium, compact
   ========================================================================== */

.intake-section {
    padding: var(--section-padding) 2rem;
    background: var(--bg-secondary);
}

.form-container {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.form-header {
    background: var(--accent-primary);
    color: white;
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.form-header h2 {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.125rem;
}

.form-header p {
    font-size: 0.75rem;
    opacity: 0.7;
}

.form-body {
    padding: 1.5rem;
}

/* Multi-step form - Hidden Flow (NO step indicators, NO progress) */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-group label .required {
    color: var(--accent-error);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    background: white;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--accent-error);
    animation: shake 0.3s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
}

.form-nav {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border-light);
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: #0f2442;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-primary.success {
    background: var(--accent-success);
}

/* ==========================================================================
   FRAUD TYPES — Minimal grid
   ========================================================================== */

.fraud-types {
    padding: var(--section-padding) 2rem;
    background: var(--bg-primary);
}

.fraud-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.fraud-card {
    padding: 1rem;
    border-left: 2px solid var(--accent-primary);
}

.fraud-card h3 {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.fraud-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   FOOTER — Compact, professional
   ========================================================================== */

footer {
    background: var(--bg-dark-mid);
    color: var(--text-muted);
    padding: 2rem;
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-disclaimer {
    font-size: 0.6875rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-legal {
    display: flex;
    gap: 1.25rem;
}

.footer-copyright {
    font-size: 0.6875rem;
}

/* ==========================================================================
   SUCCESS STATE
   ========================================================================== */

.success-message {
    text-align: center;
    padding: 1.5rem;
}

.success-message .checkmark {
    width: 48px;
    height: 48px;
    background: var(--accent-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.success-message .checkmark svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 3;
}

.success-message h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.success-message p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .logo {
        font-size: 0.75rem;
    }

    nav {
        display: none;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .step {
        display: flex;
        align-items: flex-start;
        text-align: left;
        gap: 0.75rem;
        padding: 0.75rem;
        background: white;
        border-radius: 6px;
    }

    .step-number {
        flex-shrink: 0;
        margin: 0;
    }

    .form-body {
        padding: 1.25rem;
    }

    .fraud-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
    }
}