:root {
    /* Color Palette */
    --primary: #001489; /* Reflex Blue */
    --primary-hover: #0029E6;
    --secondary: #001489;
    --secondary-hover: #000F66;
    --bg-base: #f0f4f8;
    --bg-surface: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 20, 137, 0.15);
    
    /* Text Colors */
    --text-main: #1e293b;
    --text-muted: #64748b;
    
    /* Status Colors */
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --success: #10b981;
    
    /* Layout */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(0, 20, 137, 0.05), transparent 40%),
        radial-gradient(circle at 90% 40%, rgba(0, 41, 230, 0.05), transparent 40%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23001489' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.hidden {
    display: none !important;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(0, 20, 137, 0.3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 20, 137, 0.6); }

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 180px; /* Extra bottom padding for overlap */
    background-image: url('https://offertabs.s3.amazonaws.com/offer/sj9ndn/site/media/6a84b807be9e23.73134885.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 20, 137, 0.6) 0%, rgba(255, 255, 255, 0.4) 100%);
    z-index: 1;
}

.hero-bottom-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 250px;
    background: linear-gradient(to top, var(--bg-base) 0%, transparent 100%);
    z-index: 2;
}

/* Ambient Floating Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: float 15s infinite ease-in-out alternate;
}
.orb-1 { width: 400px; height: 400px; background: rgba(255, 255, 255, 0.5); top: -10%; left: -5%; }
.orb-2 { width: 350px; height: 350px; background: rgba(0, 20, 137, 0.3); bottom: 10%; right: -10%; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: rgba(0, 20, 137, 0.2); top: 40%; left: 40%; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -50px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0, 20, 137, 0.1);
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-bottom: 24px;
    line-height: 1.05;
}

.hero p {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Hero Actions / Nav */
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn {
    min-width: 220px;
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -120px; /* Pull content up into hero */
    z-index: 10;
    position: relative;
}

.view-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Cards & Sections */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 50px;
    width: 100%;
    max-width: 750px;
    margin-bottom: 80px;
    box-shadow: 0 20px 40px -10px rgba(0, 20, 137, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.subheading {
    display: block;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary);
}

.section-desc {
    color: var(--text-muted);
}

/* Form Styles */
.form-group {
    margin-bottom: 28px;
}

.form-row {
    display: flex;
    gap: 24px;
}

.half {
    flex: 1;
}

@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
    .glass-card { padding: 30px 20px; }
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.required-asterisk {
    color: var(--danger);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 20, 137, 0.1);
    background: #fff;
}

input::placeholder, textarea::placeholder {
    color: #94a3b8;
}

/* Consent Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: normal;
    text-align: left;
}

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

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

/* File Upload styling */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    min-height: 180px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
    background: #f1f5f9;
}

.file-upload-wrapper.has-file {
    border-style: solid;
    border-color: var(--primary);
    padding: 10px;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.file-upload-placeholder svg {
    margin-bottom: 12px;
    color: var(--primary);
    transition: var(--transition);
}

.file-upload-wrapper:hover .file-upload-placeholder svg {
    transform: translateY(-5px);
}

.file-upload-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 20, 137, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 20, 137, 0.3);
    background: var(--primary-hover);
}

.btn-secondary {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: #f1f5f9;
}

.btn-block {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.form-action {
    margin-top: 40px;
}

.error-message {
    background: var(--danger-bg);
    color: var(--danger);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(239, 68, 68, 0.3);
    margin-bottom: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Success Section & Share Panel */
.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 20, 137, 0.05);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 2px solid rgba(0, 20, 137, 0.2);
}

.gallery-success-banner {
    background: rgba(0, 20, 137, 0.05);
    border: 1px solid rgba(0, 20, 137, 0.2);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
    max-width: 750px;
}

.gallery-success-banner h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.share-panel {
    margin-top: 40px;
}

.share-panel-inner {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 30px;
}

.share-panel-inner h3 {
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.share-link-wrapper {
    display: flex;
    gap: 12px;
    margin: 24px 0;
}

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

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-social:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-social.fb { background: #1877F2; }
.btn-social.tw { background: #14171A; }

/* Gallery Section */
.gallery-container {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.gallery-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 0 20px rgba(0, 20, 137, 0.15);
    border-color: var(--primary);
}

.gallery-img-wrap {
    aspect-ratio: 4/5; /* Taller crop for costumes */
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-img-wrap::after {
    opacity: 1;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item:hover .gallery-img-wrap img {
    transform: scale(1.08);
}

.gallery-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery-caption {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    line-height: 1.5;
}

.gallery-author {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.btn-vote {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(0, 20, 137, 0.05);
    color: var(--primary);
    border: 1px solid rgba(0, 20, 137, 0.2);
    border-radius: 99px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-vote:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 20, 137, 0.3);
}

.btn-vote.voted {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
}

.vote-count {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.vote-count::before {
    content: '\2665';
    color: var(--primary);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.lightbox-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

@media (min-width: 900px) {
    .lightbox-body {
        flex-direction: row;
        overflow-y: hidden;
    }
    .lightbox-img-wrapper {
        width: 60%;
        background: #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #lightbox-img {
        max-height: 85vh;
        width: 100%;
        object-fit: contain;
    }
    .lightbox-info {
        width: 40%;
        padding: 40px;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        background: #f8fafc;
    }
}

@media (max-width: 899px) {
    .lightbox-img-wrapper {
        background: #f1f5f9;
    }
    #lightbox-img {
        width: 100%;
        max-height: 50vh;
        object-fit: contain;
    }
    .lightbox-info {
        padding: 30px 20px;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #cbd5e1;
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.lightbox-close:hover {
    color: var(--danger);
    border-color: var(--danger);
    transform: rotate(90deg);
}

.lightbox-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.lightbox-author {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 24px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lightbox-caption {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 40px;
    white-space: pre-wrap;
}

.lightbox-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.btn-vote-large {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-vote-large:hover:not(:disabled) {
    background: var(--primary-hover);
    box-shadow: 0 10px 20px rgba(0, 20, 137, 0.3);
}

.btn-vote-large.voted {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.lightbox-vote-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.vote-count-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
}

.vote-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

#wbx-powered-by-slot {
    width: 100%;
    padding: 20px 0;
}