/* ===================================
   DESIGN SYSTEM & VARIABLES
   Enterprise-Grade Corporate Design
   =================================== */

:root {
    /* Enterprise Colors - Professional Blue Theme */
    --primary: #0078D4;
    /* Microsoft-style Blue */
    --primary-dark: #005A9E;
    /* Darker blue for hover states */
    --primary-light: #4DA6FF;
    /* Lighter blue for accents */
    --secondary: #107C10;
    /* Success/Growth Green */
    --accent: #00B7C3;
    /* Teal accent */

    /* Neutral Palette */
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #6e6e8a;

    --bg-primary: #ffffff;
    --bg-secondary: #fafbfc;
    --bg-tertiary: #f3f4f6;
    --bg-dark: #1a1a2e;

    --border-color: #e1e4e8;
    --border-light: #eef0f2;

    /* Typography - Enterprise Font Stack */
    --font-primary: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;

    /* Spacing - Refined for Enterprise */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4.5rem;
    --spacing-3xl: 7rem;

    /* Border Radius - More refined */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;

    /* Enterprise Shadows - Subtle and Professional */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.1), 0 6px 12px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.12), 0 12px 24px rgba(0, 0, 0, 0.06);

    /* Transitions - Smooth and Professional */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

ul {
    list-style: none;
}

/* ===================================
   LAYOUT
   =================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: var(--spacing-md) 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-image {
    height: 44px;
    width: auto;
}

.logo-text {
    display: inline-block !important;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo:hover {
    opacity: 0.9;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* ===================================
   BUTTONS - Enterprise Style
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    border-color: var(--text-muted);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ===================================
   HERO SECTION - Enterprise
   =================================== */

.hero {
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    background: linear-gradient(180deg, #f8faff 0%, var(--bg-primary) 100%);
}

.hero-small {
    padding: var(--spacing-2xl) 0;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    margin-bottom: var(--spacing-md);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 120, 212, 0.08);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.75;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    max-width: 600px;
    margin: 0 auto;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===================================
   SECTIONS
   =================================== */

.features,
.who-section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ===================================
   FEATURES GRID
   =================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    padding: var(--spacing-xl);
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   WHO SECTION
   =================================== */

.who-section {
    background: var(--bg-secondary);
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.who-card {
    padding: var(--spacing-xl);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.who-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.who-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.who-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   CTA SECTION - Enterprise
   =================================== */

.cta-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.15) 0%, rgba(0, 183, 195, 0.1) 100%);
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
}

.cta-subtitle {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--spacing-lg);
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* ===================================
   FOOTER - Enterprise
   =================================== */

.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-logo .logo-text {
    display: inline-block !important;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    letter-spacing: -0.01em;
}

.footer-description {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--spacing-md);
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
}

.footer-trust {
    margin-top: var(--spacing-md);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.footer-trust a {
    color: var(--primary-light);
    text-decoration: none;
}

.footer-trust a:hover {
    color: white;
    text-decoration: underline;
}

.footer-address {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    line-height: 1.6;
    margin-top: 8px;
}

/* ===================================
   COMMUNICATION SECTION
   =================================== */

.communication-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-secondary);
}

.communication-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.communication-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary);
    border-radius: var(--radius-lg);
    margin: 0 auto var(--spacing-md);
}

.communication-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.communication-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.communication-link {
    display: inline-block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
}

.communication-link:hover {
    color: var(--primary-dark);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: var(--spacing-md);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 12px 0;
        font-size: 1.125rem;
    }

    .nav-link.active::after {
        bottom: 0;
        height: 2px;
    }

    .nav-actions {
        display: none;
    }

    /* Mobile Overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero {
        padding: var(--spacing-2xl) 0;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .features-grid,
    .who-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
    }
}

/* ===================================
   OPT-IN SECTION - Newsletter
   =================================== */

.optin-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #0078D4 0%, #00B7C3 50%, #107C10 100%);
    position: relative;
    overflow: hidden;
}

.optin-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.optin-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-2xl);
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.optin-content {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.optin-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.1) 0%, rgba(0, 183, 195, 0.1) 100%);
    color: var(--primary);
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
}

.optin-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.optin-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.optin-form {
    margin-bottom: var(--spacing-md);
}

.optin-form-row {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.optin-input-group {
    flex: 1;
    min-width: 200px;
}

.optin-input-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.optin-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.1);
}

.optin-input-group input::placeholder {
    color: var(--text-muted);
}

.btn-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 2rem;
    white-space: nowrap;
    font-size: 1rem;
}

.btn-subscribe svg {
    transition: transform var(--transition-base);
}

.btn-subscribe:hover svg {
    transform: translateX(4px);
}

/* Custom Checkbox Styling */
.optin-consent {
    text-align: left;
    margin-bottom: var(--spacing-md);
}

.optin-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
    padding-left: 36px;
}

.optin-consent-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.optin-checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.optin-consent-label:hover .optin-checkmark {
    border-color: var(--primary);
}

.optin-consent-label input:checked~.optin-checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.optin-checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.optin-consent-label input:checked~.optin-checkmark::after {
    display: block;
}

.optin-consent-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.optin-consent-text a {
    color: var(--primary);
    text-decoration: underline;
}

.optin-consent-text a:hover {
    color: var(--primary-dark);
}

/* Success Message */
.optin-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(16, 124, 16, 0.1) 0%, rgba(0, 183, 195, 0.1) 100%);
    border-radius: var(--radius-md);
    color: var(--secondary);
    font-weight: 600;
    margin-top: var(--spacing-md);
}

.optin-success svg {
    flex-shrink: 0;
}

/* Trust Badges */
.optin-trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-badge svg {
    color: var(--primary);
}

/* Screen Reader Only */
.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;
}

/* Responsive Opt-In Section */
@media (max-width: 768px) {
    .optin-wrapper {
        padding: var(--spacing-xl);
    }

    .optin-form-row {
        flex-direction: column;
    }

    .optin-input-group {
        min-width: 100%;
    }

    .btn-subscribe {
        width: 100%;
        justify-content: center;
    }

    .optin-trust-badges {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
}

/* ===================================
   OPT-IN SECTION - Newsletter
   =================================== */

.optin-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #0078D4 0%, #00B7C3 50%, #107C10 100%);
    position: relative;
    overflow: hidden;
}

.optin-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.optin-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-2xl);
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.optin-content {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.optin-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.1) 0%, rgba(0, 183, 195, 0.1) 100%);
    color: var(--primary);
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
}

.optin-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.optin-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.optin-form {
    margin-bottom: var(--spacing-md);
}

.optin-form-row {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.optin-input-group {
    flex: 1;
    min-width: 200px;
}

.optin-input-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.optin-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.1);
}

.optin-input-group input::placeholder {
    color: var(--text-muted);
}

.btn-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 2rem;
    white-space: nowrap;
    font-size: 1rem;
}

.btn-subscribe svg {
    transition: transform var(--transition-base);
}

.btn-subscribe:hover svg {
    transform: translateX(4px);
}

/* Custom Checkbox Styling */
.optin-consent {
    text-align: left;
    margin-bottom: var(--spacing-md);
}

.optin-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
    padding-left: 36px;
}

.optin-consent-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.optin-checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.optin-consent-label:hover .optin-checkmark {
    border-color: var(--primary);
}

.optin-consent-label input:checked~.optin-checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.optin-checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.optin-consent-label input:checked~.optin-checkmark::after {
    display: block;
}

.optin-consent-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.optin-consent-text a {
    color: var(--primary);
    text-decoration: underline;
}

.optin-consent-text a:hover {
    color: var(--primary-dark);
}

/* Success Message */
.optin-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(16, 124, 16, 0.1) 0%, rgba(0, 183, 195, 0.1) 100%);
    border-radius: var(--radius-md);
    color: var(--secondary);
    font-weight: 600;
    margin-top: var(--spacing-md);
}

.optin-success svg {
    flex-shrink: 0;
}

/* Trust Badges */
.optin-trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-badge svg {
    color: var(--primary);
}

/* Screen Reader Only */
.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;
}

/* Responsive Opt-In Section */
@media (max-width: 768px) {
    .optin-wrapper {
        padding: var(--spacing-xl);
    }

    .optin-form-row {
        flex-direction: column;
    }

    .optin-input-group {
        min-width: 100%;
    }

    .btn-subscribe {
        width: 100%;
        justify-content: center;
    }

    .optin-trust-badges {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
}