/* CSS Variables for Theme */
:root {
    --primary: #FF6B6B; /* Vibrant Salmon */
    --primary-hover: #fa5252;
    --dark-bg: #121212;
    --card-bg: rgba(22, 22, 24, 0.85);
    --text-main: #F8F9FA;
    --text-muted: #ADB5BD;
    --border-color: rgba(255, 255, 255, 0.15);
    --input-bg: rgba(0, 0, 0, 0.4);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --radius: 16px;
    --transition: all 0.3s ease;
}

/* Base Reset & Utilities */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.hidden {
    display: none !important;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 2rem 1.5rem;
    background-color: var(--dark-bg);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Background Image & Overlay */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.9) 0%, rgba(30, 15, 15, 0.7) 100%);
    z-index: -1;
}

/* Layout Wrapper */
.page-wrapper {
    width: 100%;
    max-width: 580px;
    margin: auto 0; /* Vertically center without clipping */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
}

/* Typography & Header */
.card-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.main-title .highlight {
    background: linear-gradient(90deg, #FF6B6B, #FF8E53);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

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

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: inherit;
    font-size: 1rem;
    color: #FFF;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

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

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

/* Custom Checkbox */
.checkbox-group {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    user-select: none;
    font-weight: 400;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    min-width: 20px;
    height: 20px;
    margin-top: 2px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: var(--transition);
}

.checkbox-label input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    display: none;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Primary Button */
.btn-primary {
    width: 100%;
    padding: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    color: #FFF;
    background: linear-gradient(135deg, var(--primary) 0%, #E83E8C 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 107, 107, 0.4);
}

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

/* Loader for button */
.btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}

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

/* Status & Error Messages */
.status-message, .error-banner {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.status-message h2 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.error-banner {
    border-color: #FA5252;
    background: rgba(250, 82, 82, 0.1);
    color: #FFE3E3;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Success Screen */
#success-container {
    text-align: center;
}

.success-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

#success-container h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

#success-container p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Share & Earn Panel */
.share-box {
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px dashed var(--border-color);
    margin-top: 2rem;
}

.share-box h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #FFF;
}

.share-box p {
    font-size: 0.95rem;
    margin-bottom: 1.25rem !important;
}

.share-input-group {
    display: flex;
    gap: 0.5rem;
}

.share-input-group input {
    flex-grow: 1;
    margin: 0;
}

.share-input-group button {
    background: #FFF;
    color: var(--dark-bg);
    border: none;
    border-radius: 8px;
    padding: 0 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.share-input-group button:hover {
    background: var(--text-muted);
}

/* Countdown */
#countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.time-block {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.05);
    padding: 0.75rem;
    border-radius: 8px;
    min-width: 70px;
}

.time-block span {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary);
}

.time-block small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Powered By Slot */
#wbx-powered-by-slot {
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 600px) {
    .glass-card {
        padding: 2.5rem 1.5rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
}