/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --color-bg: #0a0f1d;
    --color-primary: #0ea5e9; /* Light Ice Blue */
    --color-primary-hover: #0284c7;
    --color-accent: #38bdf8;
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-error: #ef4444;
    
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* ==========================================================================
   Utilities
   ========================================================================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.accent-text {
    color: var(--color-accent);
}

/* ==========================================================================
   Background & Layout
   ========================================================================== */
.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://offertabs.s3.amazonaws.com/offer/urbm6o/site/media/6ac7b7fe3eefb4.84268025.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

/* Dark gradient overlay for readability */
.site-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 15, 29, 0.95) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(30, 58, 138, 0.6) 100%);
    z-index: -1;
}

.site-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ==========================================================================
   Typography & Header
   ========================================================================== */
.hero-header {
    text-align: center;
    margin-bottom: 1rem;
}

.sponsor-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.sponsor-badge strong {
    color: var(--color-text-main);
    font-weight: 600;
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(to right, #38bdf8, #e0f2fe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

/* ==========================================================================
   Glass Cards
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    width: 100%;
}

.glass-card h2, .glass-card h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */
.form-row {
    display: flex;
    gap: 1rem;
}

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

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text-main);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.4;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    width: 100%;
    padding: 1.125rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2563eb 100%);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    color: var(--color-text-main);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* ==========================================================================
   Messages (Error & Status)
   ========================================================================== */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.status-card {
    text-align: center;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Success & Share Sections
   ========================================================================== */
.success-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.share-box {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.share-box input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    color: var(--color-primary);
    font-weight: 500;
}

.social-share {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    color: white;
    transition: opacity 0.2s;
    font-size: 0.875rem;
}

.social-btn:hover {
    opacity: 0.9;
}

.social-btn.fb {
    background: #1877f2;
}

.social-btn.tw {
    background: #000000;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
#wbx-powered-by-slot {
    margin-top: 2rem;
    width: 100%;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .glass-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .share-box {
        flex-direction: column;
    }
    
    .share-box button {
        width: 100%;
    }

    .social-share {
        flex-direction: column;
    }
}