@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700;800;900&display=swap');

:root {
    --bg-page: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-muted: #64748b;
    --color-navy: #0b2c68;
    --color-navy-hover: #071f4b;
    --color-gold: #ffd700;
    --color-red: #800808;
    --color-red-hover: #9c0b0b;
    --input-bg: #e9ecef;
    --font-family: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.teaser-container {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-card);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 25px;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.header {
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
}

.subtitle-top, .subtitle-middle {
    font-size: 22px;
    font-weight: 300;
    line-height: 1.3;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.main-title {
    font-size: 26px;
    font-weight: 700;
    margin-top: 6px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.dome-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.dome-img {
    width: 100%;
    max-width: 440px;
    height: auto;
    display: block;
}

.button-group-flow {
    width: 60%;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px auto 20px auto;
    box-sizing: border-box;
}

.tray-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.tray-img {
    width: 100%;
    max-width: 440px;
    height: auto;
    display: block;
}

.option-btn {
    width: 100%;
    padding: 11px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #ffffff;
    background-color: var(--color-navy);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 6px rgba(11, 44, 104, 0.1);
    white-space: nowrap;
}

.option-btn:hover {
    background-color: var(--color-navy-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(11, 44, 104, 0.15);
}

.option-btn:active {
    transform: translateY(0);
}

/* Selected state styling */
.option-btn.selected {
    background-color: var(--color-navy);
    border-color: var(--color-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.45);
    transform: scale(1.02);
}

.option-btn.selected::after {
    content: ' ✓';
    color: var(--color-gold);
    margin-left: 8px;
    font-weight: 800;
}

/* Dim other buttons when one is selected */
.button-group-flow.has-selection .option-btn:not(.selected) {
    opacity: 0.55;
    transform: scale(0.98);
    box-shadow: none;
}

.email-section {
    width: 100%;
    max-width: 410px;
    text-align: center;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease, transform 0.5s ease;
    transform: translateY(20px);
    margin-top: 10px;
}

.email-section.show {
    opacity: 1;
    max-height: 220px;
    transform: translateY(0);
    margin-top: 20px;
}

.promo-text {
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 500;
}

.promo-text strong {
    font-weight: 700;
}

#teaserForm {
    width: 100%;
}

.form-row {
    display: flex;
    width: 100%;
    background-color: var(--input-bg);
    border-radius: 30px;
    overflow: hidden;
    padding: 4px;
    box-sizing: border-box;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-row input[type="email"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    color: var(--text-primary);
    font-weight: 500;
}

.form-row input[type="email"]::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

.form-row button {
    background-color: var(--color-red);
    color: #ffffff;
    border: none;
    border-radius: 26px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    letter-spacing: 0.5px;
}

.form-row button:hover {
    background-color: var(--color-red-hover);
}

.form-row button:active {
    transform: scale(0.97);
}

/* Desktop Styles */
@media (min-width: 481px) {
    body {
        padding: 40px 0;
    }
    .teaser-container {
        min-height: auto;
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, 0.06);
    }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .teaser-container {
        padding: 30px 20px;
    }
    .subtitle-top, .subtitle-middle {
        font-size: 20px;
    }
    .main-title {
        font-size: 24px;
    }
    .option-btn {
        padding: 13px 18px;
        font-size: 14px;
    }
}
