/* ==================================================================
   Bravo RH — Assistente de Cadastro de Candidatos
   Local do arquivo: public_html/cadastro.css
   Segue o padrão visual de careers.css (cards brancos, sombra suave,
   variáveis --primary / --white / --background do styles.css).
   ================================================================== */

#cadastro-assistido .caw {
    max-width: 520px;
    margin: 20px auto 10px;
}

.caw-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.caw-brand {
    font-weight: 600;
    color: var(--primary, #12326e);
}

.caw-track {
    height: 8px;
    background: #e6eaf2;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0 14px;
}

.caw-bar {
    height: 100%;
    width: 3%;
    background: var(--primary, #1456F0);
    transition: width 0.25s ease;
}

.caw-card {
    background-color: var(--white, #fff);
    border-radius: 8px;
    padding: 28px 22px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-height: 430px;
    display: flex;
    flex-direction: column;
}

.caw-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.caw-ghost {
    background: none;
    border: none;
    color: #666;
    font-size: 15px;
    cursor: pointer;
    padding: 8px 10px;
    font-family: inherit;
}

.caw-ghost:hover {
    color: var(--primary, #1456F0);
}

/* ---------- cabeçalho da pergunta ---------- */

.caw-ico {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(20, 86, 240, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
    flex: none;
}

.caw-ico-lg {
    width: 58px;
    height: 58px;
    font-size: 28px;
    margin-left: auto;
    margin-right: auto;
}

.caw-ico-ok {
    background: rgba(30, 160, 90, 0.12);
}

.caw-qrow {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.caw-q {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary, #12326e);
    line-height: 1.35;
    margin: 0 0 6px;
    flex: 1;
}

.caw-say {
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 17px;
    padding: 5px 10px;
    cursor: pointer;
    flex: none;
    line-height: 1;
}

.caw-say:hover {
    border-color: var(--primary, #1456F0);
}

.caw-sub {
    font-size: 15px;
    color: #666;
    margin: 0 0 14px;
    line-height: 1.5;
}

.caw-hint {
    font-size: 13px;
    color: #999;
    margin: 0 0 20px;
}

/* ---------- opções (botões grandes) ---------- */

.caw-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    font-size: 17px;
    font-family: inherit;
    color: #333;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.caw-opt:hover {
    border-color: var(--primary, #1456F0);
}

.caw-opt:active {
    transform: scale(0.99);
}

.caw-opt.sel {
    border-color: var(--primary, #1456F0);
    background: rgba(20, 86, 240, 0.06);
    color: var(--primary, #12326e);
    font-weight: 600;
}

.caw-opt-dash {
    border-style: dashed;
    color: #555;
}

.caw-emoji {
    font-size: 22px;
    width: 28px;
    text-align: center;
    flex: none;
}

.caw-check {
    margin-left: auto;
    font-weight: 700;
    color: var(--primary, #1456F0);
}

.caw-opt > span:nth-child(2),
.caw-opt > span:only-child {
    flex: 1;
}

/* ---------- entradas de texto ---------- */

.caw-input {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    font-family: inherit;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 14px;
    transition: border-color 0.3s;
}

.caw-input:focus {
    border-color: var(--primary, #1456F0);
    outline: none;
}

.caw-area {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

/* ---------- botão principal (herda .btn do site) ---------- */

.caw-main {
    width: 100%;
    margin-top: auto;
    font-size: 18px;
    padding: 14px;
    cursor: pointer;
}

.caw-main:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* ---------- upload de currículo ---------- */

.caw-file {
    display: block;
    background-color: var(--background, #f7f9fc);
    padding: 22px 16px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
    margin-bottom: 12px;
    font-size: 15px;
    color: #555;
}

.caw-file:hover,
.caw-file.sel {
    border-color: var(--primary, #1456F0);
}

.caw-file .caw-emoji {
    display: block;
    width: auto;
    font-size: 26px;
    margin-bottom: 6px;
}

.caw-file small {
    color: #999;
}

/* ---------- revisão ---------- */

.caw-review {
    border-top: 1px solid #eee;
    margin-top: 4px;
}

.caw-review-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.caw-review-row span {
    color: #666;
    flex: none;
}

.caw-review-row b {
    text-align: right;
    color: #333;
    font-weight: 600;
    word-break: break-word;
}

.caw-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13.5px;
    color: #555;
    line-height: 1.5;
    margin: 14px 0;
    cursor: pointer;
}

.caw-consent input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex: none;
}

/* ---------- mensagens e telas centrais ---------- */

.caw-err {
    color: #c0392b;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    min-height: 0;
}

.caw-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.caw-center .caw-q {
    flex: none;
}

.caw-center .caw-main {
    margin-top: 18px;
}

/* ---------- formulário tradicional (recolhido) ---------- */

details.form-alt {
    margin-top: 34px;
}

details.form-alt > summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    color: var(--primary, #12326e);
    padding: 12px 0;
    list-style-position: inside;
}

details.form-alt > summary:hover {
    text-decoration: underline;
}

/* ---------- responsivo ---------- */

@media (max-width: 480px) {
    .caw-card {
        padding: 22px 16px;
        min-height: 400px;
    }

    .caw-q {
        font-size: 18px;
    }

    .caw-opt {
        font-size: 16px;
        padding: 13px 14px;
    }
}
