/*
|--------------------------------------------------------------------------
| MoradaOS · Formulários públicos
|--------------------------------------------------------------------------
| Complemento visual independente do painel autenticado.
| Mantém os formulários de degustação e demonstração no mesmo padrão
| da landing page, mesmo que a rota não use o layout administrativo.
*/
:root {
    --mo-navy: #0c2b63;
    --mo-blue: #1766e7;
    --mo-blue-strong: #0e58db;
    --mo-ink: #18365f;
    --mo-copy: #587197;
    --mo-line: #dce8f7;
    --mo-soft: #f4f8ff;
}

html {
    background: #f7fbff;
}

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

body.public-form-page {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--mo-copy);
    background:
        radial-gradient(circle at 86% 6%, rgba(196, 221, 255, .75), transparent 32%),
        radial-gradient(circle at 2% 38%, rgba(229, 240, 255, .82), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.public-form-page a {
    color: inherit;
    text-decoration: none;
}

.public-form-page input,
.public-form-page select,
.public-form-page textarea,
.public-form-page button {
    font: inherit;
}

.public-form-header {
    height: 92px;
    border-bottom: 1px solid rgba(216, 230, 248, .84);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 1px 0 rgba(15, 56, 121, .02);
    backdrop-filter: blur(12px);
}

.public-form-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.public-form-header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.public-form-brand {
    display: inline-flex;
    align-items: center;
}

.public-form-brand img {
    display: block;
    width: 218px;
    height: auto;
    max-height: 54px;
    object-fit: contain;
}

.public-form-header-inner > div a,
.public-form-header-inner > a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    color: #244772 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: -.01em;
    transition: background .15s ease, color .15s ease;
}

.public-form-header-inner > div a:last-child {
    color: var(--mo-blue) !important;
}

.public-form-header-inner > div a:hover,
.public-form-header-inner > a:hover {
    background: #edf5ff;
    color: var(--mo-blue) !important;
}

.public-form-main {
    padding: 68px 0 74px;
}

.public-form-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
    gap: 66px;
    align-items: center;
}

.public-form-copy {
    padding: 18px 0 24px;
}

.public-form-copy .eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 35px;
    padding: 0 13px;
    border: 1px solid #cbe1ff;
    border-radius: 999px;
    background: rgba(237, 246, 255, .92);
    color: #1766e7;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: -.01em;
}

.public-form-copy h1 {
    max-width: 520px;
    margin: 20px 0 15px;
    color: var(--mo-navy);
    font-size: clamp(42px, 4.1vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.045em;
    font-weight: 650;
}

.public-form-copy h1 span {
    color: var(--mo-blue);
}

.public-form-copy p {
    max-width: 520px;
    margin: 0;
    color: #55719a;
    font-size: 18px;
    line-height: 1.62;
    letter-spacing: -.012em;
}

.public-benefits {
    display: grid;
    gap: 15px;
    margin-top: 32px;
}

.public-benefit {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.public-benefit-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid #c9e0ff;
    border-radius: 10px;
    background: linear-gradient(145deg, #ffffff, #edf5ff);
    color: #1766e7;
    font-size: 16px;
    font-weight: 700;
}

.public-benefit strong {
    display: block;
    margin-top: 1px;
    color: #244b7d;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 650;
}

.public-benefit span {
    display: block;
    margin-top: 3px;
    color: #7188aa;
    font-size: 13px;
    line-height: 1.48;
}

.public-form-card {
    padding: 34px;
    border: 1px solid rgba(214, 228, 246, .98);
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 28px 70px rgba(25, 73, 144, .12);
}

.public-form-card h2 {
    margin: 0;
    color: #12376c;
    font-size: 27px;
    line-height: 1.18;
    letter-spacing: -.035em;
    font-weight: 650;
}

.public-form-card .lead {
    margin: 9px 0 25px;
    color: #7187a8;
    font-size: 15px;
    line-height: 1.55;
}

.public-form-grid-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.public-field {
    min-width: 0;
}

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

.public-field label {
    display: block;
    margin: 0 0 7px;
    color: #385b88;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 650;
}

.public-field input,
.public-field select,
.public-field textarea {
    width: 100%;
    min-height: 47px;
    border: 1px solid #d6e3f3;
    border-radius: 11px;
    padding: 11px 13px;
    color: #24466e;
    background: #ffffff;
    font-size: 15px;
    line-height: 1.42;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

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

.public-field input::placeholder,
.public-field textarea::placeholder {
    color: #9aaac0;
}

.public-field input:focus,
.public-field select:focus,
.public-field textarea:focus {
    border-color: #79a8ee;
    box-shadow: 0 0 0 4px rgba(23, 102, 231, .11);
}

.public-help,
.public-error {
    margin-top: 6px;
    font-size: 12px;
}

.public-help {
    color: #8194af;
}

.public-error {
    color: #c3374a;
}

.public-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 19px;
    color: #637e9f;
    font-size: 13px;
    line-height: 1.48;
}

.public-check input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--mo-blue);
}

.public-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 21px;
    border: 0;
    border-radius: 11px;
    padding: 12px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #1766e7 0%, #2878fa 100%);
    box-shadow: 0 15px 25px rgba(23, 102, 231, .21);
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -.012em;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}

.public-submit:hover {
    filter: brightness(.97);
    transform: translateY(-1px);
}

.public-switch {
    margin: 17px 0 0;
    color: #7488a6;
    text-align: center;
    font-size: 13px;
}

.public-switch a {
    color: var(--mo-blue);
    font-weight: 650;
}

.public-flash {
    margin-bottom: 16px;
    border: 1px solid #ccefdc;
    border-radius: 11px;
    padding: 12px 13px;
    color: #08734e;
    background: #eafbf4;
    font-size: 13px;
    line-height: 1.45;
}

.public-form-footer {
    padding: 0 0 34px;
    color: #7e91ad;
    text-align: center;
    font-size: 12px;
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 980px) {
    .public-form-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .public-form-copy {
        max-width: 680px;
        padding: 0;
    }

    .public-form-copy h1 {
        max-width: 680px;
    }
}

@media (max-width: 640px) {
    .public-form-header {
        height: 76px;
    }

    .public-form-container {
        width: min(100% - 28px, 560px);
    }

    .public-form-brand img {
        width: 168px;
        max-height: 43px;
    }

    .public-form-header-inner > div,
    .public-form-header-inner > a {
        gap: 0 !important;
    }

    .public-form-header-inner > div a,
    .public-form-header-inner > a {
        min-height: 36px;
        padding: 0 8px;
        font-size: 12px !important;
    }

    .public-form-main {
        padding: 37px 0 48px;
    }

    .public-form-copy h1 {
        margin-top: 17px;
        font-size: 38px;
    }

    .public-form-copy p {
        font-size: 16px;
    }

    .public-form-grid-fields {
        grid-template-columns: 1fr;
    }

    .public-form-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

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