
/*
 * Banco Sol — Balcão Online
 * UI V2
 *
 * Escopo isolado em .bo-page para não afectar
 * outras páginas do portal.
 */

.bo-page {
    --bo-yellow: #ffc800;
    --bo-yellow-soft: #fff8da;
    --bo-yellow-border: #f0c500;

    --bo-dark: #17191c;
    --bo-text: #363a40;
    --bo-muted: #737982;

    --bo-border: #e7e9ed;
    --bo-bg: #f7f8fa;
    --bo-white: #ffffff;

    --bo-radius: 14px;

    background: var(--bo-bg);
    color: var(--bo-text);

    font-size: 15px;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.bo-container {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
}

.bo-section {
    padding: 44px 0 52px;
}

.bo-section-white {
    background: var(--bo-white);
}


/* =========================================================
   CABEÇALHO DA SECÇÃO
   ========================================================= */

.bo-heading {
    max-width: 680px;
    margin: 0 auto 30px;
    text-align: center;
}

.bo-eyebrow {
    margin: 0 0 6px;

    color: #866b00;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bo-heading h2 {
    margin: 0 0 9px;

    color: var(--bo-dark);

    font-size: clamp(24px, 2.7vw, 32px);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.bo-heading p {
    margin: 0;

    color: var(--bo-muted);

    font-size: 15px;
    line-height: 1.55;
}


/* =========================================================
   SERVIÇOS
   ========================================================= */

.bo-services {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}

.bo-service-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 245px;

    padding: 22px;

    overflow: hidden;

    border: 1px solid var(--bo-border);
    border-radius: var(--bo-radius);

    background: var(--bo-white);

    box-shadow:
        0 8px 25px rgba(20, 25, 35, .035);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.bo-service-card:hover,
.bo-service-card.is-selected {
    transform: translateY(-3px);

    border-color: var(--bo-yellow-border);

    box-shadow:
        0 14px 34px rgba(20, 25, 35, .07);
}

.bo-service-card.is-selected::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background: var(--bo-yellow);
}


/* =========================================================
   ÍCONES
   ========================================================= */

.bo-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    margin-bottom: 17px;

    border-radius: 11px;

    background: var(--bo-yellow-soft);
    color: #806600;
}

.bo-icon svg {
    width: 22px;
    height: 22px;
}


/* =========================================================
   TEXTO DOS CARTÕES
   ========================================================= */

.bo-service-card h3 {
    margin: 0 0 7px;

    color: var(--bo-dark);

    font-size: 17px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.bo-service-card p {
    flex: 1;

    margin: 0 0 18px;

    color: var(--bo-muted);

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   BOTÕES DOS CARTÕES
   ========================================================= */

.bo-card-action {
    width: 100%;
    min-height: 42px;

    padding: 0 15px;

    border: 0;
    border-radius: 9px;

    background: #1c1d1f;
    color: #fff;

    font-size: 13px;
    font-weight: 750;

    cursor: pointer;

    transition:
        background .18s ease,
        color .18s ease;
}

.bo-service-card:hover .bo-card-action,
.bo-service-card.is-selected .bo-card-action {
    background: var(--bo-yellow);
    color: #171717;
}


/* =========================================================
   FLUXO
   ========================================================= */

.bo-flow {
    display: none;
}

.bo-flow.is-visible {
    display: block;
}


/* =========================================================
   PAINEL
   ========================================================= */

.bo-panel {
    max-width: 860px;
    margin: 0 auto;

    overflow: hidden;

    border: 1px solid var(--bo-border);
    border-radius: 16px;

    background: var(--bo-white);

    box-shadow:
        0 12px 36px rgba(20, 25, 35, .05);
}

.bo-panel-head {
    padding: 23px 27px 20px;

    border-bottom: 1px solid var(--bo-border);
}

.bo-panel-head h3 {
    margin: 0 0 5px;

    color: var(--bo-dark);

    font-size: 20px;
    font-weight: 750;
}

.bo-panel-head p {
    margin: 0;

    color: var(--bo-muted);

    font-size: 14px;
    line-height: 1.5;
}

.bo-panel-body {
    padding: 25px 27px 28px;
}


/* =========================================================
   LABELS
   ========================================================= */

.bo-label {
    display: block;

    margin-bottom: 8px;

    color: var(--bo-dark);

    font-size: 13px;
    font-weight: 750;
}


/* =========================================================
   TIPO DE CLIENTE
   ========================================================= */

.bo-choice-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 25px;
}

.bo-choice {
    position: relative;
}

.bo-choice input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.bo-choice label {
    min-height: 70px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 15px;

    border: 1px solid var(--bo-border);
    border-radius: 11px;

    background: #fff;

    cursor: pointer;

    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.bo-choice label:hover {
    border-color: #d8bd47;
}

.bo-choice input:checked + label {
    border-color: var(--bo-yellow-border);

    background: #fffdf5;

    box-shadow:
        0 0 0 2px rgba(255, 200, 0, .08);
}

.bo-choice-title {
    display: block;

    color: var(--bo-dark);

    font-size: 14px;
    font-weight: 750;
}

.bo-choice-note {
    display: block;

    margin-top: 2px;

    color: var(--bo-muted);

    font-size: 12px;
}

.bo-badge {
    display: inline-flex;
    align-items: center;

    min-height: 20px;

    margin-left: auto;

    padding: 2px 7px;

    border-radius: 100px;

    background: #f1f2f4;
    color: #656b73;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
}


/* =========================================================
   IDENTIFICAÇÃO
   ========================================================= */

.bo-identification {
    padding-top: 23px;

    border-top: 1px solid var(--bo-border);
}

.bo-methods {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin: 10px 0 22px;
}

.bo-method {
    min-height: 88px;

    padding: 15px;

    border: 1px solid var(--bo-border);
    border-radius: 11px;

    background: #fff;

    cursor: pointer;

    text-align: left;

    transition:
        border-color .18s ease,
        background .18s ease;
}

.bo-method:hover,
.bo-method.is-active {
    border-color: var(--bo-yellow-border);
    background: #fffdf5;
}

.bo-method strong {
    display: block;

    margin-bottom: 4px;

    color: var(--bo-dark);

    font-size: 14px;
    font-weight: 750;
}

.bo-method span {
    display: block;

    color: var(--bo-muted);

    font-size: 12px;
    line-height: 1.45;
}


/* =========================================================
   NIF
   ========================================================= */

.bo-nif-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) auto;

    gap: 10px;
}

.bo-input {
    width: 100%;
    min-height: 46px;

    padding: 0 14px;

    border: 1px solid #d2d5da;
    border-radius: 9px;

    background: #fff;
    color: var(--bo-dark);

    font-size: 14px;

    outline: none;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.bo-input:focus {
    border-color: #c2a21d;

    box-shadow:
        0 0 0 3px rgba(255, 200, 0, .10);
}

.bo-input::placeholder {
    color: #a0a5ad;
}

.bo-primary {
    min-height: 46px;

    padding: 0 20px;

    border: 0;
    border-radius: 9px;

    background: var(--bo-yellow);
    color: #161616;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition:
        filter .18s ease,
        transform .18s ease;
}

.bo-primary:hover {
    filter: brightness(.98);
}

.bo-primary:active {
    transform: translateY(1px);
}

.bo-help {
    margin: 7px 0 0;

    color: var(--bo-muted);

    font-size: 11px;
    line-height: 1.45;
}


/* =========================================================
   ESTADO
   ========================================================= */

.bo-status {
    display: none;

    margin-top: 14px;

    padding: 12px 14px;

    border-radius: 9px;

    font-size: 13px;
    line-height: 1.45;
}

.bo-status.is-info {
    display: block;

    background: #f4f6f8;
    color: #444a52;
}

.bo-status.is-success {
    display: block;

    background: #eef8f2;
    color: #17663e;

    border: 1px solid #caead7;
}

.bo-status.is-error {
    display: block;

    background: #fff1f1;
    color: #a72a2a;

    border: 1px solid #f0cccc;
}


/* =========================================================
   SEGURANÇA
   ========================================================= */

.bo-security {
    margin-top: 22px;

    display: flex;

    gap: 10px;

    padding: 14px;

    border-radius: 10px;

    background: #f7f8f9;

    color: var(--bo-muted);

    font-size: 11px;
    line-height: 1.5;
}

.bo-security strong {
    color: var(--bo-dark);

    font-size: 12px;
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 980px) {

    .bo-services {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 650px) {

    .bo-container {
        width: min(100% - 24px, 1160px);
    }

    .bo-section {
        padding: 34px 0 40px;
    }

    .bo-heading {
        margin-bottom: 24px;
    }

    .bo-heading h2 {
        font-size: 25px;
    }

    .bo-heading p {
        font-size: 14px;
    }

    .bo-services,
    .bo-choice-grid,
    .bo-methods,
    .bo-nif-row {
        grid-template-columns: 1fr;
    }

    .bo-service-card {
        min-height: 0;

        padding: 19px;
    }

    .bo-panel-head,
    .bo-panel-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .bo-primary {
        width: 100%;
    }

}



/* ============================================================
   BALCÃO ONLINE — CONTACTO / OTP
   ============================================================ */

.bo-contact-step[hidden],
.bo-otp-area[hidden] {
    display: none !important;
}

.bo-contact-step {
    margin-top: 22px;
}

.bo-step-divider {
    height: 1px;
    margin: 0 0 22px;
    background: var(--bo-border);
}

.bo-contact-step h4 {
    margin: 0 0 6px;
    color: var(--bo-dark);
    font-size: 17px;
    font-weight: 750;
}

.bo-step-text {
    margin: 0 0 18px;
    color: var(--bo-muted);
    font-size: 13px;
    line-height: 1.5;
}

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

.bo-contact-actions {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 14px;
}

.bo-small-note {
    color: var(--bo-muted);
    font-size: 11px;
    line-height: 1.4;
}

.bo-otp-area {
    margin-top: 20px;
    padding: 17px;
    border: 1px solid var(--bo-border);
    border-radius: 11px;
    background: #fafbfc;
}

.bo-otp-row {
    display: grid;
    grid-template-columns:
        minmax(150px, 220px) auto;
    gap: 10px;
    justify-content: start;
}

.bo-otp-input {
    letter-spacing: .18em;
    font-weight: 700;
    text-align: center;
}

.bo-primary:disabled {
    opacity: .58;
    cursor: not-allowed;
}


@media (max-width: 650px) {

    .bo-contact-grid,
    .bo-otp-row {
        grid-template-columns: 1fr;
    }

    .bo-contact-actions {
        align-items: stretch;
        flex-direction: column;
    }

}



/* ============================================================
   BALCÃO ONLINE — LOCALIZAÇÃO V1
   ============================================================ */

.bo-location-step[hidden] {
    display: none !important;
}

.bo-location-step {
    margin-top: 10px;
}

.bo-location-step h4 {
    margin: 0 0 8px;
    color: #101828;
    font-size: 20px;
    font-weight: 800;
}

.bo-location-grid {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 18px;
    margin-top: 22px;
}

.bo-location-branch {
    grid-column: 1 / -1;
}

.bo-location-grid .bo-input {
    width: 100%;
}

.bo-location-grid select.bo-input {
    cursor: pointer;
    background-color: #fff;
}

.bo-location-grid select.bo-input:disabled {
    cursor: not-allowed;
    opacity: .65;
}

@media (max-width: 767px) {

    .bo-location-grid {
        grid-template-columns: 1fr;
    }

    .bo-location-branch {
        grid-column: auto;
    }
}


/* ============================================================
   BALCÃO ONLINE — DADOS PESSOAIS / MORADA V1
   ============================================================ */

.bo-personal-block,
.bo-address-block {
    margin-top: 28px;
}

.bo-form-section-title {
    margin: 0 0 16px;
    color: #101828;
    font-size: 16px;
    font-weight: 800;
}

.bo-personal-grid,
.bo-address-grid {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 18px;
}

.bo-field-wide {
    grid-column: 1 / -1;
}

.bo-optional {
    color: #667085;
    font-size: 11px;
    font-weight: 500;
}

.bo-personal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.bo-personal-actions .bo-primary {
    min-width: 190px;
}

@media (max-width: 767px) {

    .bo-personal-grid,
    .bo-address-grid {
        grid-template-columns: 1fr;
    }

    .bo-field-wide {
        grid-column: auto;
    }

    .bo-personal-actions {
        justify-content: stretch;
    }

    .bo-personal-actions .bo-primary {
        width: 100%;
    }
}



/* ============================================================
   BALCÃO ONLINE — DOCUMENTOS DE IDENTIFICAÇÃO V1
   ============================================================ */

.bo-document-block {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid #eaecf0;
}

.bo-document-help {
    margin: -6px 0 20px;
    color: #667085;
    font-size: 13px;
    line-height: 1.6;
}

.bo-document-type-row {
    max-width: 460px;
    margin-bottom: 20px;
}

.bo-document-card {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #ffffff;
}

.bo-document-card-title {
    margin-bottom: 14px;
    color: #101828;
    font-size: 14px;
    font-weight: 700;
}

.bo-document-upload {
    margin-top: 14px;
}

.bo-document-overall {
    margin-top: 20px;
}

@media (max-width: 767px) {

    .bo-document-card {
        padding: 16px;
    }

    .bo-document-upload {
        width: 100%;
    }
}



/* ============================================================
   PERSONAL UX V21B
   ============================================================ */

.bo-identification-summary-v21b {
    margin-bottom: 22px;
}

.bo-identification-summary-v21b input {
    background: #f8fafc;
    font-weight: 700;
}

#bo-save-personal + #bo-continue-personal {
    margin-left: 12px;
}

#bo-continue-personal:disabled {
    background: #d0d5dd;
    border-color: #d0d5dd;
    color: #667085;
    cursor: not-allowed;
    opacity: 1;
}

.bo-continue-hint-v21b {
    margin-top: 10px;
    color: #667085;
    font-size: 12px;
}

.bo-resume-v21b {
    padding: 18px 20px;
    margin-bottom: 22px;
    background: #fffaf0;
    border: 1px solid #f2c94c;
    border-radius: 12px;
}

.bo-resume-v21b strong {
    display: block;
    margin-bottom: 7px;
}

.bo-resume-v21b div {
    margin-bottom: 12px;
    color: #475467;
}


@media (max-width: 767px) {

    #bo-save-personal,
    #bo-continue-personal {
        width: 100%;
        margin: 8px 0 0;
    }
}



/* ============================================================
   DOCUMENT CONTINUE V25
   ============================================================ */

.bo-document-actions-v25 {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #eaecf0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.bo-document-message-v25 {
    color: #475467;
    font-size: 14px;
}

#bo-document-continue-v25 {
    min-width: 180px;
}

#bo-document-continue-v25:disabled {
    background: #d0d5dd;
    border-color: #d0d5dd;
    color: #667085;
    cursor: not-allowed;
    opacity: 1;
}

.bo-document-final-v25 {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid #abefc6;
    border-radius: 12px;
    background: #ecfdf3;
}

.bo-document-final-v25 strong {
    display: block;
    margin-bottom: 8px;
    color: #067647;
}

.bo-document-final-v25 p {
    margin: 0;
    color: #344054;
    line-height: 1.55;
}

.bo-document-final-note-v25 {
    margin-top: 12px !important;
    color: #667085 !important;
}


@media (max-width: 767px) {

    .bo-document-actions-v25 {
        flex-direction: column;
        align-items: stretch;
    }

    #bo-document-continue-v25 {
        width: 100%;
    }
}
