/* ==============================================
   PELLIZZARI × PASSO SEGURO — EVENTO NR-01
   Identidade Visual: Colégio Passo Seguro
   ============================================== */

:root {
    --azul: #2B3A8F;
    --azul-escuro: #1e2a6b;
    --laranja: #FF9000;
    --laranja-hover: #e68000;
    --fundo: #FAFAF7;
    --fundo-card: #ffffff;
    --texto: #1a1a2e;
    --texto-suave: #555;
    --borda: #e0e0e8;
    --erro: #d32f2f;
    --sucesso: #2e7d32;
    --radius: 10px;
    --shadow: 0 4px 24px rgba(43, 58, 143, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--texto);
    background: var(--fundo);
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.container--narrow {
    max-width: 560px;
}

/* ---- HEADER ---- */
.header {
    background: var(--azul);
    padding: 18px 0;
}

.header__logos {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header__logo-passo-wrap {
    background: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
}

.header__logo-passo {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
}

.header__sep {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.header__logo-pellizzari {
    height: 40px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
}

/* ---- HERO ---- */
.hero {
    padding: 60px 0 50px;
    background: var(--fundo);
}

.hero__badge {
    display: inline-block;
    background: var(--laranja);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.hero__title {
    font-family: 'Fraunces', serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    color: var(--azul);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero__meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero__meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 500;
    color: var(--texto-suave);
}

.hero__meta-item svg {
    color: var(--laranja);
    flex-shrink: 0;
}

.hero__desc {
    max-width: 700px;
}

.hero__desc p {
    font-size: 16px;
    color: var(--texto-suave);
    margin-bottom: 14px;
}

.hero__desc p:last-child { margin-bottom: 0; }

.hero__desc strong { color: var(--texto); }

/* ---- FORMULÁRIO ---- */
.formulario-section {
    padding: 50px 0 70px;
    background: linear-gradient(180deg, var(--fundo) 0%, #eef0f8 100%);
}

.form-card {
    background: var(--fundo-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 36px;
    border-top: 4px solid var(--azul);
}

.form-card__title {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--azul);
    margin-bottom: 6px;
}

.form-card__subtitle {
    font-size: 14px;
    color: var(--texto-suave);
    margin-bottom: 28px;
}

/* ---- CAMPOS ---- */
.field-group {
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--texto);
    margin-bottom: 7px;
}

.required {
    color: var(--laranja);
}

.field-input {
    width: 100%;
    padding: 12px 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    color: var(--texto);
    background: #fafafa;
    border: 1.5px solid var(--borda);
    border-radius: 7px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.field-input:focus {
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(43, 58, 143, 0.1);
    background: #fff;
}

.field-input.is-error {
    border-color: var(--erro);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.08);
}

.field-input.is-valid {
    border-color: var(--sucesso);
}

.field-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.field-error {
    display: block;
    font-size: 12px;
    color: var(--erro);
    margin-top: 5px;
    min-height: 16px;
    opacity: 0;
    transition: opacity 0.2s;
}

.field-error.is-visible { opacity: 1; }

/* ---- NETWORK ERROR ---- */
.network-error {
    display: none;
    background: #fff3f3;
    color: var(--erro);
    border: 1px solid #ffcdd2;
    border-radius: 7px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 16px;
}

.network-error.is-visible { display: block; }

/* ---- BOTÃO ---- */
.btn-submit {
    width: 100%;
    padding: 16px 24px;
    background: var(--laranja);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, transform 0.1s, opacity 0.2s;
    margin-top: 8px;
    position: relative;
}

.btn-submit:hover:not(:disabled) {
    background: var(--laranja-hover);
}

.btn-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn__loading {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-submit.btn--loading .btn__loading { display: block; }
.btn-submit.btn--loading .btn__text { opacity: 0.7; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- CONFIRMAÇÃO ---- */
.confirmacao {
    background: var(--fundo-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 50px 36px;
    text-align: center;
    border-top: 4px solid var(--sucesso);
}

.confirmacao__icon {
    width: 64px;
    height: 64px;
    background: var(--sucesso);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.confirmacao__title {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--azul);
    margin-bottom: 12px;
}

.confirmacao__text {
    font-size: 16px;
    color: var(--texto-suave);
    margin-bottom: 16px;
}

.confirmacao__meta {
    font-size: 14px;
    font-weight: 600;
    color: var(--laranja);
}

/* ---- FOOTER ---- */
.footer {
    background: var(--azul-escuro);
    padding: 18px 0;
    text-align: center;
}

.footer p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.footer a:hover { color: #fff; }

/* ---- RESPONSIVO ---- */
@media (max-width: 600px) {
    .hero { padding: 40px 0 36px; }
    .form-card { padding: 28px 20px; }
    .confirmacao { padding: 36px 20px; }
    .header__logos { gap: 14px; }
    .header__logo-passo { height: 40px; }
    .header__logo-pellizzari { height: 30px; }
    .hero__meta { gap: 12px; flex-direction: column; }
}

