/* ===========================================================
   Votação do novo logótipo — APH 50 anos
   Paleta: creme institucional + vermelho/verde da marca + selo
   dourado de aniversário. Tipografia serif no display para dar
   peso institucional, sans-serif no corpo para legibilidade.
   =========================================================== */

:root {
    --cream:      #FBF7EF;
    --ink:        #241F1B;
    --ink-soft:   #5A5148;
    --aph-red:    #C8102E;
    --aph-green:  #046A38;
    --gold:       #B4893A;
    --gold-soft:  #F3E7CE;
    --border:     #E4DACB;
    --card-bg:    #FFFFFF;
    --radius:     14px;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--cream);
    margin: 0;
    line-height: 1.55;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

/* ---------- Cabeçalho ---------- */

.site-header {
    text-align: center;
    margin-bottom: 2.75rem;
}

.anniversary-seal {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: var(--gold-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.seal-number {
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
}

.seal-label {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 0.1rem;
}

.eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin: 0 0 0.6rem;
}

.site-header h1 {
    font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
    font-size: 2.3rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--ink);
}

.subtitle {
    color: var(--ink-soft);
    font-size: 1.05rem;
    max-width: 46ch;
    margin: 0 auto;
}

/* ---------- Cartões de logótipo ---------- */

.logo-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 560px) {
    .logo-options { grid-template-columns: 1fr; }
}

.logo-card {
    display: block;
    cursor: pointer;
}

.logo-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.logo-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.25rem 1.25rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.logo-card:hover .logo-card-inner {
    border-color: var(--gold);
}

.logo-card input:focus-visible + .logo-card-inner {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.logo-card input:checked + .logo-card-inner {
    border-color: var(--aph-red);
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.14);
    transform: translateY(-2px);
}

.check-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--aph-red);
    color: #fff;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.logo-card input:checked + .logo-card-inner .check-badge {
    opacity: 1;
    transform: scale(1);
}

.logo-card-inner img {
    max-width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.logo-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.logo-card input:checked + .logo-card-inner .logo-label {
    color: var(--aph-red);
}

/* ---------- Formulário ---------- */

.form-fields {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
}

.field + .field {
    margin-top: 1.1rem;
}

.form-fields label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}

.form-fields input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--cream);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-fields input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.field-hint {
    color: var(--ink-soft);
    font-size: 0.82rem;
    margin: 0.45rem 0 0;
}

/* ---------- Botão ---------- */

#submit-btn {
    display: block;
    width: 100%;
    padding: 0.95rem;
    background: var(--aph-red);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

#submit-btn:hover:not(:disabled) {
    background: #a90d26;
}

#submit-btn:active:not(:disabled) {
    transform: scale(0.99);
}

#submit-btn:disabled {
    background: #C9C2B6;
    cursor: default;
}

/* ---------- Mensagens ---------- */

.form-message {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    min-height: 1px;
}

.form-message:empty { padding: 0; margin-top: 0; }

.form-message-success {
    background: #E6F4EA;
    color: var(--aph-green);
    border: 1px solid #BFE3CB;
}

.form-message-error {
    background: #FDECEA;
    color: var(--aph-red);
    border: 1px solid #F5C4CB;
}

.notice {
    padding: 1.25rem;
    border-radius: var(--radius);
    background: var(--card-bg);
    border: 1px solid var(--border);
    text-align: center;
    color: var(--ink-soft);
}

/* ---------- Página de resultados ---------- */

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.results-table th, .results-table td {
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.results-table th {
    background: var(--gold-soft);
    color: var(--ink);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}