/* Importando fonte */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: linear-gradient(135deg, #00416A 0%, #002B45 100%);
    min-height: 100vh;
    padding: 30px 20px;
}

/* Container principal */
.container {
    max-width: 850px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 65, 106, 0.3);
    padding: 30px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Logo */
.logo {
    display: block;
    max-width: 150px;
    margin: 0 auto 25px;
}

/* Título principal */
.titulo {
    text-align: center;
    color: #00416A;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #FFD700;
}

/* Ícones das abas */
.tab-buttons {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    padding: 8px;
    background: #f0f7ff;
    border-radius: 40px;
    border: 1px solid #00416A;
}

.tab-icon {
    font-size: 22px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
    opacity: 0.6;
    color: #00416A;
}

.tab-icon.active {
    opacity: 1;
    background: #00416A;
    color: #FFD700;
    box-shadow: 0 4px 10px rgba(0, 65, 106, 0.3);
}

.tab-icon:hover {
    opacity: 0.8;
    background: rgba(0, 65, 106, 0.1);
}

/* Abas */
.tab {
    display: none;
}

.tab.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab h2 {
    color: #00416A;
    font-size: 1.3em;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #FFD700;
    font-weight: 600;
}

/* Labels */
label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #00416A;
    font-size: 0.9em;
}

/* Inputs, Selects e Textareas */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 16px;
    font-size: 0.95em;
    font-family: 'Inter', Arial, sans-serif;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 5px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #00416A;
    box-shadow: 0 0 0 3px rgba(0, 65, 106, 0.1);
}

select {
    height: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300416A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Container dos botões */
.button-container {
    display: flex;
    gap: 15px;
    margin: 25px 0 20px;
}

/* Botões */
#btn-back,
#btn-next,
input[type="submit"] {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', Arial, sans-serif;
}

#btn-back {
    background: #6c757d;
    color: white;
}

#btn-back:hover {
    background: #5a6268;
}

#btn-next {
    background: #00416A;
    color: white;
}

#btn-next:hover {
    background: #002B45;
}

input[type="submit"] {
    background: #FFD700;
    color: #00416A;
    font-weight: 700;
}

input[type="submit"]:hover {
    background: #E5C100;
}

/* Checkbox de termos */
.checkbox-termos {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 18px;
    border: 1px solid #00416A;
    font-size: 0.9em;
    line-height: 1.5;
    color: #333;
}

.checkbox-termos input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1);
    accent-color: #00416A;
    cursor: pointer;
}

/* Mensagem de sucesso */
#successMessage {
    text-align: center;
    padding: 20px;
    background: #d4edda;
    color: #155724;
    border-radius: 18px;
    margin-top: 20px;
    border: 2px solid #c3e6cb;
}

#successMessage h2 {
    color: #155724;
    margin-bottom: 10px;
    font-size: 1.3em;
}

/* Footer */
.footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #00416A;
}

.creditos {
    text-align: center;
    color: #00416A;
    font-size: 0.85em;
    line-height: 1.5;
    opacity: 0.8;
}

/* Placeholder */
::placeholder {
    color: #aaa;
    font-style: italic;
    font-size: 0.9em;
}

/* Responsividade */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 20px;
    }

    .titulo {
        font-size: 1.5em;
    }

    .tab-buttons {
        flex-wrap: wrap;
        gap: 5px;
    }

    .tab-icon {
        font-size: 18px;
        padding: 6px 12px;
    }

    .button-container {
        flex-direction: column;
        gap: 10px;
    }

    #btn-back,
    #btn-next,
    input[type="submit"] {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .titulo {
        font-size: 1.3em;
    }

    .tab h2 {
        font-size: 1.1em;
    }

    label {
        font-size: 0.85em;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        padding: 8px 10px;
        font-size: 0.9em;
    }
}

/* Estilo para campos obrigatórios */
label:has(+ input[required])::after,
label:has(+ select[required])::after,
label:has(+ textarea[required])::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Ajuste para campos de endereço */
#endereco, #numero, #bairro, #cep {
    margin-bottom: 10px;
}

/* Visual publico Novalar */
:root {
    --novalar-blue: #004b93;
    --novalar-blue-dark: #032f63;
    --novalar-yellow: #ffd200;
    --novalar-yellow-soft: #fff4b8;
    --ink: #102033;
    --muted: #64748b;
    --line: #d9e2ef;
    --surface: #ffffff;
    --surface-soft: #f6f9fd;
}

body {
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 210, 0, 0.28), transparent 26rem),
        radial-gradient(circle at 85% 12%, rgba(46, 126, 201, 0.32), transparent 24rem),
        linear-gradient(135deg, var(--novalar-blue-dark) 0%, var(--novalar-blue) 48%, #0b5fb0 100%);
    color: var(--ink);
    padding: 24px;
}

.page-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.hero-publico {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
    align-items: stretch;
    margin-bottom: 18px;
}

.hero-copy,
.hero-brand-card,
.container {
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 18px 45px rgba(1, 31, 67, 0.28);
}

.hero-copy {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(246,249,253,0.94));
    border-radius: 26px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.hero-copy::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(255, 210, 0, 0.2);
}

.logo {
    max-width: 138px;
    margin: 0 0 18px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--novalar-blue);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-eyebrow::before {
    content: "";
    width: 26px;
    height: 4px;
    border-radius: 99px;
    background: var(--novalar-yellow);
}

.titulo {
    text-align: left;
    color: var(--novalar-blue-dark);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    margin: 10px 0 12px;
    padding: 0;
    border: 0;
}

.hero-copy p {
    max-width: 720px;
    color: #31445f;
    font-size: 1rem;
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}

.hero-badges span {
    background: #eef6ff;
    color: var(--novalar-blue-dark);
    border: 1px solid #cfe3fb;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-brand-card {
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 210, 0, 0.94), rgba(255, 223, 64, 0.9)),
        var(--novalar-yellow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: 20px;
    color: var(--novalar-blue-dark);
}

.brand-mark {
    width: 118px;
    height: 118px;
    object-fit: contain;
    margin-bottom: 12px;
}

.hero-brand-card strong {
    font-size: 1.45rem;
    line-height: 1;
}

.hero-brand-card span {
    margin-top: 6px;
    font-weight: 700;
    font-size: 0.9rem;
}

.container {
    max-width: none;
    background: rgba(255,255,255,0.98);
    border-radius: 24px;
    padding: 22px;
    border-color: rgba(255, 210, 0, 0.32);
}

.container > .titulo {
    display: none;
}

.form-title {
    color: var(--novalar-blue-dark);
    font-size: 1.15rem;
    margin-bottom: 14px;
}

.tab-buttons {
    justify-content: stretch;
    gap: 8px;
    margin-bottom: 22px;
    padding: 8px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 22px;
}

.tab-icon {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0;
    opacity: 1 !important;
}

.tab-icon::before {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf3ff;
    color: var(--novalar-blue);
    font-size: 0.82rem;
    font-weight: 900;
}

.tab-icon::after {
    color: inherit;
    font-size: 0.78rem;
    font-weight: 800;
}

.tab-icon:nth-child(1)::before { content: "1"; }
.tab-icon:nth-child(2)::before { content: "2"; }
.tab-icon:nth-child(3)::before { content: "3"; }
.tab-icon:nth-child(4)::before { content: "4"; }
.tab-icon:nth-child(5)::before { content: "5"; }
.tab-icon:nth-child(6)::before { content: "6"; }
.tab-icon:nth-child(1)::after { content: "Dados"; }
.tab-icon:nth-child(2)::after { content: "Endereço"; }
.tab-icon:nth-child(3)::after { content: "Referência"; }
.tab-icon:nth-child(4)::after { content: "Experiência"; }
.tab-icon:nth-child(5)::after { content: "Formação"; }
.tab-icon:nth-child(6)::after { content: "Sobre você"; }

.tab-icon.active,
.tab-icon[style*="opacity: 1"] {
    background: var(--novalar-blue);
    color: #fff;
    border-color: var(--novalar-blue);
    box-shadow: 0 8px 18px rgba(0, 75, 147, 0.18);
}

.tab-icon.active::before,
.tab-icon[style*="opacity: 1"]::before {
    background: var(--novalar-yellow);
    color: var(--novalar-blue-dark);
}

.tab {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
}

.tab h2 {
    color: var(--novalar-blue-dark);
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
    margin-bottom: 18px;
    font-size: 1.05rem;
}

label {
    color: #1f3551;
    margin-top: 14px;
    font-size: 0.86rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    background: #fbfdff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: var(--novalar-blue);
    box-shadow: 0 0 0 4px rgba(0, 75, 147, 0.12);
    background: #fff;
}

#btn-back,
#btn-next,
input[type="submit"] {
    border-radius: 999px;
}

#btn-back {
    background: #e8eef6;
    color: #263b55;
}

#btn-next {
    background: var(--novalar-blue);
}

input[type="submit"] {
    background: var(--novalar-yellow);
    color: var(--novalar-blue-dark);
}

.checkbox-termos {
    border-color: #cfe3fb;
    background: #f2f8ff;
}

.footer {
    border-top: 1px solid var(--line);
}

.creditos {
    color: rgba(255, 255, 255, 0.82);
}

.container .creditos {
    color: var(--novalar-blue-dark);
}

@media (max-width: 820px) {
    .hero-publico {
        grid-template-columns: 1fr;
    }

    .hero-brand-card {
        min-height: auto;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
    }

    .brand-mark {
        width: 72px;
        height: 72px;
        margin: 0;
    }

    .tab-buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 520px) {
    body {
        padding: 12px;
    }

    .hero-copy,
    .container {
        padding: 16px;
    }

    .hero-brand-card {
        display: none;
    }

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

    .tab-icon {
        padding: 8px 6px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 0;
        background: #f3f7fc;
    }

    .page-shell {
        width: 100%;
    }

    .hero-publico {
        display: block;
        margin: 0;
    }

    .hero-copy {
        border-radius: 0 0 28px 28px;
        padding: 18px 16px 20px;
        box-shadow: 0 10px 24px rgba(1, 31, 67, 0.16);
    }

    .logo {
        max-width: 112px;
        margin-bottom: 12px;
    }

    .hero-eyebrow {
        font-size: 0.68rem;
    }

    .hero-eyebrow::before {
        width: 18px;
    }

    .titulo {
        font-size: 2rem;
        margin: 8px 0;
    }

    .hero-copy p {
        font-size: 0.9rem;
        line-height: 1.42;
    }

    .hero-badges {
        gap: 6px;
        margin-top: 12px;
    }

    .hero-badges span {
        padding: 6px 9px;
        font-size: 0.72rem;
    }

    .container {
        margin: 12px;
        padding: 12px;
        border-radius: 22px;
        box-shadow: 0 8px 24px rgba(1, 31, 67, 0.1);
    }

    .container > .titulo {
        display: none;
    }

    .tab-buttons {
        position: sticky;
        top: 0;
        z-index: 5;
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
        padding: 8px;
        margin: -4px -4px 14px;
        border-radius: 18px;
        background: rgba(246, 249, 253, 0.96);
        backdrop-filter: blur(8px);
    }

    .tab-icon {
        min-width: 0;
        min-height: 42px;
        padding: 6px;
        border-radius: 999px;
        font-size: 0;
        gap: 0;
    }

    .tab-icon::before {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        font-size: 0;
        background: #eaf3ff;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 17px;
    }

    .tab-icon::after {
        display: none;
    }

    .tab-icon:nth-child(1)::before {
        content: "";
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23004b93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    }

    .tab-icon:nth-child(2)::before {
        content: "";
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23004b93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E");
    }

    .tab-icon:nth-child(3)::before {
        content: "";
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23004b93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
    }

    .tab-icon:nth-child(4)::before {
        content: "";
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23004b93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 7V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E");
    }

    .tab-icon:nth-child(5)::before {
        content: "";
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23004b93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 10-10-5-10 5 10 5 10-5Z'/%3E%3Cpath d='M6 12v5c3 2 9 2 12 0v-5'/%3E%3C/svg%3E");
    }

    .tab-icon:nth-child(6)::before {
        content: "";
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23004b93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H7l-4 4V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/svg%3E");
    }

    .tab-icon[style*="opacity: 0.5"] {
        background: #fff;
        color: #7b8ca3;
    }

    .tab-icon.active::before,
    .tab-icon[style*="opacity: 1"]::before {
        background-color: var(--novalar-yellow);
    }

    .tab.active {
        border: 0;
        padding: 4px 2px 8px;
        background: transparent;
    }

    .tab h2 {
        position: relative;
        border: 0;
        margin: 4px 0 14px;
        padding: 0 0 0 14px;
        font-size: 1rem;
        line-height: 1.25;
    }

    .tab h2::before {
        content: "";
        position: absolute;
        left: 0;
        top: 2px;
        bottom: 2px;
        width: 5px;
        border-radius: 999px;
        background: var(--novalar-yellow);
    }

    label {
        margin-top: 12px;
        margin-bottom: 6px;
        font-size: 0.82rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        min-height: 46px;
        padding: 12px 13px;
        font-size: 16px;
        border-radius: 14px;
    }

    textarea {
        min-height: 108px;
    }

    .button-container {
        position: sticky;
        bottom: 0;
        z-index: 6;
        display: flex;
        margin: 18px -12px -12px;
        padding: 10px 12px 12px;
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid var(--line);
        box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
    }

    #btn-back,
    #btn-next,
    input[type="submit"] {
        min-height: 48px;
        font-size: 0.88rem;
    }

    .checkbox-termos {
        margin-top: 16px;
        padding: 12px;
        font-size: 0.78rem;
        border-radius: 16px;
    }

    .footer {
        margin-top: 18px;
        padding-top: 12px;
    }
}
