:root {
    --background: #36384e;
    --card-bg: #ffffff;
    --primary: #242742;
    --accent: #ff6257;
    --accent-hover: #ff8a82;
    --text-dark: #242742;
    --text-gray: #9294a0;
    --error: #ff6257;
    --error-bg: #ffe8e6;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    max-width: 850px;
    width: 100%;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.content {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1;
}

.content > p {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.features {
    list-style: none;
    margin-bottom: 40px;
}

.features li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.5;
}

.check-icon {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.label-row label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.error-message {
    font-size: 12px;
    font-weight: 700;
    color: var(--error);
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.email-input {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid #dcdde0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.email-input::placeholder {
    color: var(--text-gray);
}

.email-input:focus {
    border-color: var(--primary);
}

.form-group.error .email-input {
    border-color: var(--error);
    background-color: var(--error-bg);
    color: var(--error);
}

/* Button Styles */
.submit-btn,
.dismiss-btn {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: white;
    background-color: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Button Hover - Matches Figma Design */
.submit-btn:hover,
.dismiss-btn:hover {
    background: linear-gradient(to right, #ff5a7e 0%, #ff8c5a 100%);
    box-shadow: 0 16px 32px rgba(255, 90, 126, 0.5);
}

.illustration {
    width: 400px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-desktop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.illustration-mobile {
    display: none;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-body {
    /* Container for icon, heading, and text */
}

.success-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 40px;
}

.modal h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 24px;
}

.modal p {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 40px;
}

.modal p strong {
    font-weight: 700;
}

/* ================================
   Mobile - 375px (iPhone SE)
   ================================ */
@media (max-width: 768px) {
    body {
        padding: 0;
        background-color: var(--card-bg);
    }

    .card {
        flex-direction: column;
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .illustration {
        width: 100%;
        height: auto;
        order: -1;
        padding: 0;
    }

    .illustration-desktop {
        display: none;
    }

    .illustration-mobile {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 0 0 16px 16px;
    }

    .content {
        padding: 10px 24px 40px;
        flex: 1;
    }

    .content h1 {
        font-size: 40px;
        margin-bottom: 16px;
    }

    .content > p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .features {
        margin-bottom: 40px;
    }

    .features li {
        font-size: 16px;
        margin-bottom: 10px;
    }

    /* Modal Mobile - Full screen with button at bottom */
    .modal-overlay {
        background: var(--card-bg);
        padding: 0;
    }

    .modal {
        padding: 150px 24px 40px;
        box-shadow: none;
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .modal-body {
        flex: 1;
    }

    .success-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 40px;
    }

    .modal h2 {
        font-size: 40px;
        margin-bottom: 24px;
    }

    .modal p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 0;
    }

    .dismiss-btn {
        margin-top: auto;
    }
}