* {
    box-sizing: border-box;
}

:root {
    --rose-900: #6f3d53;
    --rose-800: #8f526a;
    --rose-700: #9d6077;
    --rose-100: #fbf4f7;
    --rose-050: #fff8fb;
    --line: #eadde4;
    --text: #2d2630;
    --muted: #6c6470;
    --white: #ffffff;
    --shadow: 0 22px 60px rgba(83, 48, 65, .12);
}

html {
    -webkit-text-size-adjust: 100%;
}

body.public-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(157, 96, 119, .16), transparent 32rem),
        linear-gradient(135deg, #fff, var(--rose-100));
    padding: max(18px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.public-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 22px;
    align-items: start;
}

.public-hero,
.public-card {
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.public-hero {
    position: sticky;
    top: 18px;
    overflow: hidden;
    min-height: 620px;
    color: #fff;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(180deg, rgba(157, 96, 119, .94), rgba(111, 61, 83, .96)),
        radial-gradient(circle at 20% 15%, rgba(255,255,255,.22), transparent 17rem);
}

.public-brand {
    display: flex;
    gap: 14px;
    align-items: center;
}

.brand-mark {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 20px;
    font-size: 34px;
    line-height: 1;
}

.public-brand h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 400;
    letter-spacing: -.03em;
}

.public-brand span {
    display: block;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-size: 11px;
    opacity: .9;
}

.hero-text strong {
    display: block;
    margin-bottom: 12px;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: -.04em;
}

.hero-text p {
    margin: 0;
    line-height: 1.65;
    opacity: .92;
    font-size: 16px;
}

.hero-verse {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.14);
    line-height: 1.55;
    text-align: center;
}

.public-card {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    padding: 30px;
}

.form-head {
    margin-bottom: 22px;
}

.form-head h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -.04em;
}

.form-head p {
    margin: 0;
    color: var(--muted);
}

.alert-box {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    line-height: 1.45;
}

.alert-error {
    color: #8b1e3f;
    background: #ffe9ef;
}

.alert-success {
    color: #246b36;
    background: #eaf7ee;
}

.public-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.field-span-2 {
    grid-column: span 2;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 13px;
    color: #554952;
    font-weight: 700;
}

.field input,
.field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #e4d4dc;
    border-radius: 13px;
    background: #fff;
    padding: 13px 14px;
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.field textarea {
    min-height: 116px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--rose-700);
    box-shadow: 0 0 0 4px rgba(157, 96, 119, .12);
}

.field-uf input {
    text-transform: uppercase;
}

.privacy-note {
    padding: 14px;
    border-radius: 14px;
    background: var(--rose-100);
    color: var(--muted);
    line-height: 1.5;
    font-size: 14px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.form-actions button {
    width: auto;
    min-width: 210px;
    min-height: 50px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rose-700), var(--rose-900));
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(111, 61, 83, .22);
}

.form-actions button:active {
    transform: translateY(1px);
}

@media (max-width: 1024px) {
    .public-shell {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .public-hero {
        position: static;
        min-height: auto;
        gap: 26px;
    }

    .public-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .field-span-2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    body.public-body {
        padding: 0;
        background: var(--rose-050);
    }

    .public-shell {
        width: 100%;
        min-height: 100dvh;
        display: block;
    }

    .public-hero {
        border-radius: 0 0 28px 28px;
        border-left: 0;
        border-right: 0;
        border-top: 0;
        padding: calc(22px + env(safe-area-inset-top)) 18px 22px;
        box-shadow: 0 14px 34px rgba(83, 48, 65, .18);
    }

    .public-brand {
        gap: 12px;
    }

    .brand-mark {
        width: 52px;
        height: 52px;
        border-radius: 17px;
        font-size: 28px;
    }

    .public-brand h1 {
        font-size: 31px;
    }

    .public-brand span {
        font-size: 10px;
        letter-spacing: 1.3px;
    }

    .hero-text {
        display: none;
    }

    .hero-verse {
        padding: 13px;
        font-size: 13px;
        margin-top: 18px;
    }

    .public-card {
        margin: 14px 10px 22px;
        border-radius: 22px;
        padding: 20px 14px;
        box-shadow: none;
        background: #fff;
    }

    .form-head {
        margin-bottom: 18px;
    }

    .form-head h2 {
        font-size: 24px;
    }

    .form-head p {
        font-size: 14px;
        line-height: 1.45;
    }

    .public-form {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .field,
    .field-span-2,
    .field-full {
        grid-column: auto;
    }

    .field label {
        font-size: 13px;
    }

    .field input,
    .field textarea {
        min-height: 50px;
        border-radius: 12px;
        padding: 13px;
        font-size: 16px;
    }

    .field textarea {
        min-height: 106px;
    }

    .privacy-note {
        font-size: 13px;
    }

    .form-actions {
        position: sticky;
        bottom: 0;
        padding: 10px 0 calc(8px + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, rgba(255,255,255,.70), #fff 32%);
        z-index: 5;
    }

    .form-actions button {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        font-size: 16px;
    }
}

@media (max-width: 390px) {
    .public-card {
        margin-left: 7px;
        margin-right: 7px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .public-brand h1 {
        font-size: 28px;
    }

    .public-brand span {
        max-width: 210px;
        line-height: 1.35;
    }
}


/* Proteção antirobô - adicionar ao FINAL de cadastro_mulher_publico.css */

.captcha-box {
    padding: 14px;
    border: 1px solid #eadde4;
    border-radius: 16px;
    background: #fff8fb;
}

.captcha-row {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 12px;
    align-items: center;
}

.captcha-row span {
    color: #6f3d53;
    font-weight: 800;
}

.captcha-box small {
    color: #6c6470;
    line-height: 1.4;
}

.anti-bot-field {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 600px) {
    .captcha-row {
        grid-template-columns: 1fr;
    }

    .captcha-row input {
        width: 100%;
    }
}

/* Select/lookup do cadastro público - adicionar ao FINAL de cadastro_mulher_publico.css */

.field select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #e4d4dc;
    border-radius: 13px;
    background: #fff;
    padding: 13px 14px;
    color: var(--text, #2d2630);
    font: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.field select:focus {
    border-color: var(--rose-700, #9d6077);
    box-shadow: 0 0 0 4px rgba(157, 96, 119, .12);
}

@media (max-width: 600px) {
    .field select {
        min-height: 50px;
        border-radius: 12px;
        padding: 13px;
        font-size: 16px;
    }
}

