/* Mobile: 375px - Desktop: 1440px */
/* Family: [Roboto](https://fonts.google.com/specimen/Roboto) - Weights: 400, 700 */
/* Font size (paragraph): 16px */

@font-face {
    font-family: 'Roboto Bold';
    src: url("../fonts/Roboto-Bold.ttf");
}

@font-face {
    font-family: 'Roboto';
    src: url("../fonts/Roboto-Regular.ttf");
}

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

:root {
    /* Primary Colors  */
    --red: hsl(4, 100%, 67%);

    /* Neutral Colors */
    --blue-800: hsl(234, 29%, 20%);
    --blue-700: hsl(235, 18%, 26%);
    --grey: hsl(0, 0%,58%);
    --white: hsl(0, 0%, 100%);
}

body {
    min-height: 100vh;
    background-color: var(--white);
    font-family: 'Roboto';
}

.form-card {
    max-width: 390px;
    width: 100%;
}

.form {
    display: flex;
    flex-direction: column;
}

.form-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.form-text {
    display: flex;
    flex-direction: column;
    justify-content: left;
    padding: 2.5rem 1.5rem;
    gap: 1rem;
}

.card-title {
    font-family: 'Roboto Bold';
    font-size: 2.5rem;
    color: var(--blue-800);
    margin-bottom: 0.5rem ;
}

.card-desc {
    font-size: 1rem;
    margin-bottom: 1rem;   
}

.benefits {
    font-size: 1rem;
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.benefits li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.benefits li img {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}

/* Contenedor para label y mensaje de error en la misma línea */
.email-label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

label[for="email"] {
    font-family: 'Roboto Bold'; 
    font-size: 0.75rem;
    color: var(--blue-800);
}

#email {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--grey);
    border-radius: 8px;
    font-size: 1rem;
}

#email:focus {
    outline: none;
    border-color: var(--blue-800);
}

#email.error {
    border-color: var(--red);
    background-color: hsla(4, 100%, 67%, 0.1);
    color: var(--red);
}

.error-message {
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0;
}

.error-message.hidden {
    display: none;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--blue-800);
    color: var(--white);
    font-family: 'Roboto Bold';
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    background: linear-gradient(90deg, hsl(4, 100%, 67%), hsl(4, 100%, 70%));
    box-shadow: 0 4px 15px rgba(255, 98, 87, 0.4);
}

.success {
    width: 100%;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 auto;
}

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

.success h2 {
    font-family: 'Roboto Bold';
    font-size: 2.5rem;
    color: var(--blue-800);
    line-height: 1.1;
}

.success p {
    font-size: 1rem;
    color: var(--blue-800);
    line-height: 1.5;
}

.success #user-email {
    font-weight: 700;
}

#dismiss-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--blue-800);
    color: var(--white);
    font-family: 'Roboto Bold';
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s, box-shadow 0.3s;
}

#dismiss-btn:hover {
    background: linear-gradient(90deg, hsl(4, 100%, 67%), hsl(4, 100%, 70%));
    box-shadow: 0 4px 15px rgba(255, 98, 87, 0.4);
}

.form.hidden {
    display: none;
}

.hidden {
    display: none;
}

@media (min-width: 768px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        background-color: var(--grey);
    }

    .form-card {
        max-width: 900px;
        width: 100%;
        border-radius: 40px;
        overflow: hidden;
        background-color: var(--white);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .form-text {
        order: 1;
        padding: 3rem;
        padding-right: 2rem;
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    .card-title {
        font-size: 3.2rem;
    }

    .form-img {
        order: 2;
    }

    .form-img {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 2rem 1rem;
    }

    .success{
        width: 50%;
    }

}
