body {
    background: #f5f8fa;
}

.ai-header-nav a {
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
}

.ai-top {
    padding: 48px 0 38px;
    background:
        linear-gradient(135deg, #edf7ff 0%, #ffffff 62%, #fff8eb 100%);
}

.ai-back {
    display: inline-flex;
    margin-bottom: 22px;
    color: #0f63aa;
    font-size: 13px;
    font-weight: 800;
}

.ai-top h1 {
    max-width: 760px;
    margin: 9px 0 10px;
    color: #173d5b;
    font-size: clamp(36px, 4.5vw, 54px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.ai-top p {
    max-width: 680px;
    margin: 0;
    color: #647b8c;
    font-size: 16px;
    line-height: 1.55;
}

.ai-content {
    padding: 46px 0 78px;
}

.ai-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.ai-vacancy {
    position: sticky;
    top: 95px;
    padding: 23px;
    border: 1px solid #d9e5ed;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(25, 62, 89, 0.06);
}

.ai-small-label {
    display: block;
    margin-bottom: 16px;
    color: #7b8e9b;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ai-school {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-school-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    padding: 5px;
    overflow: hidden;
    border: 1px solid #e0e8ed;
    border-radius: 14px;
    background: #ffffff;
}

.ai-school-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ai-school strong {
    display: block;
    color: #173f5d;
    font-size: 15px;
}

.ai-school span {
    display: block;
    margin-top: 3px;
    color: #84939e;
    font-size: 10px;
}

.ai-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 19px;
}

.ai-choice-grid div,
.ai-price-box {
    padding: 13px;
    border-radius: 14px;
    background: #f5f8fa;
}

.ai-choice-grid span,
.ai-price-box span {
    display: block;
    color: #81929e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ai-choice-grid strong {
    display: block;
    margin-top: 3px;
    color: #173f5d;
    font-size: 13px;
}

.ai-price-box {
    margin-top: 9px;
}

.ai-price-box.is-enrollment {
    background: #eef6fb;
}

.ai-price-box strong {
    display: block;
    margin-top: 4px;
    color: #143f5f;
    font-size: 21px;
    line-height: 1.1;
}

.ai-price-box small {
    display: block;
    margin-top: 4px;
    color: #168053;
    font-size: 10px;
    font-weight: 800;
}

.ai-change {
    display: inline-flex;
    margin-top: 16px;
    color: #0f63aa;
    font-size: 11px;
    font-weight: 800;
}

.ai-flow-card {
    overflow: hidden;
    border: 1px solid #dbe5ec;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(24, 62, 89, 0.055);
}

.ai-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #e8eef2;
    background: #f8fafb;
}

.ai-progress div {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 16px 18px;
    color: #8797a2;
}

.ai-progress div + div {
    border-left: 1px solid #e8eef2;
}

.ai-progress span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #e9eef2;
    font-size: 10px;
    font-weight: 900;
}

.ai-progress strong {
    font-size: 11px;
}

.ai-progress .is-active {
    color: #0f63a5;
    background: #f2f8fc;
}

.ai-progress .is-active span {
    background: #0f63a5;
    color: #ffffff;
}

.ai-progress .is-done {
    color: #2d7a50;
}

.ai-progress .is-done span {
    background: #e4f3ea;
    color: #2d7a50;
}

.ai-alert {
    margin: 22px 28px 0;
    padding: 13px 15px;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 700;
}

.ai-alert.is-error {
    border: 1px solid #f0c8c4;
    background: #fff1ef;
    color: #9f352c;
}

.ai-step {
    padding: 31px;
}

.ai-step-heading {
    margin-bottom: 25px;
}

.ai-step-heading > span,
.ai-review-heading > span {
    color: #0f63a5;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ai-step-heading h2,
.ai-review-heading h2 {
    margin: 6px 0 5px;
    color: #173f5d;
    font-size: 23px;
    line-height: 1.2;
}

.ai-step-heading p,
.ai-review-heading p {
    margin: 0;
    color: #7a8d9a;
    font-size: 12px;
    line-height: 1.5;
}

.ai-form {
    max-width: 760px;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

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

.ai-field {
    display: block;
}

.ai-field > span {
    display: block;
    margin-bottom: 7px;
    color: #415f73;
    font-size: 13px;
    font-weight: 800;
}

.ai-field > span small {
    color: #8897a1;
    font-size: 9px;
    font-weight: 650;
}

.ai-field input,
.ai-field select,
.ai-field textarea {
    width: 100%;
    border: 1px solid #d7e1e8;
    border-radius: 12px;
    outline: 0;
    background: #fbfcfd;
    color: #203e54;
    font: inherit;
    font-size: 13px;
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.ai-field input,
.ai-field select {
    height: 47px;
    padding: 0 13px;
}

.ai-field textarea {
    min-height: 94px;
    padding: 12px 13px;
    resize: vertical;
}

.ai-field input:focus,
.ai-field select:focus,
.ai-field textarea:focus {
    border-color: #7eb6db;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 99, 170, 0.08);
}

.ai-field input:disabled {
    background: #edf2f5;
    color: #667b8a;
}

.ai-field small {
    display: block;
    margin-top: 5px;
    color: #8b99a3;
    font-size: 9px;
}

.ai-subtitle {
    margin: 28px 0 14px;
    padding-top: 22px;
    border-top: 1px solid #edf1f4;
    color: #173f5d;
    font-size: 13px;
    font-weight: 850;
}

.ai-referral-code[hidden],
.ai-relation-warning[hidden] {
    display: none;
}

.ai-relation-warning {
    padding: 10px 12px;
    border: 1px solid #efc69d;
    border-radius: 10px;
    background: #fff7ed;
    color: #a35c0b !important;
    font-size: 10px !important;
    font-weight: 750;
}

.ai-turnstile {
    margin-top: 21px;
}

.ai-legal {
    margin-top: 18px;
    color: #7a8d9a;
    font-size: 10px;
    line-height: 1.5;
}

.ai-legal a {
    color: #0f63a5;
    font-weight: 800;
}

.ai-button {
    min-height: 47px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 17px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.ai-button-primary {
    background: linear-gradient(135deg, #116ab2, #0e578f);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 94, 160, 0.18);
}

.ai-button-secondary {
    border: 1px solid #d8e2e9;
    background: #ffffff;
    color: #416178;
}

.ai-button-wide {
    width: 100%;
    margin-top: 22px;
}

.ai-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.ai-inline-link {
    display: block;
    margin-top: 16px;
    color: #0f63a5;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.ai-review {
    padding-top: 2px;
}

.ai-review-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 22px 0;
}

.ai-review-list div {
    padding: 13px;
    border-radius: 13px;
    background: #f5f8fa;
}

.ai-review-list span {
    display: block;
    color: #84939e;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.ai-review-list strong {
    display: block;
    margin-top: 4px;
    color: #173f5d;
    font-size: 12px;
}

.ai-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    cursor: pointer;
}

.ai-check input {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin: 1px 0 0;
    accent-color: #0f63a5;
}

.ai-check span {
    color: #607789;
    font-size: 11px;
    line-height: 1.45;
}

.ai-review-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 23px;
}

.ai-success-page {
    min-height: calc(100vh - 76px);
    display: grid;
    place-items: center;
    padding: 60px 20px;
    background:
        linear-gradient(135deg, #edf7ff 0%, #ffffff 60%, #fff8ec 100%);
}

.ai-success-card {
    width: min(760px, 100%);
    padding: 46px;
    border: 1px solid #dbe6ed;
    border-radius: 28px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 22px 55px rgba(20, 62, 91, 0.10);
}

.ai-success-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #eaf7f0;
    color: #168053;
    font-size: 28px;
    font-weight: 900;
}

.ai-success-card .section-kicker {
    justify-content: center;
}

.ai-success-card h1 {
    margin: 9px 0 11px;
    color: #173d5b;
    font-size: clamp(34px, 5vw, 50px);
    letter-spacing: -0.04em;
}

.ai-success-card > p {
    max-width: 590px;
    margin: 0 auto;
    color: #667d8e;
    font-size: 15px;
    line-height: 1.55;
}

.ai-success-data {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 26px;
}

.ai-success-data div {
    padding: 15px;
    border-radius: 14px;
    background: #f5f8fa;
}

.ai-success-data span {
    display: block;
    color: #84939e;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.ai-success-data strong {
    display: block;
    margin-top: 4px;
    color: #173f5d;
    font-size: 13px;
}

.ai-success-note {
    margin-top: 22px;
    padding: 18px;
    border-radius: 15px;
    background: #edf7fc;
    text-align: left;
}

.ai-success-note strong {
    color: #0f619e;
    font-size: 12px;
}

.ai-success-note p {
    margin: 5px 0 0;
    color: #577287;
    font-size: 12px;
    line-height: 1.55;
}

.ai-success-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 23px;
}

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

    .ai-vacancy {
        position: static;
    }
}

@media (max-width: 760px) {
    .ai-header-nav {
        display: none;
    }

    .ai-top {
        padding: 37px 0 30px;
    }

    .ai-top h1 {
        font-size: 37px;
    }

    .ai-content {
        padding: 28px 0 54px;
    }

    .ai-progress strong {
        display: none;
    }

    .ai-progress div {
        justify-content: center;
        padding: 13px 8px;
    }

    .ai-step {
        padding: 24px 20px;
    }

    .ai-grid {
        grid-template-columns: 1fr;
    }

    .ai-full {
        grid-column: auto;
    }

    .ai-review-list {
        grid-template-columns: 1fr;
    }

    .ai-review-actions {
        flex-direction: column-reverse;
    }

    .ai-review-actions .ai-button {
        width: 100%;
    }

    .ai-success-card {
        padding: 32px 20px;
    }

    .ai-success-data {
        grid-template-columns: 1fr;
    }

    .ai-success-actions {
        flex-direction: column;
    }
}

@media (max-width: 440px) {
    .ai-choice-grid {
        grid-template-columns: 1fr;
    }
}


/* Ajustes finais: idade e observação do CPF */
.ai-field > span.ai-label-inline {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.ai-field > span.ai-label-inline em {
    margin: 0;
    color: #8797a2;
    font-size: 9px;
    font-style: normal;
    font-weight: 650;
    text-transform: none;
    white-space: nowrap;
}

.ai-age-display {
    display: block;
    min-height: 20px;
    margin-top: 7px;
    padding: 7px 10px;
    border-radius: 9px;
    background: #eef6fb;
    color: #275c80;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.35;
}

.ai-age-display strong {
    color: #0f63a5;
    font-weight: 850;
}


/* Cadastro novo: localização enxuta */
.ai-field > span small {
    color: #8797a2;
    font-size: 9px;
    font-weight: 650;
    text-transform: none;
}

/* Regras, documentos e como funciona */
.ai-campaign-info {
    overflow: hidden;
    margin-top: 26px;
    border: 1px solid #dbe5ed;
    border-radius: 16px;
    background: #ffffff;
}

.ai-info-tabs {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    border-bottom: 1px solid #dbe5ed;
    background: #f8fafc;
    scrollbar-width: none;
}

.ai-info-tabs::-webkit-scrollbar {
    display: none;
}

.ai-info-tab {
    position: relative;
    flex: 0 0 auto;
    min-width: 120px;
    padding: 15px 18px;
    border: 0;
    background: transparent;
    color: #617485;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ai-info-tab::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: transparent;
    content: "";
}

.ai-info-tab.is-active {
    background: #ffffff;
    color: #173f5f;
}

.ai-info-tab.is-active::after {
    background: #f59b23;
}

.ai-info-panel {
    padding: 22px 24px;
    color: #365166;
    font-size: 13px;
    line-height: 1.65;
}

.ai-info-panel[hidden] {
    display: none;
}

.ai-info-rich > :first-child {
    margin-top: 0 !important;
}

.ai-info-rich > :last-child {
    margin-bottom: 0 !important;
}

.ai-info-rich p,
.ai-info-rich ul,
.ai-info-rich ol {
    margin: 0 0 13px !important;
    color: #365166 !important;
    font-family: inherit !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
}

.ai-info-rich strong,
.ai-info-rich b {
    color: #173f5f !important;
    font-family: inherit !important;
}

.ai-info-rich span {
    font-family: inherit !important;
    font-size: inherit !important;
}

@media (max-width: 640px) {
    .ai-campaign-info {
        margin-top: 20px;
        border-radius: 13px;
    }

    .ai-info-tab {
        min-width: 108px;
        padding: 13px 14px;
        font-size: 11px;
    }

    .ai-info-panel {
        padding: 18px 16px;
        font-size: 12px;
    }

    .ai-info-rich p,
    .ai-info-rich ul,
    .ai-info-rich ol {
        font-size: 12px !important;
    }
}

/* Após a identificação inicial do CPF, o fluxo ocupa toda a largura. */
.ai-layout.is-flow-only {
    grid-template-columns: minmax(0, 1fr);
}

.ai-layout.is-flow-only .ai-flow-card {
    width: 100%;
}

.ai-layout.is-flow-only .ai-form {
    max-width: none;
}

