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

body {
    font-family: 'Roboto', sans-serif;
    background-color: hsl(235, 18%, 26%);
    color: hsl(0, 0%, 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: hsl(0, 0%, 100%);
    color: #333;
    max-width: 900px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0 auto 20px;
}

.form-wrapper {
    flex: 1;
    padding: 40px;
    text-align: left;
}

.background-image {
    max-width: 50%;
    height: auto;
    object-fit: cover;
}

h1 {
    color: #1a1a1a;
    font-size: 2rem;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
    color: #555;
    font-size: 16px;
}

ul {
    margin-bottom: 30px;
}

li {
    list-style: none;
    padding-left: 35px;
    position: relative;
    margin-bottom: 15px;
}

li:before {
    content: "✔";
    font-size: 16px;
    color: hsl(0, 0%, 100%);
    background-color: #f4511e;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0;
    top: 0;
}

.email-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
    color: hsl(220, 40%, 30%);
}

input[type="email"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid hsl(0, 3%, 57%);
    margin-bottom: 20px;
    font-size: 16px;
    background-color: hsl(0, 0%, 100%);
    color: hsl(0, 0%, 0%);
}

input[type="email"]:focus {
    outline: none;
    border-color: hsl(234, 29%, 20%);
}

input[type="email"].error {
    border-color: hsl(0, 60%, 50%);
    background-color: hsl(0, 100%, 95%);
    color: hsl(0, 0%, 30%);
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: hsl(234, 29%, 20%);
    color: hsl(0, 0%, 100%);
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #d13f16;
}

.success-message {
    display: none;
    padding: 40px;
}

.hidden {
    display: none;
}

.success-message h2 {
    color: #1a1a1a;
    margin-bottom: 20px;
}

#dismiss-btn {
    background-color: #2c2e3e;
    color: hsl(0, 0%, 100%);
    padding: 15px;
    border: none;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
}

#dismiss-btn:hover {
    background-color: #22252f;
}

.attribution {
    text-align: center;
    font-size: 11px;
    color: hsl(0, 0%, 100%);
    margin-top: 20px;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}

@media (max-width: 768px) {
    .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .background-image {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .form-wrapper {
        padding: 20px;
    }
}

/* Estilos para a nova página de agradecimento */
.thank-you-page {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: hsl(0, 0%, 100%);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 450px;
    margin: 20px auto;
}

.thank-you-page.visible {
    display: flex;
}

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

.thank-you-page h2 {
    color: #1a1a1a;
    margin-bottom: 20px;
}

.thank-you-page p {
    margin-bottom: 30px;
    color: #555;
}

#dismiss-thank-you-btn {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: hsl(234, 29%, 20%);
    color: hsl(0, 0%, 100%);
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#dismiss-thank-you-btn:hover {
    background-color: #d13f16;
}