/* CSS Variables & Reset */
:root {
    --color-primary: #3e7eb9; /* Light Blue */
    --color-primary-hover: #2f6291;
    --color-black: #0a0a0a;
    --color-dark-grey: #1a1a1a;
    --color-mid-grey: #2a2a2a;
    --color-light-grey: #a0a0a0;
    --color-white: #ffffff;
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-lg: 16px;
    --radius-md: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-white);
    background-color: var(--color-black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Utilities */
.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;
    filter: blur(4px) scale(1.05); /* Slight blur for focus on form */
}

.bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(26,26,26,0.7) 100%);
}

/* Main Layout */
.main-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

/* Header */
.campaign-header {
    text-align: center;
    margin-bottom: 40px;
}

.sponsor-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-light-grey);
    margin-bottom: 15px;
    font-weight: 600;
}

h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.text-highlight {
    color: var(--color-primary);
}

.subtitle {
    font-size: 1.125rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Status Banner */
.status-banner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.status-banner h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-white);
}

/* Cards (Form & Success) */
.card {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    margin-bottom: 40px;
}

.card-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 30px;
    border-bottom: 1px solid var(--color-primary);
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin: 0;
    text-align: center;
}

/* Form Styles */
form {
    padding: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-row .form-group {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-light-grey);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    padding: 14px 16px;
    font-size: 1rem;
    font-family: var(--font-body);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

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

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

.error-alert {
    background: rgba(62, 126, 185, 0.1);
    border-left: 4px solid var(--color-primary);
    color: #a8d0f2;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Buttons */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 16px 24px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 1px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(62, 126, 185, 0.4);
}

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

.btn-secondary {
    background: var(--color-mid-grey);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

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

.link-btn {
    background: none;
    border: none;
    color: var(--color-white);
    text-decoration: underline;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
}

.link-btn:hover {
    color: var(--color-primary);
}

.form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-light-grey);
}

/* Success Section */
#success-section {
    padding: 50px 30px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(62, 126, 185, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

#success-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--color-white);
}

#success-section p {
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Share Panel */
.share-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255,255,255,0.3);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-top: 30px;
}

.share-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.share-box p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.share-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.share-input-group input {
    flex: 1;
    background: rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.1);
}

.social-shares {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    flex: 1;
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.social-btn.fb { background: #1877F2; }
.social-btn.tw { background: #000000; border: 1px solid #333; }
.social-btn:hover { transform: translateY(-2px); opacity: 0.9; }

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

.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;
    background: var(--color-dark-grey);
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

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

.modal-header h2 {
    font-family: var(--font-heading);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--color-light-grey);
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--color-white);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    font-size: 0.95rem;
    color: #cccccc;
    white-space: pre-wrap; /* Respects newlines from textarea */
}

/* Powered by Slot */
#wbx-powered-by-slot {
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

/* Responsive */
@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    .form-row { flex-direction: column; gap: 0; }
    .social-shares { flex-direction: column; gap: 10px; }
    .share-input-group { flex-direction: column; }
    .btn-secondary { width: 100%; }
}