/* CSS Reset & Variables */
:root {
    --primary: #d946ef;
    --primary-hover: #c026d3;
    --secondary: #6366f1;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --bg-dark: #0f172a;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.15);
    --error: #ef4444;
    --success: #10b981;
}

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

html, body {
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    /* Set the background directly on the body to allow natural iframe sizing */
    background-image: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.65) 50%, rgba(76, 29, 149, 0.85) 100%),
        url('https://offertabs.s3.amazonaws.com/offer/3pn4mt/site/media/6a4d455ae65329.48974740.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Layout */
.page-wrapper {
    display: flex;
    flex-direction: column;
    padding: 60px 20px;
}

.main-content {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    /* Guaranteed minimum height prevents iframe collapse when empty */
    min-height: 600px; 
}

/* Powered By Slot placement */
#wbx-powered-by-slot {
    margin-top: 60px;
    text-align: center;
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
}

/* Typography & Info Section */
.info-section {
    padding-right: 20px;
}

.eyebrow {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.text-gradient {
    background: linear-gradient(to right, #f472b6, #d946ef, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-description strong {
    color: #fff;
    font-weight: 500;
}

/* Prize List */
.prize-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prize-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prize-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.2), rgba(99, 102, 241, 0.2));
    color: #f472b6;
    flex-shrink: 0;
}

.prize-text {
    font-size: 1.05rem;
    font-weight: 500;
}

/* How to Enter Steps */
.how-to-enter {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
}

.step-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: #fff;
}

.step-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    color: var(--text-muted);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.text-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Interactive Section & Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.glass-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.form-subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.form-group-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #e2e8f0;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.2);
}

/* Checkbox Styles */
.checkbox-wrapper {
    margin-bottom: 16px;
}

.form-group .checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    cursor: pointer;
    margin-bottom: 0 !important;
    line-height: 1.4;
}

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

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 18px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px -5px rgba(217, 70, 239, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(217, 70, 239, 0.5);
}

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

.btn-secondary {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

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

/* Error/Alert */
.error-alert {
    background: rgba(239, 68, 68, 0.15);
    border-left: 4px solid var(--error);
    color: #fca5a5;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

/* Spinner Animation */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Status Screen */
.status-content {
    text-align: center;
    padding: 20px 0;
}

.status-icon {
    color: var(--primary);
    margin-bottom: 16px;
    opacity: 0.8;
}

/* Success Screen & Share */
.success-header {
    text-align: center;
    margin-bottom: 40px;
}

.success-icon {
    margin-bottom: 16px;
}

.success-header p {
    color: var(--text-muted);
}

.share-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.share-panel h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #f472b6;
}

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

.share-input-group {
    display: flex;
    gap: 8px;
}

.share-input-group input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
}

.copy-feedback {
    font-size: 0.85rem;
    color: var(--success);
    margin-top: 12px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    .main-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        padding-right: 0;
        text-align: left;
    }
    
    .glass-card {
        padding: 30px 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .form-group-row {
        flex-direction: column;
        gap: 24px;
    }
    
    .share-input-group {
        flex-direction: column;
    }
    
    .share-input-group button {
        width: 100%;
    }
}
