/* ==========================================================================
   LawProject - Main Stylesheet
   Modern, professional design for a legal documents SaaS
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote {
    margin: 0;
    padding: 0;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

ul, ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
    /* Primary - Teal/Green (trustworthy, professional) */
    --color-primary: #4a9b8c;
    --color-primary-hover: #3d8273;
    --color-primary-light: #e8f5f2;

    /* Neutrals */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-background: #ffffff;
    --color-background-alt: #f5f5f5;
    --color-border: #e0e0e0;

    /* Accents */
    --color-success: #28a745;
    --color-warning: #e8b339;
    --color-error: #dc3545;

    /* Typography */
    --font-heading: 'Libre Baskerville', Georgia, serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;

    /* Container */
    --container-max: 1200px;
    --container-narrow: 800px;

    /* Header height */
    --header-height: 70px;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem; }
}

p {
    margin-bottom: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

.container-narrow {
    max-width: var(--container-narrow);
}

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Grid */
.grid {
    display: grid;
    gap: var(--space-md);
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Text utilities */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-light); }

/* Spacing utilities */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-hover);
}

.btn-secondary {
    background-color: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

@media (min-width: 768px) {
    .btn-full-mobile {
        width: auto;
    }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo:hover {
    color: var(--color-primary-hover);
}


.logo-link {
    display: flex; /* Helps align the image vertically */
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px; /* Adjust this number to fit your header height */
    width: auto;  /* Keeps the logo aspect ratio correct */
    object-fit: contain; /* Ensures logo doesn't get squished */
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: var(--space-lg);
    }
}

.nav-link {
    color: var(--color-text-light);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Mobile Navigation */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.nav-mobile {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-mobile.is-open {
    display: block;
}

.nav-mobile a {
    display: block;
    padding: var(--space-sm) 0;
    color: var(--color-text);
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
}

.nav-mobile a:last-child {
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--color-background-alt);
    border-top: 1px solid var(--color-border);
    padding: var(--space-xl) 0 var(--space-lg);
    margin-top: var(--space-2xl);
}

.footer-grid {
    display: grid;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-column h4 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.footer-column a {
    display: block;
    padding: 6px 0;
    color: var(--color-text-light);
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    padding: var(--space-xl) 0 var(--space-2xl);
    text-align: center;
    background-image: url('/images/hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Dark overlay for text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: var(--space-md);
    color: #fff;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

@media (min-width: 768px) {
    .hero {
        padding: var(--space-2xl) 0 calc(var(--space-2xl) * 1.5);
    }
}

.hero h1 {
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    /* color: var(--color-text-light); */
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
}

@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
    padding: var(--space-xl) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-2xl) 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

/* --------------------------------------------------------------------------
   How It Works
   -------------------------------------------------------------------------- */
.steps {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    text-align: center;
    padding: var(--space-md);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.step h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.25rem;
}

.step p {
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Template Cards
   -------------------------------------------------------------------------- */
.template-card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--space-md);
    transition: box-shadow 0.2s, transform 0.2s;
}

.template-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.template-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.template-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.template-card p {
    color: var(--color-text-light);
    font-size: 15px;
    margin-bottom: var(--space-sm);
}

.template-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.template-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-muted);
}

.template-card .btn {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Pricing Cards
   -------------------------------------------------------------------------- */
.pricing-grid {
    display: grid;
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pricing-card {
    background-color: var(--color-background);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-lg);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--color-primary);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-warning);
    color: white;
    padding: 4px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.pricing-amount span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.pricing-card ul {
    text-align: left;
    margin: var(--space-md) 0;
}

.pricing-card li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-light);
}

.pricing-card li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    margin-top: auto;
}

/* Checkout pricing options - side by side on desktop */
.pricing-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 700px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pricing-options {
        flex-direction: row;
        justify-content: center;
    }

    .pricing-options .pricing-card {
        flex: 1;
        max-width: 320px;
    }
}

/* --------------------------------------------------------------------------
   Trust Section
   -------------------------------------------------------------------------- */
.trust-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text-light);
    font-size: 15px;
}

.trust-item svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.trust-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.trust-statement {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.trust-faces {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.trust-face {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial {
    max-width: 600px;
    margin: var(--space-lg) auto 0;
    text-align: center;
}

.testimonial blockquote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0 0 var(--space-sm) 0;
}

.testimonial cite {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-style: normal;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    background-color: var(--color-primary);
    color: white;
    padding: var(--space-xl) 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.cta-section .btn-secondary {
    background-color: white;
    color: var(--color-primary);
    border-color: white;
}

.cta-section .btn-secondary:hover {
    background-color: var(--color-primary-light);
}

/* --------------------------------------------------------------------------
   FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.2s;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding-bottom: var(--space-md);
    color: var(--color-text-light);
}

.faq-item.is-open .faq-answer {
    display: block;
}

/* --------------------------------------------------------------------------
   Page Hero (for inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
    background-color: var(--color-background-alt);
    padding: var(--space-xl) 0;
    text-align: center;
}

@media (min-width: 768px) {
    .page-hero {
        padding: var(--space-2xl) 0;
    }
}

.page-hero h1 {
    margin-bottom: var(--space-sm);
}

.page-hero p {
    color: var(--color-text-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Legal Pages
   -------------------------------------------------------------------------- */
.legal-content {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-sm);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   Utility: Visually Hidden (for accessibility)
   -------------------------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Link with arrow
   -------------------------------------------------------------------------- */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-primary);
    font-weight: 600;
}

.link-arrow:hover {
    text-decoration: underline;
}

.link-arrow::after {
    content: '\2192';
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

/* Form Group */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--color-text);
    font-size: 14px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: white;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-input.error {
    border-color: var(--color-error);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

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

/* Form Row (side by side inputs) */
.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 767px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Checkbox and Radio Groups */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.checkbox-group.horizontal,
.radio-group.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.checkbox-item label,
.radio-item label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

/* Button-Style Toggle for Yes/No Options */
.btn-group-toggle {
    display: inline-flex;
    gap: 0;
    margin-top: 8px;
}

.btn-group-toggle .btn-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #fff;
    border: 2px solid var(--color-border);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.btn-group-toggle .btn-toggle:first-child {
    border-radius: 8px 0 0 8px;
    border-right: 1px solid var(--color-border);
}

.btn-group-toggle .btn-toggle:last-child {
    border-radius: 0 8px 8px 0;
    border-left: 1px solid var(--color-border);
}

.btn-group-toggle .btn-toggle:hover {
    background: #f8fafc;
}

.btn-group-toggle .btn-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.btn-group-toggle .btn-toggle.selected,
.btn-group-toggle .btn-toggle:has(input:checked) {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.btn-group-toggle .btn-toggle.selected:hover,
.btn-group-toggle .btn-toggle:has(input:checked):hover {
    background: var(--color-primary-dark, #1d4ed8);
}

/* Form Card */
.form-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .form-card {
        padding: 20px;
        border-radius: 8px;
        margin: 0 -16px;
        box-shadow: none;
        border: 1px solid var(--color-border);
    }
}

.form-card h2 {
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.form-card .subtitle {
    color: var(--color-text-light);
    margin-bottom: 24px;
}

/* Form Section (for multi-component forms) */
.form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.125rem;
    margin-bottom: 16px;
    color: var(--color-text);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    gap: 16px;
}

@media (max-width: 767px) {
    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* Error Messages */
.form-error {
    color: var(--color-error);
    font-size: 13px;
    margin-top: 6px;
}

/* Form Hint */
.form-hint {
    color: var(--color-text-muted);
    font-size: 13px;
    margin-top: 4px;
}

/* Optional Label */
.optional {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: normal;
}

/* ==========================================================================
   Progress Steps
   ========================================================================== */
.progress-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-background-alt);
    border-radius: 20px;
    font-size: 13px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.progress-step.active {
    background: var(--color-primary);
    color: white;
}

.progress-step.completed {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.progress-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 12px;
}

.progress-step.active .progress-step-number {
    background: rgba(255, 255, 255, 0.3);
}

.progress-step.completed .progress-step-number {
    background: var(--color-primary);
    color: white;
}

@media (max-width: 767px) {
    .progress-steps {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        margin: 0 -16px 24px;
        padding: 0 16px 8px;
    }

    .progress-step {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ==========================================================================
   Auth Pages
   ========================================================================== */
.auth-container {
    min-height: calc(100vh - var(--header-height) - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-sm);
}

.auth-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
}

@media (max-width: 767px) {
    .auth-card {
        padding: 24px;
    }
}

.auth-card h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    text-align: center;
}

.auth-card .subtitle {
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 32px;
}

.auth-links {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.auth-links a {
    color: var(--color-primary);
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Dashboard
   ========================================================================== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.dashboard-header h1 {
    font-size: 1.75rem;
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.document-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--space-md);
    transition: box-shadow 0.2s;
}

.document-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.document-info h3 {
    font-size: 1rem;
    font-family: var(--font-body);
    margin-bottom: 4px;
}

.document-meta {
    font-size: 14px;
    color: var(--color-text-muted);
}

.document-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.completed {
    background: #d4edda;
    color: #155724;
}

.status-badge.draft {
    background: #fff3cd;
    color: #856404;
}

.status-badge.pending {
    background: #cce5ff;
    color: #004085;
}

@media (max-width: 767px) {
    .document-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .document-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.empty-state {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    color: var(--color-text-muted);
}

.empty-state p {
    margin-bottom: var(--space-md);
}

/* ==========================================================================
   Checkout Pages
   ========================================================================== */
.checkout-container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-sm);
}

.checkout-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.checkout-header h1 {
    margin-bottom: var(--space-xs);
}

.checkout-header .subtitle {
    color: var(--color-text-light);
}

.checkout-options {
    display: grid;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .checkout-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

.checkout-card {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-lg);
    text-align: center;
    position: relative;
    transition: border-color 0.2s;
}

.checkout-card:hover {
    border-color: var(--color-primary);
}

.checkout-card.featured {
    border-color: var(--color-primary);
}

.checkout-card h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.checkout-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.checkout-price span {
    font-size: 1rem;
    font-weight: normal;
    color: var(--color-text-muted);
}

.checkout-features {
    text-align: left;
    margin: var(--space-md) 0;
}

.checkout-features li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.checkout-features li:last-child {
    border-bottom: none;
}

.checkout-features li::before {
    content: '✓';
    color: var(--color-success);
    font-weight: bold;
}

.notice-box {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1565c0;
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.checkout-login-prompt {
    text-align: center;
    margin-top: var(--space-lg);
    color: var(--color-text-light);
}

.checkout-login-prompt a {
    color: var(--color-primary);
}

/* ==========================================================================
   Checkout Preview
   ========================================================================== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: start;
}

@media (min-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

.document-preview h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.preview-container {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: var(--color-background-alt);
    padding: var(--space-md);
}

.preview-image {
    width: 100%;
    height: auto;
    display: block;
}

.preview-caption {
    margin-top: var(--space-sm);
    font-size: 14px;
    color: var(--color-text-muted);
    text-align: center;
}

@media (max-width: 899px) {
    .document-preview {
        order: -1;
    }
}



/* Success Page */
.success-container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-sm);
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.success-container h1 {
    margin-bottom: var(--space-sm);
}

.success-container p {
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
}
