/* =========================================================================
   FAJ Empreendimentos — Cadastro de Imobiliárias
   Fonte local: Just Sans (pasta assets/fonts)
   ========================================================================= */

/* ---------- Fontes locais (Just Sans) ---------- */
@font-face {
    font-family: 'Just Sans';
    src: url('assets/fonts/JUSTSans-ExLt.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Just Sans';
    src: url('assets/fonts/JUSTSans-Lt.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Just Sans';
    src: url('assets/fonts/JUSTSans-Rg.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Just Sans';
    src: url('assets/fonts/JUSTSans-Md.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Just Sans';
    src: url('assets/fonts/JUSTSans-SmBd.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Just Sans';
    src: url('assets/fonts/JUSTSans-Bd.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Just Sans';
    src: url('assets/fonts/JUSTSans-ExBd.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ---------- Variáveis / Design tokens ---------- */
:root {
    --faj-blue: #0a2a5e;
    --faj-blue-dark: #061c40;
    --faj-blue-light: #1a4a95;
    --faj-blue-accent: #2b6bd6;
    --faj-blue-tint: #eaf1fb;

    --color-bg: #f4f6fa;
    --color-surface: #ffffff;
    --color-text: #1a2233;
    --color-text-soft: #4a556b;
    --color-muted: #7a8496;
    --color-border: #e0e6ef;
    --color-border-strong: #cfd7e3;
    --color-error: #c0392b;
    --color-success: #1e8f4e;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(10, 42, 94, 0.05);
    --shadow-md: 0 4px 14px rgba(10, 42, 94, 0.08);
    --shadow-lg: 0 12px 40px rgba(10, 42, 94, 0.12);

    --transition-fast: 150ms ease;
    --transition-base: 220ms ease;
}

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

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

body {
    margin: 0;
    font-family: 'Just Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.55;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ---------- Header ---------- */
.site-header {
    background: linear-gradient(135deg, var(--faj-blue-dark) 0%, var(--faj-blue) 55%, var(--faj-blue-light) 100%);
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.site-header::after {
    content: '';
    position: absolute;
    inset: auto 0 -1px 0;
    height: 6px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.header-container {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo {
    height: 54px;
    width: auto;
}

/* ---------- Main ---------- */
.main-content {
    flex: 1;
    padding: 56px 24px 72px;
}

.container {
    max-width: 760px;
    margin: 0 auto;
}

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

/* ---------- Intro ---------- */
.page-intro {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-family: 'Just Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    color: var(--faj-blue);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: clamp(15px, 1.6vw, 17px);
    color: var(--color-text-soft);
    max-width: 560px;
    margin: 0 auto;
    font-weight: 400;
}

/* ---------- Form card ---------- */
.form-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.form-card__header {
    padding: 32px 40px 24px;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    text-align: center;
}

.form-card__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faj-blue);
    background: var(--faj-blue-tint);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.form-card__title {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.form-card__hint {
    font-size: 14px;
    color: var(--color-muted);
    margin: 0;
}

.form-body {
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ---------- Fields ---------- */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: none;
    margin: 0;
    padding: 0;
}

.form-field--group .options-list {
    margin-top: 4px;
}

.form-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.005em;
    padding: 0;
}

.required-mark {
    color: var(--color-error);
    font-weight: 700;
    margin-left: 2px;
}

.form-input {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    color: var(--color-text);
    background: #ffffff;
    border: 1.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.form-input::placeholder {
    color: #9aa4b5;
    font-weight: 400;
}

.form-input:hover {
    border-color: #adb8c8;
}

.form-input:focus {
    outline: none;
    border-color: var(--faj-blue);
    box-shadow: 0 0 0 4px rgba(10, 42, 94, 0.12);
    background: #ffffff;
}

.form-input.is-invalid {
    border-color: var(--color-error);
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
}

/* ---------- Options (radio) ---------- */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fbfcfe;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.4;
}

.option-item:hover {
    border-color: var(--faj-blue-accent);
    background: var(--faj-blue-tint);
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--color-border-strong);
    border-radius: 50%;
    margin: 0;
    display: grid;
    place-items: center;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    cursor: pointer;
    background: #fff;
}

.option-item input[type="checkbox"] {
    border-radius: 5px;
}

.option-item input[type="radio"]::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--faj-blue);
    transform: scale(0);
    transition: transform var(--transition-fast);
}

.option-item input[type="checkbox"]::before {
    content: '';
    width: 12px;
    height: 12px;
    background-color: #fff;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'><path d='M13.5 4.5L6 12L2.5 8.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'><path d='M13.5 4.5L6 12L2.5 8.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
    transform: scale(0);
    transition: transform var(--transition-fast);
}

.option-item input[type="radio"]:checked,
.option-item input[type="checkbox"]:checked {
    border-color: var(--faj-blue);
}

.option-item input[type="checkbox"]:checked {
    background: var(--faj-blue);
}

.option-item input[type="radio"]:checked::before,
.option-item input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.option-item input[type="radio"]:focus-visible,
.option-item input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(10, 42, 94, 0.18);
}

.option-item:has(input[type="radio"]:checked),
.option-item:has(input[type="checkbox"]:checked) {
    border-color: var(--faj-blue);
    background: var(--faj-blue-tint);
    box-shadow: inset 0 0 0 1px var(--faj-blue);
}

.form-hint {
    font-size: 13px;
    color: var(--color-muted);
    margin-top: -2px;
    font-weight: 400;
}

.option-label {
    flex: 1;
    user-select: none;
}

/* ---------- Errors ---------- */
.form-error {
    display: none;
    font-size: 13px;
    color: var(--color-error);
    font-weight: 500;
    margin-top: 2px;
}

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

/* ---------- Footer of form ---------- */
.form-footer {
    padding: 24px 40px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--color-border);
    background: #fbfcfe;
    text-align: center;
}

.form-footer .btn--primary {
    min-width: 240px;
}

.form-footer .form-status {
    width: 100%;
    max-width: 480px;
}

.btn {
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    border: 1.5px solid transparent;
    transition: transform var(--transition-fast), background var(--transition-base), box-shadow var(--transition-base);
    text-align: center;
}

.btn--primary {
    background: var(--faj-blue);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(10, 42, 94, 0.25);
}

.btn--primary:hover {
    background: var(--faj-blue-light);
    box-shadow: 0 8px 22px rgba(10, 42, 94, 0.3);
}

.btn--primary:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(10, 42, 94, 0.25);
}

.btn--primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(10, 42, 94, 0.25), 0 6px 18px rgba(10, 42, 94, 0.25);
}

.btn--primary:disabled {
    background: var(--color-border-strong);
    cursor: not-allowed;
    box-shadow: none;
}

.btn--secondary {
    background: #ffffff;
    color: var(--faj-blue);
    border: 1.5px solid var(--faj-blue);
    box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
    background: var(--faj-blue-tint);
    box-shadow: var(--shadow-md);
}

.btn--secondary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(10, 42, 94, 0.18);
}

.btn--secondary:active {
    transform: translateY(1px);
}

/* Botão como <a> — remover sublinhado e alinhar como bloco */
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}

/* ---------- Página de sucesso (obrigado.html) ---------- */
.success-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 56px 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.success-card__icon {
    width: 88px;
    height: 88px;
    color: var(--faj-blue);
    background: var(--faj-blue-tint);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 4px;
    animation: successPop 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.success-card__icon svg {
    width: 60%;
    height: 60%;
    display: block;
}

@keyframes successPop {
    0%   { transform: scale(0.6); opacity: 0; }
    60%  { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.success-card__title {
    font-family: 'Just Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 3.4vw, 32px);
    line-height: 1.2;
    color: var(--faj-blue);
    margin: 0;
    letter-spacing: -0.015em;
}

.success-card__text {
    font-size: 16px;
    color: var(--color-text-soft);
    line-height: 1.6;
    margin: 0;
    max-width: 460px;
}

.success-card__text--soft {
    font-size: 14.5px;
    color: var(--color-muted);
}

.success-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    width: 100%;
}

.success-card__actions .btn {
    min-width: 200px;
}

/* ---------- Status message ---------- */
.form-status {
    display: none;
    font-size: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    line-height: 1.45;
    text-align: center;
}

.form-status.is-visible {
    display: block;
}

.form-status.is-info {
    background: var(--faj-blue-tint);
    color: var(--faj-blue-dark);
    border: 1px solid rgba(10, 42, 94, 0.15);
}

.form-status.is-error {
    background: #fdecea;
    color: var(--color-error);
    border: 1px solid rgba(192, 57, 43, 0.2);
}

.form-status.is-success {
    background: #e6f6ec;
    color: var(--color-success);
    border: 1px solid rgba(30, 143, 78, 0.2);
}

/* ---------- Site footer ---------- */
.site-footer {
    background: var(--faj-blue-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 24px;
    text-align: center;
    font-size: 13px;
}

.footer-container {
    max-width: 1120px;
    margin: 0 auto;
}

.footer-container p {
    margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .site-header {
        padding: 24px 20px;
    }

    .logo {
        height: 42px;
    }

    .main-content {
        padding: 32px 16px 48px;
    }

    .form-card__header,
    .form-body,
    .form-footer {
        padding-left: 22px;
        padding-right: 22px;
    }

    .form-card__header {
        padding-top: 26px;
        padding-bottom: 20px;
    }

    .form-body {
        padding-top: 24px;
        padding-bottom: 24px;
        gap: 22px;
    }

    .form-footer {
        padding-bottom: 28px;
    }

    .form-card__title {
        font-size: 19px;
    }

    .btn--primary {
        width: 100%;
        padding: 15px 20px;
    }

    .form-footer .btn--primary {
        min-width: 0;
    }

    .option-item {
        padding: 12px;
    }

    .success-card {
        padding: 40px 24px;
    }

    .success-card__icon {
        width: 76px;
        height: 76px;
    }

    .success-card__actions {
        flex-direction: column;
    }

    .success-card__actions .btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 380px) {
    .form-card__header,
    .form-body,
    .form-footer {
        padding-left: 18px;
        padding-right: 18px;
    }
}
