/**
 * Padrão visual Bioma — fichas de anamnese (escopo: body.bioma-anamnese)
 * Cor primária: #052d6d
 */

.bioma-anamnese {
    --bioma-navy: #052d6d;
    --bioma-navy-hover: #041f4d;
    --bioma-muted: #6b7280;
    --primary-color: #052d6d;
}

/* Hero: gradiente #052d6d + só padrão gráfico (sem texto na imagem). Título e subtítulo = HTML (.profile-info). */
.bioma-anamnese .jquery-ripples {
    background: linear-gradient(105deg, #041a42 0%, #052d6d 38%, #064080 72%, #052d6d 100%) !important;
}

/*
 * Padrão “digital” (PNG branco sobre preto): mesmo raciocínio da versão navy —
 * screen faz o preto sumir no gradiente; o branco precisa ser baixado em luminância
 * (brightness < 1) para ficar tão suave quanto as linhas azuis escuras da imagem antiga.
 */
.bioma-anamnese .banner-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../../images/bioma/pattern-organic-white.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% auto;
    opacity: 0.4;
    mix-blend-mode: screen;
    filter: brightness(0.56) contrast(1.06) saturate(0.18);
    pointer-events: none;
    z-index: 0;
}

.bioma-anamnese .banner-content .container {
    position: relative;
    z-index: 1;
}

.bioma-anamnese .profile-info {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
}

/* Cápsula “ATIVE SEU KIT” */
.bioma-anamnese .profile-info h1 {
    display: inline-block;
    margin: 0;
    padding: 0.7rem 1.85rem;
    border-radius: 999px;
    background: rgba(0, 17, 48, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 24px rgba(0, 0, 0, 0.18);
    font-size: clamp(1.95rem, 2.8vw, 1.2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    line-height: 1.25;
}

.bioma-anamnese .profile-info h1 span {
    color: #fff;
}

/* Ícone compacto ao lado da primeira palavra (“NÃO”) */
.bioma-anamnese .profile-info h1 .bioma-hero-pill__row {
    display: block;
    text-align: center;
}

.bioma-anamnese .profile-info h1 .bioma-hero-pill__texto {
    display: inline-block;
    text-align: center;
    max-width: 100%;
    line-height: 1.35;
}

.bioma-anamnese .profile-info h1 .bioma-hero-pill__primeira {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    vertical-align: middle;
    white-space: nowrap;
}

.bioma-anamnese .profile-info h1 .bioma-hero-pill__icone {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(1.45rem, 3.8vw, 1.85rem);
    height: clamp(1.45rem, 3.8vw, 1.85rem);
    border-radius: 50%;
    background: #f5e94a;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    color: var(--bioma-navy);
    font-weight: 800;
    font-size: clamp(0.72rem, 2.2vw, 0.95rem);
    line-height: 1;
    padding-bottom: 0.06em;
}

.bioma-anamnese .profile-info > span:not(.wrap) {
    display: block;
    margin-top: 1.35rem;
    font-size: clamp(1.3rem, 2.2vw, 1.08rem);
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.95);
    max-width: 32rem;
}

/* Títulos de secção */
.bioma-anamnese .section-title h1,
.bioma-anamnese .questions h1 {
    color: var(--bioma-navy);
}

.bioma-anamnese .section-title h1:before,
.bioma-anamnese .section-title h1:after {
    background-color: var(--bioma-navy);
}

.bioma-anamnese a:hover {
    color: var(--bioma-navy-hover);
}

/* Círculos numerados (base.min.css) */
.bioma-anamnese .circulo {
    background: var(--bioma-navy) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 28px;
    height: 28px;
    font-size: 13px;
    line-height: 1;
    float: left;
}

/* Formulários */
.bioma-anamnese .form-control,
.bioma-anamnese .form-select {
    border: 1px solid #c5cdd8;
    border-radius: 6px;
}

.bioma-anamnese .form-control:focus {
    border-color: var(--bioma-navy);
    box-shadow: 0 0 0 0.2rem rgba(5, 45, 109, 0.15);
}

.bioma-anamnese #camera1 {
    color: var(--bioma-navy);
}

.bioma-anamnese #camera1 label {
    color: var(--bioma-muted);
}

/* intl-tel-input */
.bioma-anamnese .iti__selected-flag {
    border-radius: 6px 0 0 6px;
}

/* Botão primário / envio */
.bioma-anamnese .btn.btn-primary {
    background-color: var(--bioma-navy) !important;
    border-radius: 8px;
    border: 0;
    font-weight: 600;
}

.bioma-anamnese .btn.btn-primary:before {
    background-image: linear-gradient(130deg, #052d6d 0%, #0d4a8f 50%, #052d6d 100%) !important;
}

.bioma-anamnese .btn.btn-primary:hover {
    background-color: var(--bioma-navy-hover) !important;
}

.bioma-anamnese .btn.btn-primary:hover:before {
    opacity: 0.35;
}

/* Ícone à esquerda (input submit não suporta ::before com FA de forma fiável — SVG inline) */
.bioma-anamnese input.btn.bioma-btn-enviar[type="submit"] {
    padding-left: 3.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512' fill='%23ffffff'%3E%3Cpath d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h306.7L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 1.15rem 50%;
    background-size: 1rem auto;
}

/* CTA instruções de coleta */
.bioma-cta-coleta {
    margin: 1.75rem 0 2rem;
    text-align: center;
}

.bioma-cta-coleta__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.5rem;
    background: var(--bioma-navy);
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none !important;
    max-width: 100%;
    flex-wrap: wrap;
    box-shadow: 0 4px 14px rgba(5, 45, 109, 0.25);
    transition: background 0.2s ease, transform 0.15s ease;
}

.bioma-cta-coleta__link:hover {
    background: var(--bioma-navy-hover);
    color: #fff !important;
    transform: translateY(-1px);
}

.bioma-cta-coleta__icon {
    font-size: 1.15rem;
    opacity: 0.95;
}

/* Termo de consentimento (texto em colunas em ecrãs largos) */
.bioma-anamnese .bioma-consentimento-termo .questions p {
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--bioma-muted);
    text-align: justify;
    hyphens: auto;
}

@media (min-width: 768px) {
    .bioma-anamnese .bioma-consentimento-termo .row {
        column-gap: 1.5rem;
    }

    .bioma-anamnese .bioma-consentimento-termo .col-xs-12.col-md-6 {
        flex: 0 0 48%;
        max-width: 48%;
    }
}

/* Perguntas — espaçamento */
.bioma-anamnese .questions {
    padding-bottom: 1rem !important;
}

.bioma-anamnese .modal-header .btn-close {
    filter: none;
}

@media (max-width: 576px) {
    .bioma-anamnese .banner-content::before {
        background-size: 100% auto;
        background-position: center center;
        opacity: 0.36;
        filter: brightness(0.52) contrast(1.05) saturate(0.16);
    }

    .bioma-anamnese .profile-info h1 {
        padding: 0.6rem 1.25rem;
        letter-spacing: 0.06em;
    }

    .bioma-cta-coleta__link {
        font-size: 0.9rem;
        padding: 0.85rem 1rem;
    }
}
