/* =========================================
   AI Evolution Landing Page - Main Styles
   Premium Design System - RTL Optimized
   ========================================= */

/* === CSS Variables === */
:root {
    /* Colors */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-zinc-50: #fafafa;
    --color-zinc-100: #f4f4f5;
    --color-zinc-200: #e4e4e7;
    --color-zinc-300: #d4d4d8;
    --color-zinc-400: #a1a1aa;
    --color-zinc-500: #71717a;
    --color-zinc-600: #52525b;
    --color-zinc-700: #3f3f46;
    --color-zinc-800: #27272a;
    --color-zinc-900: #18181b;
    
    --color-blue-50: #eff6ff;
    --color-blue-100: #dbeafe;
    --color-blue-500: #3b82f6;
    --color-blue-600: #2563eb;
    
    --color-purple-50: #faf5ff;
    --color-purple-100: #f3e8ff;
    --color-purple-600: #9333ea;
    
    --color-red-50: #fef2f2;
    --color-red-500: #ef4444;
    
    --color-green-50: #f0fdf4;
    --color-green-100: #dcfce7;
    --color-green-200: #bbf7d0;
    --color-green-600: #16a34a;
    
    --color-yellow-400: #facc15;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Typography */
    --font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Prevent images and media from overflowing */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll at root */
}

body {
    font-family: var(--font-family);
    background-color: var(--color-zinc-50);
    color: var(--color-zinc-900);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw; /* Never exceed viewport width */
}

::selection {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* === Progress Bar === */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-zinc-100);
    z-index: 9999;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--color-blue-600), var(--color-purple-600));
    width: var(--progress, 0%);
    transition: width var(--transition-base);
}

/* === Table of Contents === */
.toc-desktop {
    display: none;
    position: fixed;
    left: 2rem;
    top: 8rem;
    z-index: 40;
    width: 14rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-zinc-100);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .toc-desktop {
        display: flex;
    }
}

/* Explicit mobile hiding */
@media (max-width: 1023px) {
    .toc-desktop {
        display: none !important;
    }
}

.toc-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-zinc-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.toc-title svg {
    width: 12px;
    height: 12px;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem; /* Increased from 0.625rem 0.75rem for better touch targets */
    min-height: 44px; /* WCAG 2.1 AA minimum touch target size */
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-zinc-500);
    background: transparent;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    text-align: right;
    transition: all var(--transition-base);
    width: 100%;
}

.toc-link svg {
    width: 16px;
    height: 16px;
}

.toc-link:hover {
    color: var(--color-black);
    background: var(--color-zinc-50);
}

.toc-link.active {
    background: var(--color-black);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

/* Mobile TOC */
.toc-mobile {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 50;
    display: block; /* Explicit for mobile */
}

@media (min-width: 1024px) {
    .toc-mobile {
        display: none !important; /* Force hide on desktop */
    }
}

.toc-mobile-toggle {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.75rem;
    min-width: 44px; /* WCAG touch target */
    min-height: 44px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-zinc-200);
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toc-mobile-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-2xl);
}

.toc-mobile-toggle:active {
    transform: scale(0.95);
}

.toc-mobile-toggle svg {
    width: 20px;
    height: 20px;
}

.toc-mobile-menu {
    position: absolute;
    top: 3.5rem;
    left: 0;
    background: var(--color-white);
    border: 1px solid var(--color-zinc-100);
    box-shadow: var(--shadow-2xl);
    border-radius: var(--radius-2xl);
    padding: 1rem;
    width: 16rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    animation: fadeIn 0.2s ease-out, slideDown 0.2s ease-out;
}

.toc-mobile-menu.open {
    display: flex;
}

.toc-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    display: none;
}

.toc-mobile-overlay.open {
    display: block;
}

/* === Layout === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    box-sizing: border-box; /* Include padding in width calculation */
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* === Sections === */
.section {
    padding: 4rem 0; /* Reduced from 6rem (-33%) */
    border-bottom: 1px solid var(--color-zinc-100);
    overflow-x: hidden; /* Prevent child elements from overflowing */
}

@media (min-width: 768px) {
    .section {
        padding: 5.5rem 0; /* Reduced from 8rem (-31%) */
    }
}

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

.section-light {
    background: rgba(250, 250, 250, 0.5);
}

/* === Hero Section === */
.hero-section {
    position: relative;
    padding-top: 3rem; /* Reduced from 4rem (-25%) */
    padding-bottom: 4rem; /* Reduced from 6rem (-33%) */
    overflow: hidden;
    border-bottom: 1px solid var(--color-zinc-100);
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: 5.5rem; /* Reduced from 8rem (-31%) */
        padding-bottom: 7rem; /* Reduced from 10rem (-30%) */
    }
}

.hero-bg-gradients {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: pulse 8s ease-in-out infinite;
}

.hero-gradient-1 {
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--color-blue-100), var(--color-purple-100));
}

.hero-gradient-2 {
    bottom: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, var(--color-purple-100), var(--color-blue-100));
    animation-delay: 2s;
    animation-duration: 10s;
}

.hero-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem; /* Reduced from 4rem (-37%) */
    align-items: start;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 7fr 5fr;
    }
}

.hero-content {
    animation: slideInRight 1s ease-out;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 6rem); /* Responsive scaling: 32px → 96px */
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: var(--color-zinc-900);
    margin: 1rem 0; /* Reduced from 1.5rem (-33%) */
}

@media (min-width: 768px) {
    .hero-title {
        font-size: clamp(3rem, 6vw, 6rem); /* Desktop: 48px → 96px */
    }
}

.gradient-text {
    background: linear-gradient(270deg, var(--color-blue-600), var(--color-purple-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem); /* Responsive: 18px → 24px */
    font-weight: 700;
    color: var(--color-zinc-800);
    margin-bottom: 0.75rem; /* Reduced from 1rem (-25%) */
}

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

.hero-image-mobile {
    width: 100%;
    max-width: 600px;
    height: 300px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--color-zinc-200);
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .hero-image-mobile {
        display: none;
    }
}

.hero-image-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-image-mobile:hover img {
    transform: scale(1.05);
}

/* === Badges === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.badge-dark {
    background: linear-gradient(90deg, var(--color-zinc-900), var(--color-zinc-700));
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
}

.badge-blue {
    background: linear-gradient(90deg, var(--color-blue-50), var(--color-purple-50));
    color: var(--color-blue-600);
    border: 1px solid var(--color-blue-100);
}

.badge-icon-fill {
    width: 14px;
    height: 14px;
}

.badge-icon-fill.lucide-zap {
    fill: var(--color-yellow-400);
}

.badge-icon-fill.lucide-sparkles {
    fill: var(--color-blue-600);
}

/* === Section Headers === */
.section-header-wrapper {
    margin-bottom: 3rem;
    max-width: 760px;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 3rem); /* Responsive: 24px → 48px */
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--color-zinc-900);
    margin-bottom: 1rem; /* Reduced from 1.5rem (-33%) */
}

@media (min-width: 768px) {
    .section-title {
        font-size: clamp(2rem, 3vw, 3rem); /* Desktop: 32px → 48px */
    }
}

/* === Bullets Box === */
.bullets-box {
    background: linear-gradient(135deg, var(--color-zinc-50), rgba(239, 246, 255, 0.3));
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(228, 228, 231, 0.5);
    backdrop-filter: blur(4px);
    margin-bottom: 1.5rem; /* Reduced from 2.5rem (-40%) */
}

.bullets-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-zinc-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.bullets-icon {
    width: 12px;
    height: 12px;
}

.bullets-icon.lucide-zap {
    fill: var(--color-blue-500);
    color: var(--color-blue-500);
}

.bullets-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Kept at 0.5rem (good spacing) */
}

.bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-zinc-800);
    line-height: 1.4; /* Reduced from 1.5 (-7%) */
}

.bullet-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-blue-600);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* === Grid Layouts === */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .two-col-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.content-col {
    max-width: 760px;
}

.image-col {
    order: -1;
}

@media (min-width: 768px) {
    .image-col {
        order: 0;
    }
}

.section-image {
    position: relative;
    height: 400px;
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--color-zinc-200);
}

@media (min-width: 768px) {
    .section-image {
        height: 600px;
    }
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.section-image:hover img {
    transform: scale(1.1);
}

/* === Content Text === */
.content-text {
    font-size: 1.25rem;
    line-height: 1.6; /* Reduced from 1.8 (-11%) */
    color: var(--color-zinc-700);
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* Reduced from 2rem (-37%) */
    border-right: 4px solid var(--color-zinc-100);
    padding-right: 2rem;
    transition: border-color var(--transition-slow);
}

@media (min-width: 768px) {
    .content-text {
        font-size: 1.5rem;
    }
}

.content-text:hover {
    border-color: var(--color-blue-500);
}

.content-text strong {
    color: var(--color-zinc-900);
    font-weight: 700;
}

.text-muted {
    color: var(--color-zinc-600);
}

.text-large {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .text-large {
        font-size: 1.875rem;
    }
}

.text-xlarge {
    font-size: 2rem;
}

@media (min-width: 768px) {
    .text-xlarge {
        font-size: 2.5rem;
    }
}

.text-medium {
    font-size: 1.125rem;
}

.text-strong {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-zinc-900);
}

.text-divider {
    color: var(--color-zinc-300);
    font-weight: 300;
    font-size: 0.875rem;
    letter-spacing: 0.5em;
    text-align: center;
}

/* === Cards === */
.card {
    background: var(--color-white);
    border: 1px solid var(--color-zinc-100);
    border-radius: var(--radius-xl);
    padding: 1.5rem; /* Reduced from 2rem (-25%) */
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
}

@media (min-width: 768px) {
    .card {
        padding: 2.25rem; /* Reduced from 3rem (-25%) */
    }
}

.card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--color-zinc-200);
    transform: translateY(-0.25rem);
}

.card-highlight {
    border-right: 8px solid var(--color-blue-600);
    box-shadow: var(--shadow-xl);
    transition: border-color var(--transition-slow);
}

.card-highlight:hover {
    border-color: var(--color-purple-600);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.strikethrough {
    text-decoration: line-through;
    text-decoration-thickness: 4px;
    text-decoration-color: rgba(239, 68, 68, 0.5);
    color: var(--color-zinc-400);
}

/* === Highlight Box === */
.highlight-box {
    background: linear-gradient(270deg, var(--color-blue-50), var(--color-purple-50));
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
    border-right: 4px solid var(--color-blue-500);
    box-shadow: var(--shadow-lg);
    margin: -1.5rem 0 -1.5rem -1.5rem;
    transition: box-shadow var(--transition-base);
}

.highlight-box:hover {
    box-shadow: var(--shadow-xl);
}

.highlight-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-zinc-900);
    font-style: normal;
}

@media (min-width: 768px) {
    .highlight-text {
        font-size: 1.875rem;
    }
}

/* === Dark Box === */
.dark-box {
    background: linear-gradient(135deg, var(--color-zinc-900), var(--color-zinc-800));
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.dark-box-text {
    font-size: 1.875rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--color-white);
}

@media (min-width: 768px) {
    .dark-box-text {
        font-size: 2.25rem;
    }
}

.text-highlight {
    color: var(--color-yellow-400);
}

/* === Forms === */
.form-container {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 20;
}

@media (min-width: 1024px) {
    .form-container {
        position: sticky;
        top: 2rem;
    }
}

.form-center {
    max-width: 440px;
}

.form-card {
    border: 1px solid rgba(228, 228, 231, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
}

.form-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.form-content {
    animation: slideInBottom 1s ease-out;
}

.qualification-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.875rem;
    color: var(--color-zinc-500);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-zinc-700);
    margin-right: 0.25rem;
}

.required {
    color: var(--color-red-500);
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-2xl);
    border: 2px solid var(--color-zinc-200);
    background: rgba(250, 250, 250, 0.5);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-base);
    outline: none;
}

.form-input:focus {
    border-color: var(--color-black);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.form-input.error {
    border-color: var(--color-red-500);
    background: var(--color-red-50);
}

.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-error {
    display: none;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem; /* Increased from 0.75rem (12px → 13px) for better readability */
    color: var(--color-red-500);
    font-weight: 500;
    margin-right: 0.25rem;
    animation: slideInTop 0.2s ease-out;
}

.form-error.visible {
    display: flex;
}

.form-error svg {
    width: 13px; /* Match text size */
    height: 13px;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    transition: all var(--transition-base);
}

.checkbox-label:hover {
    background: var(--color-zinc-50);
    border-color: var(--color-zinc-100);
}

.checkbox-label.error {
    border-color: var(--color-red-200);
    background: rgba(254, 242, 242, 0.5);
}

.checkbox-input {
    margin-top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--color-black);
}

.checkbox-text {
    font-size: 0.75rem;
    color: var(--color-zinc-600);
    line-height: 1.5;
    user-select: none;
}

/* === Buttons === */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    outline: none;
}

.btn:active {
    transform: scale(0.95);
}

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

.btn-primary {
    background: var(--color-black);
    color: var(--color-white);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--color-blue-600), var(--color-purple-600));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-primary:hover::before {
    opacity: 0.1;
}

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

.btn-primary:focus {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn .spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.form-footer-text {
    font-size: 0.75rem; /* Increased from 0.6875rem (11px → 12px) */
    text-align: center;
    color: var(--color-zinc-400);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.form-footer-text svg {
    width: 12px;
    height: 12px;
}

/* === Success Message === */
.success-message {
    text-align: center;
    padding: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeIn 0.5s ease-out, zoomIn 0.5s ease-out;
}

.success-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--color-green-50), #dcfce7);
    color: var(--color-green-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 1px solid var(--color-green-200);
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.1);
}

.success-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    animation: zoomIn 0.3s ease-out 0.2s backwards;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-zinc-900);
}

.success-text {
    color: var(--color-zinc-600);
    line-height: 1.6;
}

.success-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-zinc-500);
    background: var(--color-zinc-50);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    margin: 1rem auto 0;
}

.success-badge svg {
    width: 14px;
    height: 14px;
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-2rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInTop {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-1rem);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
    }
}

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

/* === Responsive Utilities === */
/* Mobile Optimizations - Standard breakpoint 768px */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0; /* Reduced from 4rem (aligned with desktop reduction) */
    }
    
    .container, .container-narrow {
        padding: 0 1rem;
    }
    
    .card {
        padding: 1.25rem; /* Reduced from 1.5rem */
    }
    
    .content-text {
        font-size: 1.125rem;
        padding-right: 1rem;
    }
}

/* Small Mobile Devices (iPhone SE, older Android) */
@media (max-width: 375px) {
    .section {
        padding: 2.5rem 0; /* Reduced from 3rem */
    }
    
    .hero-section {
        padding-top: 2.5rem; /* Reduced from 3rem */
        padding-bottom: 3.5rem; /* Reduced from 4rem */
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .container, .container-narrow {
        padding: 0 0.875rem;
    }
}

/* Extra Small Mobile Devices (320px - oldest iPhones) */
@media (max-width: 320px) {
    .section {
        padding: 2rem 0; /* Reduced from 2.5rem */
    }
    
    .hero-section {
        padding-top: 1.5rem; /* Reduced from 2rem */
        padding-bottom: 2.5rem; /* Reduced from 3rem */
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .form-input {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}