/* 
   Blue Fast Distribution - Central Design System CSS
   Author: Senior UX Designer & Web Developer
   Compliance & Accessibility Standards (WCAG 2.1 AA)
*/

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

:root {
    /* Color Palette */
    --primary: #1e3a8a;          /* Deep Navy Blue */
    --primary-light: #2563eb;    /* Bright Accent Blue */
    --primary-dark: #1e293b;     /* Slate Dark Blue */
    --accent: #d97706;           /* Factual Amber Accent */
    --accent-light: #f59e0b;     /* Highlight Gold */
    --accent-hover: #b45309;     /* Deep Amber */
    
    /* Neutral System Colors */
    --bg-main: #f8fafc;          /* Soft Off-White Background */
    --bg-alt: #f1f5f9;           /* Soft Muted Gray */
    --bg-card: #ffffff;          /* Pure White for Container Cards */
    --bg-dark: #0f172a;          /* Dark Slate for Footer & Headers */
    
    --text-main: #0f172a;        /* High-contrast Slate Text */
    --text-muted: #334155;       /* Muted Slate Text */
    --text-light: #f8fafc;       /* Light Slate Text on Dark BG */
    --text-dim: #94a3b8;         /* Dim Slate for metadata */
    
    --border: #cbd5e1;           /* Accessible Border Gray */
    --border-light: #e2e8f0;     /* Soft Divider Gray */
    --focus-outline: #2563eb;    /* Keyboard focus ring color */
    
    /* Fonts */
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout & Shadow Tokens */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-sm: 4px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Accessibility Constants */
    --min-touch-target: 44px;
}

/* 1. Core Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--primary-dark);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; margin-top: 1.5rem; }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Ensure focus states are clearly visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

/* 2. Layout Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 4.5rem 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .grid-2 .btn-group {
        justify-content: center;
    }
}

.bg-alt-section {
    background-color: var(--bg-alt);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3. Header & Navigation */
header.site-header {
    background-color: var(--bg-dark);
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--primary-light);
    box-shadow: var(--shadow-md);
}

header.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-light);
    text-decoration: none;
}

.logo-text span {
    color: var(--accent-light);
}

nav.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--accent-light);
    text-decoration: none;
}

.nav-link.active {
    color: var(--accent-light);
    border-bottom: 2px solid var(--accent-light);
}

/* Mobile Menu Toggle Button */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    min-width: var(--min-touch-target);
    min-height: var(--min-touch-target);
}

/* 4. Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
    color: var(--text-light);
    padding: 6rem 0;
    position: relative;
    border-bottom: 4px solid var(--accent-light);
}

.hero h1 {
    color: var(--text-light);
    font-size: 3rem;
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.hero p {
    color: var(--text-dim);
    font-size: 1.25rem;
    max-width: 650px;
    margin-bottom: 2.5rem;
}

/* 5. Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: var(--min-touch-target);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--text-light);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-dark {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

.btn-dark:hover {
    background-color: var(--primary);
    color: var(--text-light);
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 6. Feature & Services Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.card h3 {
    color: var(--primary-dark);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

/* 7. Forms */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 3rem;
}

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

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-label .required {
    color: #dc2626;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-light);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Grid Layout inside Forms */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* SMS Disclosure Checkbox Blocks (Strict A2P Compliance Styling) */
.compliance-checkbox-block {
    background-color: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.compliance-checkbox-block:hover {
    border-color: var(--border);
}

.checkbox-label-container {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 1rem;
    cursor: pointer;
    align-items: flex-start;
}

/* Custom Checkbox target scaling for accessibility */
.compliance-checkbox-block input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--primary);
}

.disclosure-text {
    font-size: 0.825rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.disclosure-text a {
    font-weight: 600;
    text-decoration: underline;
}

.disclosure-text a:hover {
    color: var(--primary);
}

.honeypot-field {
    display: none !important;
    visibility: hidden !important;
}

/* Form status feedback */
.form-feedback {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    display: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-feedback.success {
    display: block;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.form-feedback.error {
    display: block;
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* 8. Footer */
footer.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    margin-top: auto;
    border-top: 4px solid var(--accent-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-light);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-dim);
}

.footer-links a:hover {
    color: var(--text-light);
    text-decoration: none;
}

.footer-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-dim);
}

.footer-info-item a {
    color: var(--text-dim);
}

.footer-info-item a:hover {
    color: var(--text-light);
}

/* Legal Footer Disclaimer (Calm, Factual Finance Language) */
.footer-disclaimer-box {
    border-top: 1px solid #334155;
    padding: 2rem 0;
}

.footer-disclaimer-box p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #334155;
    padding-top: 1.5rem;
    color: var(--text-dim);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright-links {
    display: flex;
    gap: 1.5rem;
}

.footer-copyright-links a {
    color: var(--text-dim);
}

.footer-copyright-links a:hover {
    color: var(--text-light);
}

/* 9. Miscellaneous Pages Components (FAQ, Process flow, about) */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.faq-item p {
    margin-bottom: 0;
}

/* Process Timeline (How it Works) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 5rem;
    margin-bottom: 3.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: 0;
    top: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
    border: 4px solid var(--bg-main);
    box-shadow: var(--shadow-sm);
}

.timeline-content {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
    margin-bottom: 0.75rem;
}

.timeline-content p {
    margin-bottom: 0;
}

/* 10. Responsive Breakpoints */
@media (max-width: 992px) {
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 85px;
        left: 0;
        background-color: var(--bg-dark);
        padding: 1.5rem;
        border-top: 1px solid #1e293b;
        box-shadow: var(--shadow-md);
        gap: 1.5rem;
    }
    
    .nav-list.show {
        display: flex;
    }
    
    .nav-link {
        display: block;
        padding: 0.5rem 0;
    }
    
    .hero {
        padding: 4.5rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-copyright {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-copyright-links {
        justify-content: center;
        width: 100%;
    }
    
    .timeline::before {
        left: 23px;
    }
    
    .timeline-badge {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .timeline-item {
        padding-left: 4rem;
    }
}

/* 10. Wizard Form Styles */
.wizard-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 3rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
}

.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--border-light);
    z-index: 1;
    transform: translateY(-50%);
}

.wizard-progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    background-color: var(--primary);
    z-index: 2;
    transform: translateY(-50%);
    transition: width 0.4s ease;
    width: 0%;
}

.progress-node {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 3px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-muted);
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.progress-node.active {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.progress-node.completed {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--text-light);
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

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

.wizard-question {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
@media (max-width: 576px) {
    .selection-grid {
        grid-template-columns: 1fr;
    }
}

.selection-card {
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background-color: var(--bg-card);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.selection-card:hover {
    border-color: var(--accent);
    background-color: var(--bg-alt);
    transform: translateY(-2px);
}

.selection-card.selected {
    border-color: var(--primary);
    background-color: var(--bg-alt);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.selection-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.selection-card-title {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
}

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.wizard-navigation button {
    flex: 1;
}

.wizard-navigation button.btn-back {
    background-color: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.wizard-navigation button.btn-back:hover {
    background-color: var(--bg-alt);
}

