/* ============================================
   NEEDSLEY MOBILE-FIRST DESIGN SYSTEM
   ============================================ */

:root {
    --needsley-primary: #1d4ed8;
    --needsley-primary-light: #3b82f6;
    --needsley-primary-dark: #1e40af;
    --needsley-accent: #10b981;
    --needsley-accent-light: #34d399;
    --needsley-purple: #7c3aed;
    --needsley-orange: #f59e0b;

    --n-900: #0f172a;
    --n-800: #1e293b;
    --n-700: #334155;
    --n-600: #475569;
    --n-500: #64748b;
    --n-400: #94a3b8;
    --n-300: #cbd5e1;
    --n-200: #e2e8f0;
    --n-100: #f1f5f9;
    --n-50: #f8fafc;

    --text-primary: var(--n-800);
    --text-secondary: var(--n-500);
    --background: #f0f4ff;
    --white: #ffffff;
    --error: #ef4444;
    --success: #10b981;
    --border: var(--n-200);

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--needsley-primary-dark), var(--needsley-purple));
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.loading-logo-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--needsley-primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: logoPop 0.5s var(--ease-out-back) 0.1s both;
}

.loading-brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    animation: fadeSlideUp 0.5s var(--ease-out-expo) 0.2s both;
}

.loading-bar-container {
    width: 10rem;
    animation: fadeSlideUp 0.5s var(--ease-out-expo) 0.3s both;
}

.loading-bar-track {
    width: 100%;
    height: 0.25rem;
    background: rgba(255,255,255,0.2);
    border-radius: 0.125rem;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: white;
    border-radius: 0.125rem;
    animation: loadProgress 1.2s var(--ease-out-expo) 0.4s forwards;
}

.loading-text {
    color: rgba(255,255,255,0.7);
    font-size: 0.8125rem;
    font-weight: 500;
    animation: fadeSlideUp 0.5s var(--ease-out-expo) 0.4s both;
}

@keyframes loadProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes logoPop {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(0.75rem); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SCROLL PROGRESS
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--needsley-primary), var(--needsley-accent));
    z-index: 10001;
    width: 0%;
    transition: width 0.1s linear;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================
   HEADER - MOBILE FIRST
   ============================================ */
.header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

.brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    background: linear-gradient(135deg, var(--needsley-primary), var(--needsley-purple));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(29,78,216,0.25);
    flex-shrink: 0;
}

.brand-letter {
    color: white;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--n-900);
    letter-spacing: -0.025em;
}

.brand-tagline {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--needsley-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

.agent-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.625rem 0.25rem 0.25rem;
    background: linear-gradient(135deg, rgba(29,78,216,0.06), rgba(124,58,237,0.06));
    border-radius: 2rem;
    border: 1px solid rgba(29,78,216,0.08);
    max-width: 140px;
    overflow: hidden;
}

.agent-avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.agent-details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
}

.agent-label {
    font-size: 0.5625rem;
    color: var(--n-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    white-space: nowrap;
}

.agent-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--n-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: linear-gradient(135deg, #d1fae5, #ecfdf5);
    border-radius: 2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #065f46;
    border: 1px solid #a7f3d0;
    white-space: nowrap;
    flex-shrink: 0;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--needsley-accent);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--needsley-accent);
    opacity: 0.4;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Header responsive */
@media (max-width: 360px) {
    .trust-text {
        display: none;
    }
    .trust-badge {
        padding: 0.375rem;
    }
}

@media (min-width: 640px) {
    .header {
        padding: 1rem 0;
    }
    .brand-mark {
        width: 2.5rem;
        height: 2.5rem;
    }
    .brand-letter {
        font-size: 1.25rem;
    }
    .brand-name {
        font-size: 1.125rem;
    }
    .brand-tagline {
        font-size: 0.6875rem;
    }
    .agent-badge {
        padding: 0.375rem 0.875rem 0.375rem 0.375rem;
        max-width: none;
    }
    .agent-avatar {
        width: 2rem;
        height: 2rem;
    }
    .agent-label {
        font-size: 0.625rem;
    }
    .agent-name {
        font-size: 0.875rem;
    }
    .trust-badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    .pulse-dot {
        width: 8px;
        height: 8px;
    }
}

/* ============================================
   HERO SECTION - MOBILE FIRST
   ============================================ */
.hero {
    padding: 1.5rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.35;
    animation: floatShape 10s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #c7d2fe, #a5b4fc);
    top: -60px;
    right: -40px;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #bbf7d0, #86efac);
    bottom: 20px;
    left: -30px;
    animation-delay: -3s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #fde68a, #fcd34d);
    top: 40%;
    left: 50%;
    animation-delay: -6s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.08); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

@media (min-width: 768px) {
    .hero {
        padding: 2.5rem 0 1.5rem;
    }
    .shape-1 {
        width: 300px;
        height: 300px;
        top: -100px;
        right: -50px;
    }
    .shape-2 {
        width: 200px;
        height: 200px;
        bottom: 50px;
        left: -50px;
    }
    .shape-3 {
        width: 150px;
        height: 150px;
    }
}

/* ============================================
   PRODUCT INFO CARD - MOBILE FIRST
   ============================================ */
.product-info {
    animation: fadeInUp 0.7s var(--ease-out-expo) 0.2s both;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    padding: 1.25rem;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.5) inset;
    border: 1px solid rgba(255,255,255,0.6);
    position: relative;
    overflow: hidden;
}

.product-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--needsley-primary), var(--needsley-purple), var(--needsley-accent));
    background-size: 200% 100%;
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(1.25rem); }
    to { opacity: 1; transform: translateY(0); }
}

.product-image-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
    min-height: 160px;
}

.product-image-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.main-product-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 0.625rem;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
    transition: transform 0.4s var(--ease-out-back);
}

.placeholder-image {
    width: 100%;
    max-width: 240px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--needsley-primary), var(--needsley-purple));
    border-radius: 0.75rem;
    color: white;
    box-shadow: 0 10px 30px rgba(29,78,216,0.3);
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.benefits-section {
    padding: 0.25rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--n-900);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--needsley-primary), var(--needsley-accent));
    border-radius: 2px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, rgba(29,78,216,0.04), rgba(124,58,237,0.04));
    border: 1px solid rgba(29,78,216,0.05);
    transition: all 0.3s var(--ease-smooth);
    animation: fadeInLeft 0.4s var(--ease-out-expo) both;
}

.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.2s; }
.benefit-item:nth-child(3) { animation-delay: 0.3s; }
.benefit-item:nth-child(4) { animation-delay: 0.4s; }

.benefit-item:hover {
    background: linear-gradient(135deg, rgba(29,78,216,0.08), rgba(124,58,237,0.08));
    transform: translateX(4px);
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

.benefit-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--needsley-accent), #059669);
    color: white;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.benefit-text {
    flex: 1;
    color: var(--n-700);
    font-size: 0.8125rem;
    line-height: 1.5;
    font-weight: 500;
    word-wrap: break-word;
}

/* Product card responsive */
@media (min-width: 640px) {
    .product-layout {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    .section-title {
        font-size: 1.375rem;
    }
    .main-product-image {
        max-width: 320px;
    }
    .placeholder-image {
        max-width: 280px;
        height: 180px;
        font-size: 4rem;
    }
    .benefit-text {
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr 1fr;
        padding: 2rem;
        gap: 2rem;
    }
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    .main-product-image {
        max-width: 360px;
    }
    .placeholder-image {
        max-width: 300px;
        height: 200px;
    }
    .benefit-item {
        padding: 0.75rem 1rem;
        margin-bottom: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .product-layout {
        padding: 2.5rem;
    }
    .main-product-image {
        max-width: 400px;
    }
    .placeholder-image {
        max-width: 350px;
        height: 220px;
    }
}

/* ============================================
   APPLICATION SECTION - MOBILE FIRST
   ============================================ */
.application-section {
    padding: 1.5rem 0 2.5rem;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

/* Form Container */
.form-container {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.5) inset;
    border: 1px solid rgba(255,255,255,0.6);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.7s var(--ease-out-expo) 0.3s both;
}

.form-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--needsley-primary), var(--needsley-purple));
    background-size: 200% 100%;
    animation: gradientFlow 3s linear infinite;
}

.form-header {
    margin-bottom: 1.25rem;
    text-align: center;
}

.form-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.75rem;
    animation: popIn 0.4s var(--ease-out-back) 0.4s both;
}

.badge-icon {
    font-size: 0.875rem;
    line-height: 1;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.form-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.375rem;
    background: linear-gradient(135deg, var(--needsley-primary), var(--needsley-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.5s var(--ease-out-expo) 0.5s both;
}

.form-subtitle {
    color: var(--n-500);
    font-size: 0.8125rem;
    line-height: 1.5;
    animation: fadeInUp 0.5s var(--ease-out-expo) 0.6s both;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Floating Label Inputs */
.floating-label {
    position: relative;
}

.floating-label input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--n-200);
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    font-family: inherit;
    background: white;
    transition: all 0.25s var(--ease-smooth);
    outline: none;
    color: var(--n-800);
    min-height: 48px;
}

.floating-label input:focus {
    border-color: var(--needsley-primary);
    box-shadow: 0 0 0 3px rgba(29,78,216,0.1), var(--shadow-md);
    transform: translateY(-1px);
}

.floating-label label {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9375rem;
    color: var(--n-400);
    pointer-events: none;
    transition: all 0.25s var(--ease-out-expo);
    background: white;
    padding: 0 0.25rem;
    line-height: 1;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.6875rem;
    color: var(--needsley-primary);
    font-weight: 600;
}

.input-hint {
    display: block;
    font-size: 0.6875rem;
    color: var(--n-400);
    margin-top: 0.375rem;
    margin-left: 0.25rem;
    opacity: 0;
    transform: translateY(-3px);
    transition: all 0.25s var(--ease-smooth);
    line-height: 1.4;
}

.floating-label input:focus ~ .input-hint {
    opacity: 1;
    transform: translateY(0);
}

/* Checkbox */
.terms-section {
    margin: 1.25rem 0 1rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
    padding: 0.5rem 0;
}

.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    border: 2px solid var(--n-300);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
    transition: all 0.25s var(--ease-smooth);
    background: white;
}

.checkbox-check {
    width: 0.75rem;
    height: 0.625rem;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.25s var(--ease-out-back);
}

.checkbox-wrapper input:checked + .checkbox-custom {
    background: linear-gradient(135deg, var(--needsley-primary), var(--needsley-purple));
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(29,78,216,0.25);
}

.checkbox-wrapper input:checked + .checkbox-custom .checkbox-check {
    opacity: 1;
    transform: scale(1);
}

.checkbox-label {
    font-size: 0.6875rem;
    line-height: 1.6;
    color: var(--n-500);
}

.checkbox-label a {
    color: var(--needsley-primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.checkbox-label a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--needsley-primary);
    transition: width 0.25s var(--ease-smooth);
}

.checkbox-label a:hover::after {
    width: 100%;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, var(--needsley-primary), var(--needsley-purple));
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 6px 20px rgba(29,78,216,0.3);
    position: relative;
    overflow: hidden;
    min-height: 52px;
    -webkit-appearance: none;
    appearance: none;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s var(--ease-smooth);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(29,78,216,0.4);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    transition: transform 0.25s var(--ease-out-back);
    display: flex;
    align-items: center;
}

.submit-btn:hover .btn-icon {
    transform: translateX(3px);
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-ring {
    width: 1.25rem;
    height: 1.25rem;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Security Note */
.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.625rem;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-radius: 0.5rem;
    font-size: 0.6875rem;
    color: #065f46;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

.security-note svg {
    flex-shrink: 0;
}

/* Form responsive */
@media (min-width: 640px) {
    .form-container {
        padding: 1.75rem;
        border-radius: 1.5rem;
    }
    .form-title {
        font-size: 1.75rem;
    }
    .form-subtitle {
        font-size: 0.875rem;
    }
    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .floating-label input {
        padding: 1rem 1.125rem;
        font-size: 1rem;
    }
    .floating-label label {
        font-size: 1rem;
        left: 1rem;
    }
    .floating-label input:focus + label,
    .floating-label input:not(:placeholder-shown) + label {
        font-size: 0.75rem;
    }
    .input-hint {
        font-size: 0.75rem;
    }
    .checkbox-label {
        font-size: 0.75rem;
    }
    .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1.0625rem;
        min-height: 56px;
    }
    .security-note {
        font-size: 0.75rem;
        padding: 0.75rem;
    }
}

@media (min-width: 768px) {
    .application-section {
        padding: 2rem 0 3.5rem;
    }
    .form-container {
        padding: 2rem;
    }
    .form-title {
        font-size: 1.875rem;
    }
    .form-subtitle {
        font-size: 0.9375rem;
    }
}

@media (min-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr 320px;
        gap: 1.5rem;
    }
    .form-container {
        padding: 2.25rem;
    }
}

/* ============================================
   SIDEBAR - MOBILE FIRST
   ============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 0.7s var(--ease-out-expo) 0.5s both;
}

.benefit-card {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.5) inset;
    border: 1px solid rgba(255,255,255,0.6);
    overflow: hidden;
    position: relative;
}

.benefit-card-header {
    position: relative;
    margin-bottom: 1rem;
}

.benefit-card-header h3 {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--n-900);
    position: relative;
    z-index: 1;
}

.benefit-card-accent {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, var(--needsley-primary), var(--needsley-accent));
    border-radius: 2px;
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.benefit-item-sidebar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--icon-bg, #f1f5f9), white);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.25s var(--ease-smooth);
    animation: fadeInRight 0.4s var(--ease-out-expo) both;
}

.benefit-item-sidebar:nth-child(1) { animation-delay: 0.5s; }
.benefit-item-sidebar:nth-child(2) { animation-delay: 0.6s; }
.benefit-item-sidebar:nth-child(3) { animation-delay: 0.7s; }
.benefit-item-sidebar:nth-child(4) { animation-delay: 0.8s; }

.benefit-item-sidebar:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

.benefit-icon-wrap {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--icon-bg);
    color: var(--icon-color);
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-out-back);
}

.benefit-item-sidebar:hover .benefit-icon-wrap {
    transform: scale(1.08) rotate(-3deg);
}

.benefit-text-wrap strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--n-800);
    margin-bottom: 0.125rem;
}

.benefit-text-wrap p {
    font-size: 0.6875rem;
    color: var(--n-500);
    line-height: 1.4;
}

/* Trust Card */
.trust-card {
    background: linear-gradient(135deg, var(--needsley-primary), var(--needsley-purple));
    border-radius: 1.25rem;
    padding: 1.25rem;
    color: white;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.7s var(--ease-out-expo) 0.9s both;
}

.trust-card::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    font-size: 5rem;
    opacity: 0.08;
    font-weight: 800;
    line-height: 1;
    font-family: Georgia, serif;
}

.trust-stars {
    font-size: 1rem;
    color: #fbbf24;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.trust-quote {
    font-size: 0.8125rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.trust-author {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    position: relative;
    z-index: 1;
}

.trust-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.trust-author strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
}

.trust-author span {
    font-size: 0.6875rem;
    opacity: 0.8;
}

/* Sidebar responsive */
@media (min-width: 640px) {
    .benefit-card {
        padding: 1.5rem;
    }
    .benefit-card-header h3 {
        font-size: 1.25rem;
    }
    .benefit-text-wrap strong {
        font-size: 0.875rem;
    }
    .benefit-text-wrap p {
        font-size: 0.75rem;
    }
    .trust-card {
        padding: 1.5rem;
    }
    .trust-quote {
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) {
    .sidebar {
        gap: 1.25rem;
    }
    .benefit-card {
        padding: 1.75rem;
    }
    .trust-card {
        padding: 1.75rem;
    }
}

/* Sticky sidebar on desktop only */
@media (min-width: 1024px) {
    .sidebar {
        position: sticky;
        top: 90px;
    }
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
}

.loading-overlay.active {
    display: flex;
}

.spinner-modern {
    position: relative;
    width: 48px;
    height: 48px;
}

.spinner-modern .spinner-ring {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.spinner-modern .spinner-ring:nth-child(2) {
    inset: 6px;
    border-top-color: var(--needsley-accent);
    animation-duration: 1s;
    animation-direction: reverse;
}

.spinner-modern .spinner-ring:nth-child(3) {
    inset: 12px;
    border-top-color: var(--needsley-purple);
    animation-duration: 0.8s;
}

.loading-overlay-text {
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   MODALS - MOBILE FIRST
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 1.25rem;
    padding: 1.75rem 1.25rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    transform: scale(0.92) translateY(1rem);
    transition: all 0.35s var(--ease-out-back);
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Success Modal */
.success-animation {
    margin-bottom: 1rem;
}

.success-circle {
    width: 64px;
    height: 64px;
    margin: 0 auto;
}

.success-circle-bg {
    fill: none;
    stroke: #d1fae5;
    stroke-width: 3;
}

.success-check-path {
    fill: none;
    stroke: var(--needsley-accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

.modal.active .success-check-path {
    animation: drawCheck 0.5s var(--ease-out-expo) 0.2s forwards;
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

.modal-content h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--n-900);
}

.modal-desc {
    color: var(--n-500);
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.application-id-box {
    background: linear-gradient(135deg, #f0f4ff, #e0e7ff);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(29,78,216,0.08);
}

.id-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--n-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.id-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--needsley-primary);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    word-break: break-all;
}

.modal-note {
    color: var(--n-500);
    font-size: 0.75rem;
    margin-bottom: 1.25rem;
}

.btn-primary {
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, var(--needsley-primary), var(--needsley-purple));
    color: white;
    border: none;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
    box-shadow: 0 4px 15px rgba(29,78,216,0.3);
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29,78,216,0.4);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.error-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 15px rgba(239,68,68,0.3);
}

.error-btn:hover {
    box-shadow: 0 6px 20px rgba(239,68,68,0.4);
}

.error-animation {
    margin-bottom: 1rem;
}

.error-circle {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(239,68,68,0.3);
    animation: shake 0.4s var(--ease-smooth);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Modal responsive */
@media (min-width: 480px) {
    .modal-content {
        padding: 2rem 1.5rem;
        border-radius: 1.5rem;
    }
    .modal-content h2 {
        font-size: 1.5rem;
    }
    .modal-desc {
        font-size: 0.875rem;
    }
    .success-circle {
        width: 72px;
        height: 72px;
    }
    .error-circle {
        width: 64px;
        height: 64px;
        font-size: 1.75rem;
    }
    .id-value {
        font-size: 1.25rem;
    }
    .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: auto;
        min-width: 140px;
    }
}

/* ============================================
   FOOTER - MOBILE FIRST
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--n-900), #1e1b4b);
    color: white;
    padding: 2.5rem 0 1.25rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--needsley-primary), var(--needsley-purple), var(--needsley-accent));
    background-size: 200% 100%;
    animation: gradientFlow 3s linear infinite;
}

.footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-logo-letter {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--needsley-primary), var(--needsley-purple));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-desc {
    max-width: 400px;
    margin: 0 auto;
    color: var(--n-400);
    font-size: 0.75rem;
    line-height: 1.6;
    padding: 0 1rem;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--n-700), transparent);
    margin-bottom: 1.25rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--n-400);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--n-400);
    text-decoration: none;
    transition: all 0.25s var(--ease-smooth);
    position: relative;
    padding: 0.25rem 0;
    font-size: 0.75rem;
}

.footer-links a:hover {
    color: white;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--needsley-primary-light);
    transition: width 0.25s var(--ease-smooth);
}

.footer-links a:hover::after {
    width: 100%;
}

/* Footer responsive */
@media (min-width: 640px) {
    .footer {
        padding: 3rem 0 1.5rem;
        margin-top: 3rem;
    }
    .footer-logo-letter {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.125rem;
    }
    .footer-logo-text {
        font-size: 1.375rem;
    }
    .footer-desc {
        font-size: 0.8125rem;
        max-width: 450px;
    }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .footer-links {
        gap: 1.5rem;
    }
}

/* ============================================
   ACCESSIBILITY & UTILITIES
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .floating-shape {
        animation: none;
    }
    .loading-screen {
        display: none;
    }
}

/* Focus visible for keyboard navigation */
input:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--needsley-primary);
    outline-offset: 2px;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .submit-btn:hover::before {
        left: -100%;
    }
    .submit-btn:hover:not(:disabled) {
        transform: none;
    }
    .benefit-item:hover,
    .benefit-item-sidebar:hover {
        transform: none;
    }
}

/* Safe area for notched devices */
@supports (padding-top: env(safe-area-inset-top)) {
    .header {
        padding-top: calc(0.75rem + env(safe-area-inset-top));
    }
    .modal {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}