:root {
    --primary: #f80eb3;
    --primary-hover: #d20996;
    --secondary: #00e5ff;
    --dark-bg: #090514;
    --card-bg: rgba(20, 15, 35, 0.7);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --error: #ff3366;
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--dark-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

/* Background overlay with image */
.page-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://offertabs.s3.amazonaws.com/offer/42upjq/site/media/69f2b471a6b525.97123209.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(9, 5, 20, 0.9) 0%, rgba(30, 15, 50, 0.75) 50%, rgba(9, 5, 20, 0.9) 100%);
}

.content-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Header */
.header {
    margin-bottom: 60px;
    display: flex;
    justify-content: flex-start;
}

.brand-logo {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5));
}

/* Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

/* Text Column */
.text-column {
    padding-right: 20px;
}

.tagline {
    display: inline-block;
    color: var(--secondary);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.text-column h1 {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.highlight {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

/* Countdown */
.countdown-wrapper {
    margin-top: 40px;
}

.countdown-label {
    font-family: var(--font-head);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.countdown {
    display: flex;
    gap: 15px;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 80px;
    height: 80px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.time-box span {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 4px;
}

.time-box small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Glass Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card h2 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text-main);
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(248, 14, 179, 0.15);
}

/* Checkbox specific */
.checkbox-group label.checkbox-label {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    font-weight: 400;
    color: var(--text-main);
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.error-message {
    background: rgba(255, 51, 102, 0.1);
    color: var(--error);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 51, 102, 0.3);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-head);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(248, 14, 179, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(248, 14, 179, 0.5);
}

.btn-primary:active {
    transform: translateY(1px);
}

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

/* Post Entry / Success */
.success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00b09b, #96c93d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

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

#post-entry-container p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Share Panel */
.share-panel {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-header h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--secondary);
}

.share-header p {
    font-size: 0.9rem !important;
    margin-bottom: 16px !important;
}

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

.share-input-group input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 0.95rem;
}

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

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

.social-share {
    display: flex;
    gap: 12px;
}

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

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

.social-btn.fb { background: #1877f2; }
.social-btn.tw { background: #000000; border: 1px solid #333; }

/* Footer Links */
.footer-links {
    margin-top: auto;
    padding-top: 40px;
    text-align: center;
}

.rules-link {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: underline;
    transition: color 0.2s;
}

.rules-link:hover {
    color: var(--text-main);
}

/* Powered By */
#wbx-powered-by-slot {
    margin-top: 20px;
}

/* Status Screen */
#status-container {
    text-align: center;
    max-width: 600px;
    margin: 60px auto;
}

/* Responsive */
@media (max-width: 992px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .text-column {
        padding-right: 0;
        text-align: center;
    }

    .description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .countdown {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .text-column h1 {
        font-size: 2.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .glass-card {
        padding: 24px;
    }

    .time-box {
        width: 60px;
        height: 60px;
    }

    .time-box span {
        font-size: 1.2rem;
    }

    .social-share {
        flex-direction: column;
    }
}
