/* ----- Variables & Reset ----- */
:root {
    --primary: #FFD300; /* Pelican yellow */
    --primary-hover: #e6be00;
    --dark: #0A0A0C;
    --dark-surface: #121216;
    --text-main: #ffffff;
    --text-muted: #a0a0ab;
    --border-color: rgba(255, 255, 255, 0.1);
    --error: #ff4b4b;
    --success: #4ade80;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 4px;
}

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

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

.hidden {
    display: none !important;
}

/* ----- Background & Layout ----- */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://offertabs.s3.amazonaws.com/offer/cvsc2o/site/media/6a9289abba9046.08316882.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(18, 18, 24, 0.4) 0%, rgba(10, 10, 12, 0.9) 100%);
    z-index: -1;
}

.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

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

.brand-logo-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.brand-logo-link:hover {
    transform: scale(1.05);
}

.brand-logo {
    max-height: 50px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.content-card {
    background: rgba(18, 18, 24, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9);
    margin-bottom: 40px;
    
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.info-col {
    display: flex;
    flex-direction: column;
}

.text-content {
    margin-bottom: 32px;
}

.heading {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
    letter-spacing: -0.5px;
}

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

.subheading {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #e0e0e0;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    max-width: 90%;
}

.prize-image {
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: auto auto 0;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.8));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.prize-image:hover {
    transform: scale(1.05) translateY(-10px);
}

/* ----- Dynamic Form Column ----- */
.form-col {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.form-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
}

/* ----- Countdown ----- */
.countdown-container {
    margin-bottom: 40px;
}

.countdown-label {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

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

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    min-width: 75px;
    padding: 12px 10px;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.05);
}

.time-block span {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 6px;
    color: #fff;
}

.time-block small {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* ----- Form Styles ----- */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.form-group label::after {
    content: " *";
    color: var(--primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: inset 0 0 0 1px var(--primary);
}

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

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FFD300' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

option {
    background-color: var(--dark-surface);
    color: #fff;
}

input[type="file"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
input[type="file"]:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}
input[type="file"]::file-selector-button {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    margin-right: 16px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
input[type="file"]::file-selector-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.helper-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: -2px;
}

.checkbox-row {
    margin-top: 8px;
    margin-bottom: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    text-align: left;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 4px; left: 7px;
    width: 5px; height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #e0e0e0;
}
.checkbox-text::after {
    content: " *";
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    padding: 18px 24px;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-primary:hover:not(:disabled)::after {
    left: 100%;
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(255, 211, 0, 0.4);
    transform: translateY(-2px);
}

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

.disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
    margin-top: 8px;
}

.disclaimer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.disclaimer a:hover {
    text-decoration: underline;
    color: #fff;
}

/* ----- Alerts ----- */
.alert {
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

.alert-error {
    background: rgba(255, 75, 75, 0.1);
    border: 1px solid rgba(255, 75, 75, 0.3);
    color: #ff6b6b;
}

/* ----- Success State ----- */
.text-center {
    text-align: center;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 211, 0, 0.1);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(255, 211, 0, 0.2);
}

.success-heading {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.success-subheading {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* ----- Share Panel ----- */
.share-panel {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 12px;
}

.share-panel p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.share-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.share-controls input {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 0 24px;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

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

.social-btn {
    text-decoration: none;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    color: #fff;
    transition: all 0.2s;
    flex: 1;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.fb-btn { background: #1877F2; }
.tw-btn { background: #111111; border: 1px solid rgba(255,255,255,0.2); }

/* ----- Status Overlay ----- */
#status-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.status-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
}

/* ----- Modal ----- */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.modal-content h2 {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-heading);
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #fff;
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    color: #e0e0e0;
    line-height: 1.6;
}

/* ----- Responsive ----- */
@media (max-width: 992px) {
    .content-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 32px 24px;
    }
    
    .info-col {
        align-items: center;
        text-align: center;
    }

    .subheading {
        margin: 0 auto;
    }
    
    .heading {
        font-size: 2.5rem;
    }
    
    .form-col {
        padding: 24px;
    }
    
    .prize-image {
        max-width: 80%;
    }
    
    .share-controls {
        flex-direction: column;
    }
    
    .btn-secondary {
        padding: 16px;
    }
    
    .social-share {
        flex-direction: column;
    }
}