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

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "Google Sans", sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
}

header {
    background-color: #0056b3;
    color: white;
    border-bottom: 4px solid #003580;
    text-align: center;
    width: 100%;
    padding: 20px 15px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.container {
    background: white;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 450px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 0;
}

.g-recaptcha {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.g-recaptcha iframe {
    width: 100% !important;
    height: auto !important;
}

.form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.email_box {
    width: 100%;
    max-width: 90%;
    border: 2px solid #0056b3;
    border-radius: 6px;
    padding: 0;
    overflow: hidden;
}

.legend {
    color: #0056b3;
    font-weight: 600;
    font-size: 15px;
    margin-left: 15px;
}

.input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 15px;
    transition: background-color 0.3s ease;
}

.descricao {
    text-align: center;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

#link_codigo {
    color: #0056b3;
    text-decoration: none;
    font-size: 13px;
    text-align: center;
    transition: color 0.3s ease;
    margin: 0;
}

#link_codigo:hover {
    color: #003580;
    text-decoration: underline;
}

.botoes {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.botoes button {
    background-color: #0056b3;
    color: white;
    min-width: 120px;
    padding: 12px 24px;
    border: 2px solid #0056b3;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.botoes button:hover {
    background-color: #003580;
    border-color: #003580;
    box-shadow: 0 4px 12px rgba(0, 53, 128, 0.3);
}

.botoes button:active {
    transform: scale(0.98);
}

a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #003580;
    text-decoration: underline;
}

/* Mensagens */
.mensagem {
    padding: 12px 15px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    margin: 0;
}

.mensagem.sucesso {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensagem.erro {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 24px;
    }

    .container {
        max-width: 450px;
        padding: 30px 20px;
    }

    .subtitulo {
        font-size: 20px;
    }

    .email_box {
        width: 100%;
        max-width: 70%;
    }
}

@media (max-width: 480px) {

    header {
        margin-bottom: 20px;
        padding: 15px 10px;
    }

    header h1 {
        font-size: 20px;
    }

    .container {
        width: 100%;
        padding: 25px 15px;
        gap: 18px;
    }

    .subtitulo {
        font-size: 18px;
    }

    .email_box {
        max-width: 100%;
    }

    #link_codigo {
        display: block;
        width: 100%;
        margin-top: 10px;
    }

    .g-recaptcha {
        transform: scale(0.82);
        transform-origin: center;
    }

    .botoes {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .botoes button {
        width: 100%;
        min-width: unset;
    }

    .input {
        font-size: 16px;
    }
}