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

:root {
    --bg-primary: #050505;
    --bg-secondary: #0d0d0d;
    --bg-card: #111113;
    --bg-input: #1a1a1e;
    --border-color: #2a2a2e;
    --border-glow: #2dd4a0;
    --text-primary: #f0f0f0;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent: #34d399;
    --accent-hover: #4ade80;
    --accent-glow: rgba(52, 211, 153, 0.15);
    --accent-glow-strong: rgba(52, 211, 153, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== Base ===== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* ===== Background Effects ===== */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.08), transparent 70%);
    top: -100px;
    left: -100px;
    animation: float1 12s ease-in-out infinite;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.05), transparent 70%);
    bottom: 10%;
    right: -50px;
    animation: float2 15s ease-in-out infinite;
}

.glow-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04), transparent 70%);
    top: 40%;
    left: 30%;
    animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, 50px); }
    66% { transform: translate(-20px, 30px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-40px, -30px); }
    66% { transform: translate(20px, -50px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, -30px); }
}

/* ===== Main Layout ===== */
main {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 80px 0 40px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-glow);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #d1d5db 50%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: clamp(15px, 2.5vw, 18px);
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 460px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 8px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border-color);
}

/* ===== Form Section ===== */
.form-section {
    padding-bottom: 60px;
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Green gradient border on left */
.form-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), rgba(52, 211, 153, 0.1));
    border-radius: 3px;
}

/* Subtle top glow */
.form-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow-strong), transparent);
}

.form-header {
    margin-bottom: 28px;
}

.form-header h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

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

/* ===== Form Elements ===== */
.form-group {
    margin-bottom: 22px;
}

.form-group > label:first-child {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

input[type="text"],
input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-fast);
}

input[type="text"]::placeholder,
input[type="tel"]::placeholder {
    color: var(--text-muted);
}

input[type="text"]:hover,
input[type="tel"]:hover {
    border-color: #3a3a40;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ===== Radio Buttons ===== */
.radio-group {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    flex: 1;
    justify-content: center;
}

.radio-option:hover {
    border-color: #3a3a40;
    background: #1e1e22;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.radio-option input[type="radio"]:checked ~ .radio-custom {
    border-color: var(--accent);
}

.radio-option input[type="radio"]:checked ~ .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-option input[type="radio"]:checked ~ .radio-text {
    color: var(--accent);
}

.radio-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

/* ===== Submit Button ===== */
.submit-btn {
    width: 100%;
    margin-top: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent), #2ec98a);
    color: #050505;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.01em;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(52, 211, 153, 0.3);
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .btn-loader {
    opacity: 1;
}

.btn-loader {
    position: absolute;
    opacity: 0;
    transition: opacity var(--transition-fast);
    animation: spin 1s linear infinite;
}

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

/* ===== Success Message ===== */
.success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
    animation: fadeInUp 0.5s ease-out;
}

.success-message.show {
    display: block;
}

.success-icon {
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease-out;
}

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

.success-message h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent);
}

.success-message p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Form Validation ===== */
.form-group.error input {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.error .radio-option {
    border-color: rgba(239, 68, 68, 0.3);
}

.error-text {
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
    display: none;
}

.form-group.error .error-text {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* ===== Footer ===== */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px 20px 32px;
    border-top: 1px solid var(--border-color);
}

footer p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    main {
        padding: 0 16px;
    }

    .hero {
        padding: 60px 0 30px;
    }

    .form-card {
        padding: 28px 20px;
        border-radius: var(--radius-lg);
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-value {
        font-size: 18px;
    }

    .radio-group {
        gap: 10px;
    }

    .radio-option {
        padding: 10px 14px;
    }
}

@media (max-width: 380px) {
    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-divider {
        width: 32px;
        height: 1px;
    }
}
