#conteudo-principal {
    transition: opacity 0.2s ease-in-out;
    min-height: 80vh;
    /*min-height: 101vh;*/
    overflow-y: auto;
}

.erro-404 {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 80vh;
    padding: 20px;
}

.erro-404 img {
    width: 15vh;
}

#conteudo-principal::-webkit-scrollbar-track {
    background: transparent;
}

.container section {
    padding-top: calc(var(--navbar-height));
}

/* --- HERO --- */

.hero-content {
    /*display: grid;
    grid-template-columns: 0.8fr 0.8fr;*/
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.hero-text {
    text-align: center;
    display: grid;
    padding-top: 2vh;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 113, 227, 0.1);
    color: var(--action-blue);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    max-width: fit-content;
    justify-self: center;
}

.hero-text h1 {
    font-size: 58px;
    line-height: 1.15;
    /*margin-bottom: 16px;*/
}

.hero-text p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    max-width: 400px;
    justify-self: center;
}

.hero-text .hero-highlight {
    color: var(--action-blue);
    font-size: 24px;
}

.hero-actions {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.hollow {
    background-color: var(--card-bg-color);
    color: var(--action-blue);
    border: 1px solid var(--action-blue);
}

.hollow:hover {
    color: #ffffff;
}


.hero-safe {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-safe svg {
    fill: #34c759;
}

.hero-image img {
    width: 100%;
    max-width: 320px;
    border-radius: 25px;
    justify-self: center;
}

/* --- DORES --- */
.pain-points {
    padding: 25px;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.pain-card {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    box-shadow: var(--card-shadow);
    display: grid;
}

.pain-card h3 {
    font-size: 20px;
    /*height: 40px;*/
}

.pain-card p {
    font-size: 16px;
    height: 60px;
}

.pain-card img {
    width: 200px;
    /*margin-bottom: 12px;*/
    justify-self: center;
}


/* --- PLANOS --- */
.plans-section {
    /*padding-top: 40px;*/
    text-align: center;
    margin-bottom: 30px;
}

.plans-section h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.plans-section .subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.plan-card {
    background-color: var(--card-bg-color);
    border-radius: 18px;
    padding: 30px;
    text-align: left;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: var(--theme-transition), transform 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-4px);
}

.plan-card.selected {
    box-shadow: var(--selected-shadow);
    border-color: var(--action-blue);
}

.plan-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.plan-card .description {
    font-size: 14px;
    color: var(--text-secondary);
    /*min-height: 65px;*/
    margin-bottom: 16px;
}

.plan-card .price {
    /*gap: 15px;*/
    display: grid;
    grid-template-columns: 2fr 1fr;
    font-size: 40px;
    font-weight: 300;
    height: stretch;
}

.plan-card .price strike {
    font-size: 28px;
    color: var(--text-tertiary);
}

.plan-card .price p {
    font-size: 28px;
    align-self: center;
    justify-self: center;
}

.plan-card .price-subtext {
    font-size: 13px;
    color: var(--text-tertiary);
}

.plan-card .img-wb {
    display: inline-grid;
}

.plan-card .img-wb img {
    min-height: 50px;
    filter: drop-shadow(0px 0px 1px rgb(0, 0, 0));
    align-self: center;
    justify-self: center;
}

.plan-card ul {
    list-style: none;
}

.plan-card ul li {
    display: flex;
    gap: 10px;
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.plan-card ul li svg {
    fill: #34c759;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-note {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 40px;
}

/* --- 4. FORMULÁRIO --- */
#form-section-space {
    padding-top: 60px;
    padding-bottom: 100px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card-bg-color);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.form-container h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--action-blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.form-group .switch-container {
    display: flex;
    gap: 10px;
}

.field-collapsible {
    max-height: 0;
    /*overflow: hidden;*/
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    pointer-events: none;
}

.field-collapsible.visible {
    max-height: 200px;
    opacity: 1;
    margin-top: 15px;
    pointer-events: all;
}

.field-collapsible textarea {
    display: block;
    width: 100%;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    font-size: 10px;
    color: var(--text-secondary);
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.form-container .btn-primary {
    background-color: #37b84b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 5px 15px;
    margin-top: 10px;
    font-size: 16px;
}

.form-button {
    display: flex;
    justify-content: center;
}

.form-button img {
    height: 30px;
    /*margin-right: -58px;*/
}


/* --- CONFIANÇA --- */
.trust {
    padding: 40px 0;
}

.trust-content {
    margin-top: 65px;
    display: grid;
    /*grid-template-columns: 1fr 1.2fr;*/
    grid-template-columns: 1.3fr 2fr;
    gap: 40px;
    /*align-items: center;*/
}

.trust-who {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 28px;
    color: var(--text-primary);
    text-align: center;
}

.alert-trust {
    color: red;
    margin-bottom: 5px;
}

.trust-text h3 {
    margin-bottom: 8px;
}

.trust-text h4 {
    margin-bottom: 5px;
}

.trust-text p {
    text-align: justify;
}

.trust-text a {
    color: var(--action-blue);
    text-decoration: none;
    font-weight: 600;
}

.trust-image img {
    width: auto;
    /*max-width: 360px;*/
    border-radius: 20px;
}

.insta-wrapper {
    position: relative;
    display: inline-block;
}

.insta-link-out {
    display: flex;
    gap: 5px;
}

.insta-icon {
    height: 30px;
}

.insta-link {
    color: var(--action-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--theme-transition);
}

.insta-card {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 260px;
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--card-shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, var(--theme-transition);
    z-index: 100;
}

.insta-wrapper:hover .insta-card,
.insta-wrapper.active .insta-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.profile-info {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.username {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

.full-name {
    color: var(--text-secondary);
    font-size: 14px;
}

.follow-link {
    display: block;
    text-align: center;
    background-color: var(--action-blue);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    padding: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.follow-link:hover {
    background-color: var(--action-blue-hover);
}

.insta-card::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: var(--border-color) transparent transparent transparent;
}

.insta-card::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: var(--card-bg-color) transparent transparent transparent;
    z-index: 1;
}

.trust-highlight {
    margin-top: 20px;
    padding: 16px;
    border-left: 4px solid var(--action-blue);
    background: rgba(0, 113, 227, 0.08);
    border-radius: 8px;
}

/* --- MOBILE --- */
@media (max-width: 768px) {

    .hero-content,
    .trust-content {
        flex-direction: column;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .trust-who {
        margin-bottom: 20px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text p {
        font-size: 16px;
        max-width: 235px;
        /*font-weight: 600;*/
    }

    .hero-text .hero-highlight {
        font-size: 23px;
    }

    .hero-image img {
        justify-self: center;
        max-width: 320px;
        /*235*/
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }

    .plans-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin: 0 -20px 30px -20px;
        padding: 10px 20px;
        gap: 16px;
        scrollbar-width: none;
        scroll-padding: 0 20px; /*Novo*/
    }

    .plan-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        min-height: auto;
    }

    .plan-card .price .img-wb img {
        height: 65px;
    }

    .pain-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        justify-self: center;
    }

    #form-section-space {
        padding-top: 80px;
    }

    .form-container {
        padding: 20px;
    }

    .form-group textarea {
        overflow: hidden;
        min-height: 60px;
    }

    .form-group textarea::-webkit-scrollbar {
        display: none;
    }

    .trust-content {
        gap: 15px;
        margin-top: 0;
    }

    .trust-image img {
        max-width: 300px;
        justify-self: center;
    }

    .trust-text {
        padding-top: 1vh;
    }
}