* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}
.container {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
h1 {
    text-align: center;
    color: #cc0000;
    margin-bottom: 40px;
    font-size: 2.2em;
    text-transform: uppercase;
    font-weight: 700;
}
p {
    margin-bottom: 20px;
    text-align: justify;
    font-size: 1.1em;
}
.highlight {
    font-weight: 600;
    color: #cc0000;
}
.signature {
    text-align: center;
    margin-top: 40px;
    font-size: 1.2em;
    font-weight: 700;
    color: #111;
}

.form-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px dashed #ccc;
    text-align: center;
}
.form-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.assinaturas-container {
    max-width: 100%;
    margin: 0 auto 30px auto;
}
.barra-fundo {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 25px;
    height: 20px;
    margin: 10px 0;
    overflow: hidden;
}
.barra-progresso {
    height: 100%;
    background-color: #cc0000;
    transition: width 1s ease-in-out;
}
.texto-assinaturas {
    font-size: 1.3em;
    font-weight: 700;
    color: #333;
}
.meta-texto {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#form-assinatura {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}
.campo-grupo {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}
#form-assinatura input[type="text"],
#form-assinatura input[type="email"],
#form-assinatura input[type="tel"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
}
#form-assinatura input:focus {
    outline: none;
    border-color: #cc0000;
}
#form-assinatura input.input-invalido {
    border-color: #cc0000;
    background-color: #fffafa;
}
.erro-msg {
    color: #cc0000;
    font-size: 0.82em;
    font-weight: 600;
    display: none;
    text-align: left;
    padding-left: 4px;
}
.erro-msg.visivel {
    display: block;
}
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85em;
    color: #555;
    cursor: pointer;
}
.checkbox-container input {
    margin-top: 4px;
}
#btn-submit {
    background-color: #cc0000;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s;
}
#btn-submit:hover {
    background-color: #a30000;
}
#btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
#mensagem-sucesso {
    color: #28a745;
    font-weight: 700;
    font-size: 1.1em;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .container {
        margin: 0;
        border-radius: 0;
        padding: 25px 20px;
        box-shadow: none;
    }
    h1 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    p {
        text-align: left;
        font-size: 1.05em;
    }
}
@keyframes pulso {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

#assinaturas-atuais:empty,
#assinaturas-atuais:contains("...") {
    animation: pulso 1.5s infinite;
}