/* =======================================================
   Boas-Vindas (WF-21) — Pixel match Figma + Responsive Sizing
   ======================================================= */

.kyc-card--boasvindas {
    flex-direction: column;
    display: flex;
    overflow: hidden;
}

/* Header com gradiente linear */
.kyc-boasvindas-header {
    background: linear-gradient(180deg, #0EA5E9 0%, #C5C5C5 100%);
    border-radius: 10px;
    margin: 17.5px 17.5px 0;
    height: 226px;
    min-height: 160px;
    padding: 0 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    position: relative;
}

.kyc-boasvindas-header .kyc-culture-slot--boasvindas {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    z-index: 2;
}

.kyc-boasvindas-title {
    margin: 0;
    font-family: 'Work Sans', 'Inter', system-ui, sans-serif;
    font-size: 40.96px;
    font-weight: 600;
    line-height: 53.76px;
    color: #FFFFFF;
    text-align: center;
}

.kyc-boasvindas-subtitle {
    margin: 6px 0 0;
    font-family: 'Work Sans', 'Inter', system-ui, sans-serif;
    font-size: 25.6px;
    font-weight: 400;
    line-height: 30.03px;
    color: #FFFFFF;
    text-align: center;
}

/* Body: usa margens automáticas para centralizar verticalmente quando couber,
   mas rolar a partir do topo sem cortar nada quando o espaço for menor */
.kyc-boasvindas-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 40px 32px;
    box-sizing: border-box;
    text-align: center;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.kyc-boasvindas-instruction {
    margin: auto 0 28px;
    font-family: 'Work Sans', 'Inter', system-ui, sans-serif;
    font-size: 25.6px;
    font-weight: 500;
    line-height: 30px;
    color: #555555;
    flex-shrink: 0;
}

/* Container de Opções: opção | divisor | opção */
.kyc-boasvindas-options {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    gap: 0;
    margin-bottom: auto;
}

.kyc-boasvindas-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin: 0;
    padding: 0 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Work Sans', 'Inter', system-ui, sans-serif;
    color: #1F2937;
    min-height: 0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.kyc-boasvindas-option:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.kyc-boasvindas-option:focus-visible {
    outline: 2px solid #0EA5E9;
    outline-offset: 4px;
    border-radius: 8px;
}

.kyc-boasvindas-circle {
    width: 192px;
    height: 192px;
    border-radius: 50%;
    border: 2.82px dashed #0EA5E9;
    background: #FCFCFC;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.kyc-boasvindas-option:hover .kyc-boasvindas-circle {
    background: #FFFFFF;
    border-color: #0284C7;
}

.kyc-boasvindas-circle-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
}

.kyc-boasvindas-circle-icon--jr {
    width: 87px;
    height: 49px;
}

/* Labels com texto formatado */
.kyc-boasvindas-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    text-align: center;
}

.kyc-boasvindas-label-line1 {
    display: block;
    font-size: 28.07px;
    font-weight: 300;
    line-height: 31.97px;
    color: #1F2937;
    text-align: center;
}

.kyc-boasvindas-label-line2,
.kyc-boasvindas-label-line3 {
    display: block;
    font-size: 28.07px;
    font-weight: 600;
    line-height: 31.97px;
    color: #1F2937;
    text-align: center;
}

/* Divisor vertical central */
.kyc-boasvindas-divider {
    width: 1px;
    height: 116px;
    background: #D1D5DB;
    margin-top: 38px;
    align-self: flex-start;
    flex-shrink: 0;
}

/* =======================================================
   Ajuste para Alturas Baixas no Desktop / DevTools aberto (height ≤ 760px)
   ======================================================= */
@media (min-width: 768px) and (max-height: 760px) {
    .kyc-boasvindas-header {
        height: 170px;
        min-height: 170px;
        margin: 12px 12px 0;
        padding: 0 20px;
    }

    .kyc-boasvindas-title {
        font-size: 30px;
        line-height: 38px;
    }

    .kyc-boasvindas-subtitle {
        font-size: 18px;
        line-height: 22px;
        margin-top: 4px;
    }

    .kyc-boasvindas-body {
        padding: 14px 24px 20px;
    }

    .kyc-boasvindas-instruction {
        font-size: 20px;
        line-height: 24px;
        margin: auto 0 16px;
    }

    .kyc-boasvindas-option {
        gap: 12px;
    }

    .kyc-boasvindas-circle {
        width: 140px;
        height: 140px;
        border-width: 2.2px;
    }

    .kyc-boasvindas-circle-icon {
        width: 60px;
        height: 60px;
    }

    .kyc-boasvindas-circle-icon--jr {
        width: 68px;
        height: 38px;
    }

    .kyc-boasvindas-label-line1,
    .kyc-boasvindas-label-line2,
    .kyc-boasvindas-label-line3 {
        font-size: 20px;
        line-height: 24px;
    }

    .kyc-boasvindas-divider {
        height: 90px;
        margin-top: 25px;
    }
}

/* Alturas ainda mais baixas (height ≤ 640px) */
@media (min-width: 768px) and (max-height: 640px) {
    .kyc-boasvindas-header {
        height: 140px;
        min-height: 140px;
        margin: 10px 10px 0;
    }

    .kyc-boasvindas-title {
        font-size: 24px;
        line-height: 30px;
    }

    .kyc-boasvindas-subtitle {
        font-size: 15px;
        line-height: 18px;
    }

    .kyc-boasvindas-body {
        padding: 10px 20px 16px;
    }

    .kyc-boasvindas-instruction {
        font-size: 17px;
        line-height: 20px;
        margin: auto 0 12px;
    }

    .kyc-boasvindas-circle {
        width: 116px;
        height: 116px;
    }

    .kyc-boasvindas-circle-icon {
        width: 50px;
        height: 50px;
    }

    .kyc-boasvindas-circle-icon--jr {
        width: 56px;
        height: 32px;
    }

    .kyc-boasvindas-label-line1,
    .kyc-boasvindas-label-line2,
    .kyc-boasvindas-label-line3 {
        font-size: 16px;
        line-height: 20px;
    }

    .kyc-boasvindas-divider {
        height: 75px;
        margin-top: 20px;
    }
}

/* ========================================
   Mobile Layout (Figma node 40013134:336915)
   ======================================== */
@media (max-width: 767px) {
    .kyc-card--boasvindas {
        border-radius: 0;
        min-height: 100vh;
        height: auto;
    }

    .kyc-boasvindas-header {
        margin: 10px 10px 0;
        border-radius: 6px;
        height: auto;
        min-height: 190px;
        padding: 30px 16px;
        box-sizing: border-box;
    }

    .kyc-boasvindas-title {
        font-size: 28px;
        line-height: 36px;
        font-weight: 600;
    }

    .kyc-boasvindas-subtitle {
        font-size: 14.1px;
        line-height: 17px;
        margin-top: 8px;
        font-weight: 400;
    }

    .kyc-boasvindas-body {
        padding: 24px 12px 32px;
        justify-content: flex-start;
    }

    .kyc-boasvindas-instruction {
        font-size: 18.1px;
        line-height: 22px;
        margin: 0 0 24px;
        font-weight: 500;
    }

    /* No Figma Mobile, as opções ficam lado a lado (horizontal) */
    .kyc-boasvindas-options {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        width: 100%;
        gap: 6px;
        padding: 0 4px;
        box-sizing: border-box;
        margin-bottom: 0;
    }

    .kyc-boasvindas-option {
        flex: 1;
        min-width: 0;
        min-height: 0;
        padding: 0 4px;
        gap: 12px;
    }

    .kyc-boasvindas-circle {
        width: 136px;
        height: 136px;
        max-width: 38vw;
        max-height: 38vw;
        border-width: 2px;
    }

    .kyc-boasvindas-circle-icon {
        width: 56px;
        height: 56px;
        max-width: 45%;
        max-height: 45%;
    }

    .kyc-boasvindas-circle-icon--jr {
        width: 61px;
        height: 34px;
        max-width: 50%;
        max-height: 30%;
    }

    .kyc-boasvindas-label-line1 {
        font-size: 17px;
        line-height: 20px;
    }

    .kyc-boasvindas-label-line2,
    .kyc-boasvindas-label-line3 {
        font-size: 17px;
        line-height: 20px;
        font-weight: 600;
    }

    .kyc-boasvindas-divider {
        width: 1px;
        height: 116px;
        margin-top: 10px;
        align-self: flex-start;
        flex-shrink: 0;
    }
}

/* Telas muito pequenas (ex: < 360px) */
@media (max-width: 360px) {
    .kyc-boasvindas-circle {
        width: 110px;
        height: 110px;
    }

    .kyc-boasvindas-label-line1,
    .kyc-boasvindas-label-line2,
    .kyc-boasvindas-label-line3 {
        font-size: 14px;
        line-height: 17px;
    }
}

/* Tablet (768px - 1024px com altura normal) */
@media (min-width: 768px) and (max-width: 1024px) and (min-height: 761px) {
    .kyc-boasvindas-header {
        margin: 14px 14px 0;
        height: 200px;
        min-height: 200px;
    }

    .kyc-boasvindas-title {
        font-size: 34px;
        line-height: 44px;
    }

    .kyc-boasvindas-subtitle {
        font-size: 20px;
        line-height: 24px;
    }

    .kyc-boasvindas-instruction {
        font-size: 20px;
        line-height: 24px;
    }

    .kyc-boasvindas-circle {
        width: 160px;
        height: 160px;
    }

    .kyc-boasvindas-label-line1,
    .kyc-boasvindas-label-line2,
    .kyc-boasvindas-label-line3 {
        font-size: 22px;
        line-height: 26px;
    }
}