/* ═══════════════════════════════════════════════════
   FNG MICROCRÉDITO — Estilos da Página Como Funciona
   Carregado apenas em pages/how-it-works.blade.php
═══════════════════════════════════════════════════ */

/* ── 1. HERO ────────────────────────────────────── */
.hiw-hero {
    position: relative;
    background: var(--fng-azul);
    padding: 100px 0 90px;
    overflow: hidden;
}

.hiw-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hiw-hero-bg, none) center / cover no-repeat;
    opacity: 0.13;
    z-index: 0;
}

.hiw-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199,22,23,0.09) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hiw-hero > .container { position: relative; z-index: 1; }

.hiw-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.18;
    letter-spacing: -0.5px;
    margin: 0.6rem 0 1rem;
}

.hiw-hero-sub {
    font-size: 1.05rem;
    color: #b0c4d4;
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto;
}

.btn-hiw-primary {
    background-color: var(--fng-vermelho);
    color: #fff;
    font-weight: 700;
    padding: 14px 34px;
    border-radius: 30px;
    font-size: 0.97rem;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 6px 20px rgba(199,22,23,0.35);
}

.btn-hiw-primary:hover {
    background-color: #a51213;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(199,22,23,0.45);
    color: #fff;
}

.btn-hiw-outline {
    background-color: rgba(255,255,255,0.07);
    color: #fff;
    font-weight: 600;
    padding: 13px 32px;
    border-radius: 30px;
    font-size: 0.97rem;
    border: 1.5px solid rgba(255,255,255,0.22);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.btn-hiw-outline:hover {
    border-color: rgba(255,255,255,0.6);
    background-color: rgba(255,255,255,0.12);
    transform: translateY(-3px);
    color: #fff;
}

/* Hero trust badges */
.hiw-hero-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hiw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: #8ab0c8;
}

.hiw-hero-badge i { color: var(--fng-vermelho); font-size: 0.8rem; }

.hiw-hero-badge-sep {
    color: rgba(255,255,255,0.2);
    font-size: 1.2rem;
}

/* ── 2. TIMELINE ────────────────────────────────── */
.hiw-steps-section {
    background: #fff;
    padding: var(--section-py) 0;
}

/* Container relativo para o traço vertical */
.hiw-timeline {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

/* Traço vertical único que percorre todos os passos */
.hiw-timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 26px;
    bottom: 26px;
    width: 2px;
    background: linear-gradient(to bottom, var(--fng-vermelho), rgba(199,22,23,0.08));
    z-index: 0;
}

.hiw-step {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.hiw-step:last-child { margin-bottom: 0; }

.hiw-step-left {
    flex-shrink: 0;
    width: 52px;
}

.hiw-step-num {
    width: 52px;
    height: 52px;
    background: var(--fng-vermelho);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 4px 16px rgba(199,22,23,0.35);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* Último passo em verde — dinheiro na mão */
.hiw-step-num-last {
    background: #1db954;
    box-shadow: 0 4px 16px rgba(29,185,84,0.35);
}

.hiw-step-card {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 22px 26px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #f0f0f0;
    flex: 1;
    transition: box-shadow var(--transition), transform var(--transition);
}

.hiw-step-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(4px);
}

/* Último card com borda verde */
.hiw-step-card-last {
    border-color: rgba(29,185,84,0.2);
    background: #f9fffc;
}

.hiw-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.hiw-step-icon {
    width: 40px;
    height: 40px;
    background: rgba(199,22,23,0.07);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--fng-vermelho);
    flex-shrink: 0;
}

.hiw-step-card-last .hiw-step-icon {
    background: rgba(29,185,84,0.1);
    color: #1db954;
}

.hiw-step-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fng-azul);
    margin: 0;
}

.hiw-step-card p {
    font-size: 0.87rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ── 3. RESPOSTA RÁPIDA ─────────────────────────── */
.hiw-response-section {
    background: var(--fng-azul);
    padding: var(--section-py) 0;
}

.hiw-response-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(199,22,23,0.14);
    color: #ff8585;
    border: 1px solid rgba(199,22,23,0.28);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 18px;
}

.hiw-response-big {
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -4px;
    line-height: 1;
    margin-bottom: 18px;
}

.hiw-response-text {
    font-size: 1.02rem;
    color: #8ab0c8;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
}

.hiw-stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
}

.hiw-stat-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.hiw-stat-label {
    font-size: 0.76rem;
    color: #5a7a90;
    letter-spacing: 0.3px;
}

/* ── 4. DOCUMENTOS ──────────────────────────────── */
.hiw-docs-section {
    background: #f8f9fa;
    padding: var(--section-py) 0;
}

.hiw-doc-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hiw-doc-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #f0f0f0;
    transition: box-shadow var(--transition), transform var(--transition);
}

.hiw-doc-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(4px);
}

.hiw-doc-icon {
    width: 46px;
    height: 46px;
    background: rgba(199,22,23,0.07);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--fng-vermelho);
    flex-shrink: 0;
}

.hiw-doc-item h6 {
    font-weight: 700;
    color: var(--fng-azul);
    font-size: 0.93rem;
    margin-bottom: 4px;
}

.hiw-doc-item p {
    font-size: 0.83rem;
    color: #888;
    line-height: 1.5;
    margin: 0;
}

/* ── 5. FORMAS DE PAGAMENTO ─────────────────────── */
.hiw-payment-section {
    background: #fff;
    padding: var(--section-py) 0;
}

.hiw-pay-card {
    background: #f8f9fa;
    border-radius: var(--radius-card);
    padding: 32px 26px;
    height: 100%;
    text-align: center;
    border: 1.5px solid #f0f0f0;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    position: relative;
}

.hiw-pay-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: rgba(199,22,23,0.2);
}

/* Card em destaque */
.hiw-pay-card-featured {
    background: var(--fng-azul);
    border-color: var(--fng-azul);
    box-shadow: 0 12px 40px rgba(18,33,54,0.18);
}

.hiw-pay-card-featured:hover {
    border-color: var(--fng-azul);
    box-shadow: 0 20px 50px rgba(18,33,54,0.26);
}

.hiw-pay-featured-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fng-vermelho);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.hiw-pay-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(199,22,23,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--fng-vermelho);
}

.hiw-pay-card-featured .hiw-pay-icon {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.hiw-pay-card h5 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--fng-azul);
    margin-bottom: 6px;
}

.hiw-pay-card-featured h5 { color: #fff; }

.hiw-pay-freq {
    font-size: 0.79rem;
    color: #999;
    font-weight: 500;
    margin-bottom: 18px;
    letter-spacing: 0.2px;
}

.hiw-pay-card-featured .hiw-pay-freq { color: #7fa8c0; }

.hiw-pay-example {
    background: rgba(199,22,23,0.06);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
}

.hiw-pay-card-featured .hiw-pay-example {
    background: rgba(255,255,255,0.07);
}

.hiw-pay-ex-label {
    display: block;
    font-size: 0.74rem;
    color: #999;
    margin-bottom: 5px;
}

.hiw-pay-card-featured .hiw-pay-ex-label { color: #5a7a90; }

.hiw-pay-ex-val {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--fng-vermelho);
    letter-spacing: -0.5px;
}

.hiw-pay-card-featured .hiw-pay-ex-val { color: #fff; }

.hiw-pay-ideal {
    font-size: 0.82rem;
    color: #777;
    line-height: 1.6;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
}

.hiw-pay-ideal i {
    color: #3de07a;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.hiw-pay-card-featured .hiw-pay-ideal { color: #7fa8c0; }

.hiw-payment-note {
    text-align: center;
    font-size: 0.81rem;
    color: #aaa;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
}

.hiw-payment-note a {
    color: var(--fng-vermelho);
    font-weight: 600;
    text-decoration: none;
}

.hiw-payment-note a:hover { text-decoration: underline; }

/* ── 6. TRANSPARÊNCIA ───────────────────────────── */
.hiw-trust-section {
    background: var(--fng-azul);
    padding: var(--section-py) 0;
}

/* Reuso da classe .srv-dif-img-wrap da página de serviços */
.hiw-trust-section .srv-dif-img-wrap {
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.hiw-trust-section .srv-dif-img-wrap img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.hiw-trust-items {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hiw-trust-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.hiw-trust-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.07);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #3de07a;
    flex-shrink: 0;
}

.hiw-trust-item h6 {
    font-weight: 700;
    color: #fff;
    font-size: 0.97rem;
    margin-bottom: 5px;
}

.hiw-trust-item p {
    font-size: 0.86rem;
    color: #7fa8c0;
    line-height: 1.65;
    margin: 0;
}

/* ── 7. CTA FINAL ───────────────────────────────── */
.hiw-cta-section {
    position: relative;
    background: var(--fng-vermelho);
    padding: var(--section-py) 0;
    overflow: hidden;
}

.hiw-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hiw-cta-bg, none) center / cover no-repeat;
    opacity: 0.08;
    mix-blend-mode: luminosity;
    z-index: 0;
}

.hiw-cta-section::after {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
    z-index: 0;
}

.hiw-cta-section > .container { position: relative; z-index: 1; }

.btn-hiw-cta-wapp {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    color: var(--fng-vermelho);
    font-weight: 800;
    padding: 16px 42px;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-hiw-cta-wapp:hover {
    background: #f4f4f4;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    color: var(--fng-vermelho);
}

/* ── Responsivo ─────────────────────────────────── */
@media (max-width: 991px) {
    .hiw-hero                    { padding: 70px 0 60px; }
    .hiw-timeline::before        { left: 24px; }
    .hiw-trust-section .srv-dif-img-wrap img { height: 280px; }
}

@media (max-width: 767px) {
    .hiw-response-big            { letter-spacing: -2px; }
    .hiw-pay-card-featured       { margin-top: 12px; }
}

@media (max-width: 575px) {
    .hiw-hero-title              { font-size: 1.85rem; }
    .hiw-step-card               { padding: 18px 20px; }
    .hiw-hero-badge-sep          { display: none; }
    .hiw-hero-badges             { gap: 8px 18px; }
}
