/* RESET & VARIABLES */
:root {
    --primary-bg: #f8f9fa;
    --accent-color: #292a86;
    --accent-hover: #1e1f63;
    --text-main: #111111;
    --text-muted: #495057;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(0, 0, 0, 0.1);
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

.hidden {
    display: none !important;
}

/* BACKGROUND */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.8) 100%), url('https://offertabs.s3.amazonaws.com/offer/8gikbn/site/media/6a034a2201cf20.82466201.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* LAYOUT */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    flex: 1;
}

/* INFO SECTION */
.info-section {
    max-width: 550px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(41, 42, 134, 0.1);
    border: 1px solid rgba(41, 42, 134, 0.2);
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.hero-image-wrapper {
    margin-bottom: 1.5rem;
}

.headline-img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

#brand-name {
    color: #111;
    font-weight: 600;
}

/* COUNTDOWN */
.countdown-container {
    background: rgba(255, 255, 255, 0.6);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
}

.countdown-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    gap: 1.5rem;
}

.time-block {
    display: flex;
    flex-direction: column;
}

.time-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: #111;
}

.time-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* CARD & FORMS */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 0 40px rgba(41, 42, 134, 0.05);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

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

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    color: #111;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(41, 42, 134, 0.15);
}

input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.btn-primary {
    width: 100%;
    padding: 1.125rem;
    font-size: 1.125rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: var(--accent-color);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(41, 42, 134, 0.2);
}

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

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

.form-disclaimer a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ALERTS & STATES */
.error-alert {
    background: rgba(230, 57, 70, 0.1);
    border-left: 4px solid #E63946;
    color: #d90429;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.text-center {
    text-align: center;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(34, 197, 94, 0.3);
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.success-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* SHARE PANEL */
.share-panel {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.share-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #111;
}

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

.share-input-group {
    display: flex;
    gap: 0.5rem;
}

.share-input-group input {
    margin-bottom: 0;
    color: #111;
    font-size: 0.875rem;
    background: #fff;
}

.btn-secondary {
    padding: 0 1.5rem;
    background: #e2e8f0;
    color: #111;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.toast {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #22c55e;
}

/* FOOTER */
.site-footer {
    margin-top: auto;
    padding-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s;
}

.btn-text:hover {
    color: #111;
}

#wbx-powered-by-slot {
    width: 100%;
}

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    z-index: 101;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #111;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-close:hover {
    color: #111;
    background: rgba(0, 0, 0, 0.05);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    font-size: 0.95rem;
    color: #444;
    white-space: pre-wrap;
    line-height: 1.7;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .layout-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .layout-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .info-section {
        max-width: 100%;
        text-align: center;
    }
    
    .countdown-timer {
        justify-content: center;
    }
    
    .countdown-container {
        border-left: none;
        border-top: 4px solid var(--accent-color);
        border-radius: 0 0 12px 12px;
        display: inline-block;
    }
    
    .glass-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .time-value {
        font-size: 1.75rem;
    }
    
    .share-input-group {
        flex-direction: column;
    }
    
    .btn-secondary {
        padding: 1rem;
    }
}
