/* Base & Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #bd3039; /* Red Sox Red */
    --color-primary-hover: #9c252d;
    --color-secondary: #0c2340; /* Red Sox Navy */
    --color-secondary-hover: #08172a;
    --color-bg: #f3f4f6;
    --color-surface: #ffffff;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-border: #e5e7eb;
    
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-secondary);
    line-height: 1.2;
}

.hidden {
    display: none !important;
}

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

/* Layout */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero */
.hero {
    position: relative;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-secondary);
    background-image: url('https://offertabs.s3.amazonaws.com/offer/37qx2y/site/media/6a679bb3046c61.60093766.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4); /* Replaced blue overlay with neutral dark overlay for text legibility */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 99px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.hero-content h1 {
    color: #ffffff;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    max-width: 650px;
    margin: 0 auto;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Main Content */
.main-content {
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    display: flex;
    flex-direction: column;
}

/* Steps */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 20px;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--color-primary);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
}

.step-details {
    flex: 1;
}

.step-details h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.step-details p {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
}

/* Eligible Series List */
.eligible-series-list {
    background-color: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.eligible-series-list strong {
    display: block;
    margin-bottom: 12px;
    color: var(--color-secondary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
}

.eligible-series-list ul {
    list-style-type: disc;
    list-style-position: inside;
    color: var(--color-text);
    margin-left: 8px;
}

.eligible-series-list li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

/* Forms */
.giveaway-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-secondary);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    transition: all 0.2s;
    background-color: #f9fafb;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(189, 48, 57, 0.15);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(189, 48, 57, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--color-secondary-hover);
    transform: translateY(-2px);
}

/* Alert Boxes */
.alert-box {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 600;
    text-align: center;
}

.error-alert {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
    margin-bottom: 0;
}

.info-alert {
    background-color: #e0f2fe;
    color: #075985;
    border: 1px solid #7dd3fc;
}

/* Post Entry / Thank You */
.post-entry {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 50px 30px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

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

.post-entry h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.post-entry p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.share-panel {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.share-panel h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.share-box {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.share-box input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #f9fafb;
    font-family: monospace;
    font-size: 1rem;
    color: var(--color-text-light);
}

#wbx-powered-by-slot {
    margin-top: 40px;
    width: 100%;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .step-card {
        flex-direction: column;
        padding: 24px 20px;
    }
    
    .hero {
        padding: 60px 20px;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .share-box {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}