/* Base & Reset */
:root {
    --primary: #a855f7;
    --primary-hover: #9333ea;
    --secondary: #3b82f6;
    --dark: #0f172a;
    --dark-surface: rgba(15, 23, 42, 0.7);
    --text-light: #f8fafc;
    --text-muted: #cbd5e1;
    --error: #ef4444;
    --success: #10b981;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    background-color: var(--dark);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

/* Background Setup */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%);
}

/* Layout */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Typography & Badges */
.sponsor-tag {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, #e879f9, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--dark-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.card-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.card-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.card-header .subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 90%;
    margin: 0 auto;
}

/* Forms */
.input-group {
    margin-bottom: 1.5rem;
}

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

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

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.4;
    margin-bottom: 0 !important;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.15rem;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}


.form-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 1rem;
}

/* Buttons */
.btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.125rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -10px rgba(168, 85, 247, 0.5);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px rgba(168, 85, 247, 0.7);
}

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

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.btn-text:hover {
    color: white;
}

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

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

#success-container h2 {
    font-size: 2rem;
    color: white;
}

#share-container {
    padding: 2rem;
}

.share-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.copy-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

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

.btn-social {
    flex: 1;
    padding: 0.875rem;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

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

.btn-social.fb { background: #1877F2; }
.btn-social.tw { background: #000000; }

/* Status & Errors */
.error-msg {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--error);
    color: #fca5a5;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

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

/* Footer */
.site-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 2rem;
}

#wbx-powered-by-slot {
    margin-top: 1.5rem;
    width: 100%;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-bottom: 0;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.btn-close:hover {
    color: white;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 600px) {
    .glass-card {
        padding: 2rem 1.5rem;
    }
    .card-header h1 {
        font-size: 2rem;
    }
    .social-share {
        flex-direction: column;
    }
}
