:root {
    --primary: #f97316; /* Halloween Orange */
    --primary-dark: #ea580c;
    --primary-light: #ffedd5;
    --secondary: #6b21a8; /* Dark Purple */
    --secondary-dark: #4c1d95;
    --text-main: #1f2937;
    --text-light: #4b5563;
    --bg-color: #f3f4f6;
    --white: #ffffff;
    --error: #ef4444;
    --error-bg: #fef2f2;
    --success: #10b981;
}

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

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Header */
.site-header {
    background-color: var(--white);
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}

.logo-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.logo {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logo-divider {
    color: #cbd5e1;
}

/* Hero Section */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(31, 41, 55, 0.4), rgba(107, 33, 168, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    max-width: 700px;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.35rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.3);
}

.hero h1 {
    font-family: 'Creepster', cursive;
    font-size: 4.5rem;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 2px 3px 0px rgba(0,0,0,0.8);
    letter-spacing: 0.02em;
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Main Content */
.container {
    max-width: 800px;
    margin: -3rem auto 3rem auto;
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card, .form-card, .status-card, .success-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05), 0 4px 6px rgba(0,0,0,0.02);
}

/* Info Section */
.info-card {
    border-top: 6px solid var(--secondary);
}

.dates-banner {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    border: 1px dashed var(--primary);
}

.intro-text {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.prize-item {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s ease;
}

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

.prize-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.prize-details h3 {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.prize-details p {
    font-weight: 700;
    color: var(--text-main);
}

.rules-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.rules-box h4 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.rules-box ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.rules-box li {
    margin-bottom: 0.5rem;
}

/* Form Styles */
.form-card {
    border-top: 6px solid var(--primary);
}

.form-card h3 {
    font-size: 1.75rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Creepster', cursive;
    letter-spacing: 0.05em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

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

.label-note {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.85rem;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #f8fafc;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
    background-color: var(--white);
}

.file-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: #f8fafc;
    cursor: pointer;
}

.file-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
    user-select: none;
    margin-top: 1rem;
}

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

.checkmark {
    min-width: 22px;
    height: 22px;
    background-color: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--primary);
}

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

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

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

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

/* Buttons and Alerts */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 6px rgba(234, 88, 12, 0.2);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(234, 88, 12, 0.3);
}

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

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.95rem;
}

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

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-error {
    background-color: var(--error-bg);
    color: var(--error);
    border: 1px solid #fecaca;
}

/* Gallery Admin UI */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.gallery-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: #cbd5e1;
}

.gallery-caption {
    padding: 1rem;
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.gallery-author {
    padding: 0 1rem 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.no-entries {
    text-align: center;
    color: var(--text-light);
    grid-column: 1 / -1;
    padding: 2rem;
}

/* Status & Success Sections */
.status-card, .success-card {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 6px solid var(--secondary);
}

.status-icon, .success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.status-card h3, .success-card h3 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-family: 'Creepster', cursive;
}

.status-card p, .success-card p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.success-reminder {
    margin-top: 2rem;
    background-color: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: var(--text-main);
    text-align: left;
}

#wbx-powered-by-slot {
    margin-top: auto;
    padding: 2rem 0;
    display: none !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .hero {
        min-height: 350px;
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero h2 {
        font-size: 1.25rem;
    }
    
    .info-card, .form-card {
        padding: 1.5rem;
    }
    
    .logo-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo-divider {
        display: none;
    }
}
