/* Root Variables */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --background: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --error: #ef4444;
    --success: #10b981;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

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

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

/* Page Structure */
.page-wrapper {
    padding: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.content-container {
    max-width: 1000px;
    margin: 60px auto 40px;
}

/* Hero Container */
.hero-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

/* Steps Bar */
.steps-bar {
    background: linear-gradient(90deg, #f97316 0%, #ec4899 50%, #06b6d4 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    flex-wrap: wrap;
    gap: 10px;
}
.step {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
    text-align: center;
}
.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #ffffff;
    flex-shrink: 0;
    font-weight: 800;
    font-size: 0.85rem;
}
.step:nth-child(1) .step-number { color: #f97316; }
.step:nth-child(2) .step-number { color: #ec4899; }
.step:nth-child(3) .step-number { color: #06b6d4; }

/* Hero Body */
.hero-body {
    background-image: url('https://offertabs.s3.amazonaws.com/offer/7k9pz8/site/media/6a44595e43aad9.57229228.jpg');
    background-size: cover;
    background-position: center;
    min-height: 700px;
    padding: 60px 40px;
    position: relative;
    display: flex;
}
.hero-left-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Hero Typography */
.brand-logo {
    display: block;
    max-width: 350px;
    width: 100%;
    height: auto;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 400;
    color: white;
    text-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 5px;
    line-height: 1.1;
}

.hero-cursive {
    font-family: 'Caveat', cursive;
    font-size: 2.2rem;
    color: #ffffff;
    transform: rotate(-3deg);
    display: inline-block;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-description {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.4);
    font-weight: 500;
}
.hero-description p {
    margin-bottom: 10px;
}
.hero-description p:last-child {
    margin-bottom: 0;
}

/* Prizes display */
.prizes-container {
    margin-bottom: 40px;
    padding: 10px 0;
    width: 100%;
}

.prizes-container h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: center;
}

.prize-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
    align-items: flex-start;
    width: 100%;
}

.prize-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    transition: var(--transition);
    flex: 1;
    min-width: 0;
}

.prize-item-wrapper:hover {
    transform: translateY(-5px);
}

.prize-image {
    width: 100%;
    max-width: 130px;
    height: auto;
    object-fit: contain;
}

.prize-info {
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    width: 100%;
}

.prize-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 6px;
}

.prize-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0.95;
}


/* Form Card inside Hero */
.form-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.5);
}
.form-header {
    margin-bottom: 25px;
}
.form-header h2 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 5px;
}
.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.9rem;
}
.field-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    margin-top: -4px;
    line-height: 1.4;
}
input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}
input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Mini File Upload inside card */
.file-upload-group {
    margin-bottom: 20px;
}
.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    margin: 0;
}
.file-label:hover, .file-label.dragover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}
.file-icon {
    color: #003b51;
    display: flex;
}
.file-label span {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.file-label.has-file span {
    color: var(--primary);
}

/* T&C Checkbox */
.checkbox-group {
    margin-bottom: 25px;
}
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    color: #475569;
    margin-bottom: 0;
}
.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary);
}
.checkbox-label span {
    line-height: 1.4;
}
.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}
.checkbox-label a:hover {
    color: var(--primary-hover);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.btn-primary {
    background: #003b51;
    color: white;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.1rem;
}
.btn-primary:hover {
    background: #002736;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 59, 81, 0.3);
}
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.btn-secondary {
    background: #e2e8f0;
    color: #1e293b;
    width: auto;
    padding: 14px 24px;
}
.btn-secondary:hover {
    background: #cbd5e1;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-dark);
    width: auto;
}
.btn-outline:hover {
    border-color: var(--text-dark);
}

/* Post Entry (Thank You) */
.post-entry-card {
    text-align: center;
}
.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    margin-bottom: 20px;
}
.post-entry-card h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}
.share-panel {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}
.share-panel h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.share-input-group {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}
.share-input-group input {
    margin-bottom: 0;
}
.social-share {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.btn-social {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    flex: 1;
    font-size: 0.9rem;
}
.btn-fb { background: #1877f2; }
.btn-tw { background: #000000; }
.btn-social:hover { opacity: 0.9; }

/* Gallery */
.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}
.gallery-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.gallery-header p {
    color: var(--text-muted);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.gallery-item {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}
.gallery-img-wrap {
    position: relative;
    padding-top: 100%;
    cursor: pointer;
    overflow: hidden;
    background: #e2e8f0;
}
.gallery-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    pointer-events: none;
    z-index: 2;
}
.play-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-left: 4px;
}
.gallery-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.gallery-caption {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gallery-author {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
}
.gallery-vote-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}
.btn-vote {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-vote:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}
.btn-vote:disabled.voted {
    background: var(--success);
    border-color: var(--success);
    color: white;
}
.vote-count {
    font-weight: 700;
    color: var(--text-dark);
}
.gallery-footer {
    text-align: center;
}

/* Toast, Lightbox, Overlays remain similar structurally but updated colors */
.toast {
    position: fixed;
    top: 20px; right: 20px;
    z-index: 9999;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    background: var(--error);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--success); }

/* Status Overlay */
#status-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.status-card {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 500px;
    width: 100%;
}
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}
.time-block {
    background: var(--background);
    border-radius: var(--radius-md);
    padding: 15px;
    min-width: 80px;
}
.time-block span {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}
.time-block small {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Spinner */
.spinner {
    width: 24px; height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    position: absolute;
}
#gallery-loading.spinner {
    position: relative;
    border-top-color: var(--primary);
    border-left-color: var(--border);
    border-right-color: var(--border);
    border-bottom-color: var(--border);
    margin: 20px auto;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lightbox-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}
.lightbox-close {
    position: absolute;
    top: 15px; right: 15px;
    width: 40px; height: 40px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}
.lightbox-image-container {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 1;
    min-height: 300px;
}
#lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}
#lightbox-video {
    max-width: 100%;
    max-height: 70vh;
    outline: none;
}
.lightbox-info { padding: 25px; }
.lightbox-caption { font-size: 1.2rem; font-weight: 600; margin-bottom: 5px; }

#wbx-powered-by-slot {
    display: none !important;
}

/* Responsive */
@media (max-width: 900px) {
    .steps-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .step { justify-content: flex-start; text-align: left; }
    
    .hero-body {
        padding: 40px 20px;
        background-position: left;
    }
    .hero-title { font-size: 2.5rem; }
}

@media (max-width: 600px) {
    .page-wrapper { padding: 0; }
    .hero-container { border-radius: 0; }
    .hero-title { font-size: 2rem; }
    .prizes-container { padding: 15px 0; }
    
    .prize-list {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    .prize-item-wrapper { 
        min-width: 120px;
        flex: 1 1 40%;
        gap: 10px; 
    }
    .prize-image { 
        max-width: 95px;
    }
    
    .form-card { padding: 25px 20px; }
    .brand-logo { max-width: 250px; }
}
