/* Definições de cores e fontes */
:root {
    --font-family-base: 'DM Sans';
    --color-amarelo-smart: #FFB612;
}

body {
    font-family: var(--font-family-base);
    min-width: 370px;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

.container {
    max-width: 1250px;
}

.amarelo-smart {
    color: var(--color-amarelo-smart);
}

a {
    text-decoration: none;
}

.btn,
.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000 !important;
    background-color: var(--color-amarelo-smart) !important;
    padding: 11px 88px;
    border-radius: 30px;
    font-family: var(--font-family-base) !important;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
}

a.btn:hover,
a.cta:hover {
    background-color: #ffda6a !important;
    color: #000 !important;
    transform: translateY(-2px);
}

@media (max-width: 868px) {

    .btn,
    .cta {
        padding: 10px 40px;
        font-size: 14px;
    }
}

/* Títulos e Subtítulos */
h2 {
    font-size: 40px;
}

.h2-black {
    font-weight: 900;
    color: #010114E0;
    font-weight: 900 !important;
}

/* ----------------------------------- */
/* BANNER PRINCIPAL */
/* ----------------------------------- */


.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

.desktop-banner {
    display: flex;
    background-size: contain;
}

.hero-banner {
    position: relative;
}

.text-hero {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
    pointer-events: none;
}

.text-hero h1 {
    text-align: center;
    color: #fff;
    font-size: 60px;
    font-weight: 900;
    line-height: 1.2;
}

.text-hero p {
    text-align: center;
    font-family: var(--font-family-base) !important;
    color: #fff;
    font-size: 20px;
    line-height: 1.5;
    margin-top: 20px;
}

/* CTA Button no Banner */
.banner-cta-container {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 56px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-banner,
.hero-banner * {
    font-family: var(--font-family-base) !important;
}

.banner-cta-btn:hover {
    color: #000;
}

.como-funciona .card {
    border: 2px dashed var(--color-amarelo-smart);
    border-radius: 10px;
}

.como-funciona .card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.como-funciona .card-title-logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
    flex-shrink: 0;
}

.como-funciona .card-body>p {
    margin-left: 85px;
    width: calc(100% - 85px);
    text-align: left;
}

.como-funciona .card .btn {
    width: 90%;
    align-self: center;
}

/* Botão que aciona o Modal */
.open-modal-btn {
    padding: 15px 30px;
    background-color: #1f2937;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.open-modal-btn:hover {
    background-color: #374151;
}

/* Overlay do Modal (Fundo Escuro) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(23, 23, 23, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Classe para exibir o modal */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Caixa do Modal */
.modal-content {
    background-color: #ffffff;
    width: 90%;
    max-width: 460px;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Botão Fechar (X) */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #111827;
}

/* Ícone do Cupom */
.modal-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: inline-block;
}

/* Textos */
.modal-title {
    color: #1f2937;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.modal-subtitle {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
    padding: 0 10px;
}

/* Caixa do Código do Cupom */
.coupon-box {
    border: 2px dashed #4ade80;
    /* Verde tracejado */
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    background-color: #ffffff;
}

.coupon-code {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 1px;
}

/* Botão Principal do Modal */
.action-btn {
    width: 100%;
    background-color: #fbbd08;
    /* Amarelo/Laranja Smart Fit */
    color: #000000;
    font-weight: 700;
    font-size: 15px;
    padding: 16px;
    border: none;
    border-radius: 30px;
    /* Bordas arredondadas (Pill) */
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.2s;
}

.action-btn:hover {
    background-color: #f5b000;
}

/* Texto de Rodapé */
.modal-footer-text {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.vantagens {
    background-color: #141414;
    color: #fff;
}

.card-vantagens {
    background-color: #2B2B2B;
    border: none;
    border-radius: 13px;
    max-width: 398px;
}

.vantagens-icone {
    width: 60px;
    height: 60px;
}

@media (max-width: 767.98px) {
    body p {
        font-size: 16px;
    }

    .como-funciona .card-body>p {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .hero-banner {
        background-color: #fff;
    }

    /* CTA Button ajuste mobile */
    .banner-cta-container {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: 48px;
        width: 100%;
        padding: 0 20px;
    }

    .banner-preheadline {
        font-size: 12px;
        margin-bottom: 0.5rem;
    }

    .banner-cta-btn {
        width: 100%;
        max-width: 320px;
        align-self: center;
        white-space: nowrap;
    }
}

/* Ajustes responsivos do texto do hero (tablet/desktop) */
@media (max-width: 1200px) {
    .banner-preheadline {
        position: relative;
    }

}

@media (max-width: 1024px) {
    .hero-banner {
        height: 420px;
    }
}

@media (max-width: 990px) {
    .text-hero h1 {
        font-size: 48px;
    }

    .text-hero p {
        font-size: 16px;
    }

    .banner-preheadline {
        top: -25px;
    }
}

@media (max-width: 768px) {
    .text-hero h1 {
        margin: 0 auto !important;
    }

    .hero-banner {
        height: auto;
    }

    .banner-cta-container {
        position: absolute;
        top: 75%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: 48px;
    }

}

@media (max-width: 420px) {
    .text-hero {
        padding: 30px;
    }
}

/* Mobile */
.mobile-banner {
    justify-content: center;
    background: none;
}

.mobile-banner .banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

section {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

/* FORM SECTION: */
/* ----------------------------------- */

/* Cartão principal do formulário */
.form-section {
    background-color: #ECECEC;
    z-index: 10;
}

.form-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* Título de seção */
.form-title {
    text-align: center;
    font-size: 45px;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.form-subtitle {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    max-width: 1100px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 14px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
    width: 100%;
    color: #1a1a1a;
}

/* Estilos de erro dos campos */
.form-group.has-error input {
    border-color: #C0002D;
    box-shadow: 0 0 0 1px rgba(192, 0, 45, 0.35);
}

.field-error {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: #C0002D;
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FFB800;
}

.form-group input::placeholder {
    color: #999;
}


@media (max-width: 968px) {
    .checkbox-line {
        flex-direction: column;
    }
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.checkbox-group input[type="checkbox"] {
    width: 0px;
    height: 20px;
    min-width: 20px;
    margin-top: 1px;
    accent-color: #FFB800;
    cursor: pointer;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
}

.checkbox-group label {
    font-size: 13px;
    color: #1a1a1a;
    line-height: 1.55;
    cursor: pointer;
}

.checkbox-group label a {
    color: #0066CC;
    text-decoration: none;
}

.btn-form {
    display: flex;
    justify-content: center;
}

/* -------------------------------*/
/*  FAQ SECTION  */
/*--------------------------------*/
/* Seção de dúvidas frequentes */
.faq-section {
    padding: 80px 20px;
    background: #fff;
}

.faq-container {
    max-width: 1100px;
    margin: 0 auto;
}

.faq-section .section-title {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.faq-item {
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.faq-header:hover {
    background: transparent;
}

.faq-header:active {
    background: transparent;
}

.faq-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    padding-right: 20px;
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-icon svg {
    width: 16px;
    height: 16px;
    color: #666;
    transition: color 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

/* Ícone do FAQ em amarelo no hover/aberto */
.faq-header:hover .faq-icon svg,
.faq-header:focus-visible .faq-icon svg,
.faq-item.open .faq-icon svg {
    color: #FFB800;
}

/* Foco amarelo no FAQ */
.faq-header:focus-visible {
    outline: 2px solid #FFB800;
    outline-offset: 2px;
}

/* Título da pergunta em amarelo no hover/aberto */
.faq-header:hover h4,
.faq-header:focus-visible h4,
.faq-item.open .faq-header h4 {
    color: #FFB800;
}

.faq-content {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 12px 20px 20px;
    /* padding para a resposta não ficar grudada */
    border-top: none;
    /* remove linha acima da resposta */
}

.faq-item.open .faq-content {
    display: block;
    max-height: 500px;
}

.faq-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    padding-bottom: 20px;
}


.form-floating label .rut-hint {
    margin-top: 0rem;
    margin-bottom: 1rem;
}

.form-floating .form-control.hide-label-on-input:focus~label .rut-hint,
.form-floating .form-control.hide-label-on-input:not(:placeholder-shown)~label .rut-hint {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.cta-final {
    background-color: #ECECEC;
}