/* ══════════════════════════════════════════════════════════
   Associação Nossa Senhora Auxiliadora — ANA
   style.css
   ══════════════════════════════════════════════════════════ */

/* ── Variáveis ── */
:root {
    --gold: #C5A55A;
    --gold-light: #D4B96E;
    --gold-dark: #A88B3D;
    --bordo: #1B3A6B;
    --bordo-deep: #0F2347;
    --bordo-light: #2E5499;
    --cream: #F5F7FA;
    --cream-dark: #D9E0EC;
    --parchment: #EEF2F8;
    --text-dark: #0D1B2E;
    --text-body: #1E2D45;
    --text-muted: #5A6E8A;
    --white: #FFFFFF;
    --erro: #c0392b;
    --ok: #1a7a42;
}

/* ── Reset e base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 142%; }
body {
    font-family: 'Crimson Pro', 'EB Garamond', Georgia, serif;
    background: var(--cream);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ══ HERO ══ */
.hero {
    position: relative;
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(165deg, var(--bordo-deep) 0%, var(--bordo) 45%, var(--bordo-light) 100%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(197,165,90,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    animation: fadeUp 0.7s ease-out;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-brasao   { width: 90px; height: auto; margin-bottom: 0.4rem; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.hero-sup      { font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 0.5rem; opacity: 0.85; }
.hero h1       { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.68rem, 3.6vw, 2.64rem); font-weight: 300; color: var(--cream); line-height: 1.2; margin-bottom: 0.2rem; }
.hero h1 em    { font-style: italic; color: var(--gold); }
.hero-sigla    { font-size: 0.96rem; color: var(--gold); letter-spacing: 0.3em; margin-bottom: 0.5rem; }
.hero-divider  { width: 50px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 0.6rem auto; }
.hero-tagline  { font-size: 0.90rem; color: var(--cream-dark); letter-spacing: 0.08em; margin-bottom: 1rem; }
.btn-hero {
    display: inline-block;
    padding: 0.5rem 1.8rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.90rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-hero:hover { background: var(--gold); color: var(--bordo-deep); }

/* ══ SEÇÕES ══ */
section { padding: 4rem 2rem; }
.section-inner   { max-width: 1100px; margin: 0 auto; }
.section-titulo  { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; color: var(--bordo); text-align: center; margin-bottom: 0.4rem; }
.section-subtitulo { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 2.5rem; }
.ornamento { text-align: center; color: var(--gold); letter-spacing: 0.5em; margin: 0.4rem 0 2rem; }

/* ══ SOBRE ══ */
.sobre { background: var(--white); }
.sobre-grid      { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.sobre-texto p   { margin-bottom: 0.9rem; }
.sobre-destaque  { background: var(--cream); border-left: 3px solid var(--gold); padding: 1rem 1.2rem; margin-top: 1.2rem; font-style: italic; color: var(--bordo); font-size: 0.92rem; }
.sobre-nota      { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.8rem; }
.sobre-nums      { display: flex; flex-direction: column; gap: 1rem; }
.num-item        { text-align: center; padding: 1.2rem; border: 1px solid var(--cream-dark); background: var(--cream); }
.num-val         { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; color: var(--bordo); font-weight: 500; line-height: 1; }
.num-lbl         { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-top: 0.25rem; }

/* ══ BENEFÍCIOS ══ */
.beneficios { background: var(--cream); }
.ben-grid   { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; }
.ben-card   { background: var(--white); border: 1px solid var(--cream-dark); padding: 1.4rem; }
.ben-icon   { font-size: 1.4rem; margin-bottom: 0.6rem; }
.ben-titulo { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; color: var(--bordo); margin-bottom: 0.4rem; }
.ben-desc   { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; }
.ben-nota   { font-size: 0.75rem; color: var(--text-muted); margin-top: 2rem; font-style: italic; border-top: 1px solid var(--cream-dark); padding-top: 1rem; }

/* ══ CONTRIBUIÇÕES ══ */
.contribuicoes { background: var(--bordo-deep); padding: 3rem 2rem; }
.contribuicoes .section-titulo    { color: var(--gold); }
.contribuicoes .section-subtitulo { color: rgba(255,255,255,0.6); }
.contrib-table-wrap { width: 100%; max-width: 600px; margin: 0 auto; overflow: visible; }
.contrib-table    { width: 100%; border-collapse: collapse; font-size: 1rem; max-width: 600px; margin: 0 auto; }
.contrib-table th { color: var(--gold); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; padding: 0.55rem 0.9rem; border-bottom: 1px solid rgba(197,165,90,0.3); text-align: left; }
.contrib-table td { padding: 0.55rem 0.9rem; color: rgba(255,255,255,0.85); border-bottom: 1px solid rgba(255,255,255,0.06); }
.contrib-table tr:hover td { background: rgba(255,255,255,0.04); }
.contrib-table .val   { color: #fff; font-weight: 600; white-space: nowrap; }
.contrib-table .val-a { color: var(--gold-light); white-space: nowrap; font-weight: 600; }
.contrib-base-row td  { background: rgba(197,165,90,0.08); color: var(--gold-light) !important; font-weight: 600; border-bottom: 1px solid rgba(197,165,90,0.2) !important; font-size: 1.05rem; }

/* ══ FORMULÁRIO ══ */
.form-section { background: var(--parchment); }
.form-layout  { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: start; max-width: 1060px; margin: 0 auto; }

/* Stepper */
.stepper  { display: flex; margin-bottom: 2rem; border-bottom: 2px solid var(--cream-dark); }
.step-btn { padding: 0.6rem 1.2rem; background: none; border: none; font-family: 'Crimson Pro', serif; font-size: 0.85rem; color: var(--text-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; letter-spacing: 0.04em; transition: all 0.2s; white-space: nowrap; }
.step-btn.ativo    { color: var(--bordo); border-bottom-color: var(--bordo); font-weight: 600; }
.step-btn.completo { color: var(--ok); }
.step-btn.completo::before { content: '✓ '; }
.step-panel      { display: none; }
.step-panel.ativo { display: block; }

/* Controles de formulário */
.form-box { background: var(--white); border: 1px solid var(--cream-dark); padding: 2rem 2.5rem; min-width: 0; }
.form-group       { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--bordo); margin-bottom: 0.35rem; font-weight: 600; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--cream-dark);
    background: var(--cream);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.form-group input.campo-erro { border-color: var(--erro); }
.msg-erro     { font-size: 0.72rem; color: var(--erro); margin-top: 0.25rem; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-row-3   { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.8rem; }
.form-divider { border: none; border-top: 1px solid var(--cream-dark); margin: 1.4rem 0; }
.form-subtitle { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--bordo); margin-bottom: 0.8rem; }
.form-nota     { font-size: 0.75rem; color: var(--text-muted); font-style: italic; margin-bottom: 1rem; padding: 0.7rem; background: var(--cream); border-left: 2px solid var(--gold); }

/* Modalidade */
.mod-grid             { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.mod-card             { border: 1px solid var(--cream-dark); padding: 1rem; cursor: pointer; text-align: center; background: var(--cream); transition: all 0.2s; }
.mod-card input[type=radio] { display: none; }
.mod-card.sel         { border-color: var(--bordo); background: #fff; box-shadow: 0 0 0 2px var(--bordo); }
.mod-nome { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--bordo); }
.mod-val  { font-size: 1.3rem; font-weight: 600; color: var(--bordo-deep); margin: 0.2rem 0; }
.mod-desc { font-size: 0.7rem; color: var(--text-muted); }

/* Dependentes */
.dep-card   { background: var(--cream); border: 1px solid var(--cream-dark); padding: 1.2rem; margin-bottom: 1rem; }
.dep-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.dep-titulo { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--bordo); }
.btn-rem         { background: none; border: none; color: var(--erro); cursor: pointer; font-size: 0.8rem; padding: 0.2rem 0.5rem; }
.btn-rem:hover   { text-decoration: underline; }
.btn-add         { background: transparent; border: 1px solid var(--bordo); color: var(--bordo); padding: 0.55rem 1.2rem; cursor: pointer; font-family: inherit; font-size: 0.85rem; letter-spacing: 0.08em; transition: all 0.2s; margin-top: 0.5rem; }
.btn-add:hover   { background: var(--bordo); color: #fff; }

/* Aceites */
.aceite-grupo  { margin-bottom: 1.5rem; }
.aceite-titulo { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--bordo); font-weight: 600; margin-bottom: 0.6rem; }
.aceite-item   { display: grid; grid-template-columns: 20px 1fr; gap: 0.6rem; align-items: start; margin-bottom: 0.8rem; font-size: 0.88rem; color: var(--text-body); }
.aceite-item input[type=checkbox] { margin-top: 0.25rem; accent-color: var(--bordo); width: 15px; height: 15px; }
.aceite-item label, .aceite-item span { display: block; width: 100%; cursor: pointer; }
.aceite-item a { color: var(--bordo); }

/* Navegação entre steps */
.step-nav        { display: flex; justify-content: space-between; margin-top: 1.5rem; gap: 1rem; }
.btn-nav         { padding: 0.65rem 1.6rem; border: none; font-family: inherit; font-size: 0.85rem; cursor: pointer; letter-spacing: 0.08em; transition: background 0.2s; }
.btn-anterior    { background: transparent; border: 1px solid var(--bordo); color: var(--bordo); }
.btn-anterior:hover { background: var(--bordo); color: #fff; }
.btn-proximo     { background: var(--bordo); color: var(--gold); }
.btn-proximo:hover { background: var(--bordo-deep); }
.btn-submit      { background: var(--bordo); color: var(--gold); width: 100%; padding: 0.9rem; font-family: inherit; font-size: 0.9rem; cursor: pointer; letter-spacing: 0.15em; text-transform: uppercase; border: none; transition: background 0.3s; }
.btn-submit:hover    { background: var(--bordo-deep); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Resumo lateral */
.resumo-lateral       { background: var(--white); border: 1px solid var(--cream-dark); padding: 1.5rem; position: sticky; top: 1.5rem; }
.resumo-lateral .titulo { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--bordo); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--cream-dark); }
.resumo-linha         { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); padding: 0.2rem 0; gap: 0.5rem; }
.resumo-linha .r-label { flex: 1; }
.resumo-linha .r-val  { white-space: nowrap; font-weight: 500; color: var(--text-dark); }
.resumo-sep           { border: none; border-top: 1px solid var(--cream-dark); margin: 0.6rem 0; }
.resumo-total         { display: flex; justify-content: space-between; font-size: 0.95rem; font-weight: 700; color: var(--bordo); padding-top: 0.3rem; }
.resumo-periodo       { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.4rem; }
.resumo-vazio         { font-size: 0.82rem; color: var(--text-muted); font-style: italic; }

/* Tela de sucesso */
.sucesso-box    { max-width: 620px; margin: 0 auto; background: var(--white); border: 1px solid var(--cream-dark); padding: 3rem; text-align: center; }
.sucesso-cross  { font-size: 3rem; color: var(--gold); margin-bottom: 1rem; }
.sucesso-num    { display: inline-block; background: var(--cream); border: 1px solid var(--cream-dark); padding: 0.4rem 1.2rem; font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--bordo); margin: 1rem 0; letter-spacing: 0.1em; }
.sucesso-titulo { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--bordo); margin-bottom: 0.8rem; }
.sucesso-texto  { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.7; }
.pix-box        { background: var(--cream); border: 1px solid var(--cream-dark); padding: 1rem; text-align: left; margin: 1.2rem 0; font-size: 0.85rem; }
.pix-box strong { color: var(--bordo); }
.btn-wpp        { display: inline-block; margin-top: 0.8rem; padding: 0.65rem 1.8rem; background: #25D366; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.88rem; letter-spacing: 0.05em; }

/* Alerta de erro global */
.alerta-erro { background: #fdf0f0; border-left: 4px solid var(--erro); color: #7a1a1a; padding: 0.9rem 1.2rem; margin-bottom: 1.2rem; font-size: 0.85rem; }

/* ══ FOOTER ══ */
footer        { background: var(--bordo-deep); color: rgba(255,255,255,0.6); text-align: center; padding: 2rem; font-size: 0.78rem; }
footer strong { color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVO — versão consolidada
   ══════════════════════════════════════════════════════════ */

/* Evita que filhos de grid/flex imponham largura mínima maior que a tela. */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.section-inner,
.form-layout,
.form-layout > *,
#formAdesao,
#formEdicao,
.step-panel,
.form-box,
.form-row,
.form-row-3,
.form-row > *,
.form-row-3 > *,
.form-group,
.mod-grid,
.mod-grid > *,
.dep-card,
#depsContainer,
#depsContainerEdit,
.resumo-lateral {
    min-width: 0;
    max-width: 100%;
}

.form-group input,
.form-group select,
.form-group textarea,
#formAdesao input,
#formAdesao select,
#formAdesao textarea,
#formEdicao input,
#formEdicao select,
#formEdicao textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

input[type="date"],
input[type="time"],
input[type="datetime-local"],
select {
    max-width: 100%;
    min-width: 0;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
}

textarea,
p,
li,
a,
span {
    overflow-wrap: anywhere;
}

.aceite-item,
.aceite-item label,
.aceite-item span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
}

@media (max-width: 900px) {
    .form-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .resumo-lateral {
        position: static;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 106%;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        font-size: 1rem;
        line-height: 1.6;
    }

    section {
        padding: 2.7rem 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hero-brasao {
        width: 82px;
    }

    .hero-sup {
        font-size: 0.78rem;
        letter-spacing: 0.18em;
    }

    .hero h1 {
        font-size: clamp(1.85rem, 8vw, 2.45rem);
    }

    .hero-tagline {
        font-size: 0.98rem;
        line-height: 1.45;
    }

    .hero-content > div:last-child {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .btn-hero {
        width: 100%;
        padding: 0.78rem 1rem;
        font-size: 0.92rem;
        text-align: center;
    }

    .section-inner {
        width: 100%;
        max-width: 100%;
    }

    .section-titulo {
        font-size: 2rem;
        line-height: 1.15;
    }

    .section-subtitulo {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.6rem;
    }

    .sobre-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.4rem;
    }

    .sobre-texto p,
    .sobre-destaque {
        font-size: 1rem;
    }

    .sobre-nota,
    .ben-nota {
        font-size: 0.9rem;
    }

    .ben-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.85rem;
    }

    .ben-card {
        padding: 1.15rem;
    }

    .ben-titulo {
        font-size: 1.3rem;
    }

    .ben-desc {
        font-size: 1rem;
        line-height: 1.55;
    }

    .contribuicoes {
        padding: 2.6rem 0.75rem;
    }

    .contrib-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow: visible !important;
    }

    .contrib-table {
        display: block;
        width: 100%;
        min-width: 0 !important;
        max-width: 100%;
        table-layout: auto;
        font-size: 0.88rem;
    }

    .contrib-table thead,
    .contrib-table tbody {
        display: block;
        width: 100%;
    }

    .contrib-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) max-content max-content;
        column-gap: 0.65rem;
        align-items: center;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .contrib-table th,
    .contrib-table td {
        display: block;
        min-width: 0;
        width: auto;
        padding: 0.7rem 0.3rem;
        border-bottom: 0;
        line-height: 1.3;
    }

    .contrib-table th:first-child,
    .contrib-table td:first-child {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .contrib-table th:nth-child(2),
    .contrib-table th:nth-child(3),
    .contrib-table td:nth-child(2),
    .contrib-table td:nth-child(3) {
        text-align: right;
        white-space: nowrap;
    }

    .contrib-table th {
        font-size: 0.7rem;
        letter-spacing: 0.07em;
    }

    .contrib-table .val,
    .contrib-table .val-a {
        font-size: 0.78rem;
    }

    .contrib-base-row {
        background: rgba(197,165,90,0.08);
    }

    .contrib-base-row td {
        background: transparent !important;
        font-size: 0.88rem;
    }

    .contrib-base-row td:first-child span {
        display: block;
        margin-top: 0.15rem;
        font-size: 0.72rem !important;
    }

    #confirmar-pagamento,
    #escolha,
    #minha-adesao,
    #adesao {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    #confirmar-pagamento .section-inner > div {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    #confirmar-pagamento .section-inner > div > div {
        min-width: 0 !important;
        width: 100% !important;
    }

    #confirmar-pagamento a {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        text-align: center;
    }

    #escolha table,
    #escolha tbody,
    #escolha tr,
    #escolha td {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
    }

    #escolha table {
        border-spacing: 0 !important;
    }

    #escolha td {
        padding: 0 0 0.8rem !important;
    }

    .form-layout {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .form-layout > div:first-child,
    #formAdesao,
    #formEdicao {
        width: 100%;
        max-width: 100%;
    }

    .stepper {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
        margin-bottom: 1rem;
        border-bottom: none;
        overflow: visible;
    }

    .step-btn {
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0.75rem 0.45rem;
        border: 1px solid var(--cream-dark);
        background: rgba(255,255,255,0.65);
        white-space: normal;
        text-align: center;
        font-size: 0.94rem;
        line-height: 1.2;
    }

    .step-btn.ativo {
        border-color: var(--bordo);
        background: var(--white);
    }

    .form-box {
        width: 100%;
        max-width: 100%;
        padding: 1.15rem 1rem;
    }

    .form-row,
    .form-row-3,
    .mod-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        width: 100%;
    }

    .form-group {
        width: 100%;
        margin-bottom: 1.05rem;
    }

    .form-group label,
    .aceite-titulo {
        font-size: 0.9rem;
        line-height: 1.3;
        letter-spacing: 0.065em;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 50px;
        padding: 0.8rem 0.82rem;
        font-size: 16px;
        line-height: 1.3;
        border-radius: 0;
    }

    /* O campo date do Safari pode ultrapassar a largura quando tem padding. */
    .form-group input[type="date"] {
        padding-left: 0.68rem;
        padding-right: 0.35rem;
        overflow: hidden;
    }

    .form-group textarea {
        min-height: 110px;
        resize: vertical;
    }

    .form-subtitle {
        font-size: 1.42rem;
        line-height: 1.2;
    }

    .form-nota,
    .msg-erro,
    .alerta-erro {
        font-size: 0.97rem;
        line-height: 1.48;
    }

    .mod-card {
        width: 100%;
        padding: 1.1rem;
    }

    .mod-nome {
        font-size: 1.28rem;
    }

    .mod-val {
        font-size: 1.55rem;
    }

    .mod-desc {
        font-size: 0.96rem;
    }

    .dep-card {
        width: 100%;
        padding: 1rem 0.85rem;
    }

    .dep-header {
        gap: 0.65rem;
        align-items: flex-start;
    }

    .dep-titulo {
        min-width: 0;
        font-size: 1.2rem;
    }

    .btn-rem {
        flex: 0 0 auto;
        max-width: 45%;
        white-space: normal;
        text-align: right;
    }

    .btn-add,
    .btn-nav,
    .btn-submit,
    .btn-wpp {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 50px;
        padding: 0.8rem 0.85rem !important;
        font-size: 1rem;
        line-height: 1.3;
        white-space: normal !important;
        text-align: center;
    }

    .step-nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.65rem;
    }

    .step-nav > span:empty {
        display: none;
    }

    .aceite-item {
        font-size: 1rem;
        line-height: 1.45;
    }

    .aceite-item input[type="checkbox"] {
        width: 22px;
        min-width: 22px;
        height: 22px;
        flex: 0 0 22px;
    }

    .resumo-lateral {
        position: static;
        width: 100%;
        max-width: 100%;
        margin-top: 1rem;
        padding: 1.15rem 1rem;
    }

    .resumo-linha,
    .resumo-total {
        gap: 0.75rem;
    }

    .sucesso-box,
    .pix-box {
        width: 100%;
        max-width: 100%;
    }

    .sucesso-box {
        padding: 1.5rem 1rem;
    }

    footer {
        padding: 2rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 420px) {
    section,
    #confirmar-pagamento,
    #escolha,
    #minha-adesao,
    #adesao {
        padding-left: 0.72rem !important;
        padding-right: 0.72rem !important;
    }

    .form-box {
        padding: 1rem 0.75rem;
    }

    .step-btn {
        padding: 0.7rem 0.25rem;
        font-size: 0.89rem;
    }

    .section-titulo {
        font-size: 1.85rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding-left: 0.72rem;
        padding-right: 0.72rem;
    }
}

@media (max-width: 360px) {
    .contribuicoes {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    .contrib-table tr {
        column-gap: 0.42rem;
    }

    .contrib-table th,
    .contrib-table td {
        padding-left: 0.18rem;
        padding-right: 0.18rem;
    }

    .contrib-table {
        font-size: 0.82rem;
    }

    .contrib-table .val,
    .contrib-table .val-a {
        font-size: 0.72rem;
    }
}

/* ══════════════════════════════════════════════════════════
   DESKTOP — conteúdo centralizado em 70% da janela
   Mantém o comportamento mobile já aprovado.
   ══════════════════════════════════════════════════════════ */
@media (min-width: 1101px) {
    .section-inner {
        width: 70%;
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content {
        width: 70%;
        max-width: 820px;
        margin-left: auto;
        margin-right: auto;
    }

    .form-layout {
        width: 100%;
        max-width: 1060px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Notebook e telas intermediárias: evita que o formulário fique apertado. */
@media (min-width: 769px) and (max-width: 1100px) {
    .section-inner,
    .hero-content {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}