/* ==========================================================
   MATERIAIS GRATUITOS — Styles
   ========================================================== */

.gs-materiais-page {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2c2c2c;
    line-height: 1.6;
}

.gs-mat-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
}


/* --- HERO --- */

.gs-mat-hero {
    background: #1b3c4b;
    padding: 56px 0 48px;
    text-align: center;
}

.gs-mat-crumb {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 20px;
}

.gs-mat-crumb a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.gs-mat-crumb a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.gs-mat-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(26px, 5vw, 40px);
    color: #fff;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0 0 14px;
}

.gs-mat-hero-sub {
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
}


/* --- TRUST BAR --- */

.gs-mat-trust {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 18px 0;
}

.gs-mat-trust-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.gs-mat-trust-inner span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.gs-mat-trust-inner span i {
    color: #1b3c4b;
    font-size: 14px;
}


/* --- INTRO --- */

.gs-mat-intro {
    padding: 48px 0 40px;
    text-align: center;
}

.gs-mat-intro p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    font-weight: 300;
}


/* --- TABS (filtros) --- */

.gs-mat-tabs {
    padding-bottom: 40px;
}

.gs-mat-tabs-inner {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gs-mat-tab {
    padding: 10px 22px;
    border: 1.5px solid #ddd;
    border-radius: 100px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    line-height: 1;
}

.gs-mat-tab:hover {
    border-color: #1b3c4b;
    color: #fff;
}

.gs-mat-tab.active {
    background: #1b3c4b;
    border-color: #1b3c4b;
    color: #fff;
}

.gs-mat-tab i {
    font-size: 13px;
}


/* --- CARDS --- */

.gs-mat-cards-wrap {
    padding-bottom: 60px;
}

.gs-mat-group {
    margin-bottom: 48px;
}

.gs-mat-group:last-child {
    margin-bottom: 0;
}

.gs-mat-group.gs-hidden {
    display: none;
}

.gs-mat-group-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #aaa;
    margin-bottom: 20px;
    padding-left: 2px;
    font-weight: 600;
}

.gs-mat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.gs-mat-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gs-mat-card:hover {
    border-color: #d0d0d0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.gs-mat-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.gs-mat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.gs-mat-card-type {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f5f5f5;
    color: #999;
}

.gs-mat-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1b3c4b;
    line-height: 1.35;
    margin: 0 0 8px;
}

.gs-mat-card p {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    font-weight: 300;
    flex: 1;
    margin: 0 0 18px;
}

.gs-mat-dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    background: transparent;
    border: 1.5px solid #1b3c4b;
    color: #1b3c4b;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    line-height: 1;
}

.gs-mat-dl-btn:hover {
    background: #1b3c4b;
    color: #fff;
}

.gs-mat-dl-btn i {
    font-size: 12px;
}


/* --- CTA SECTION --- */

.gs-mat-cta {
    background: #f8f9fa;
    padding: 56px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

.gs-mat-cta h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(20px, 4vw, 28px);
    color: #1b3c4b;
    font-weight: 400;
    margin: 0 0 10px;
}

.gs-mat-cta p {
    color: #888;
    font-size: 14px;
    max-width: 440px;
    margin: 0 auto 28px;
    line-height: 1.7;
    font-weight: 300;
}

.gs-mat-wpp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #1b3c4b;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.25s;
    font-family: inherit;
}

.gs-mat-wpp-btn:hover {
    background: #15303d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 60, 75, 0.2);
}


/* ==========================================================
   MODAIS
   ========================================================== */

.gs-mat-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gs-mat-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.gs-mat-modal-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    overflow-y: auto;
    animation: gsMatSlide 0.3s ease;
    max-height: 100%;
}

@keyframes gsMatSlide {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* --- FORM MODAL --- */

.gs-mat-mf-head {
    padding: 28px 28px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.gs-mat-mf-close {
    float: right;
    background: none;
    border: none;
    font-size: 18px;
    color: #ccc;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.gs-mat-mf-close:hover {
    color: #fff;

}

.gs-mat-mf-head h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    color: #1b3c4b;
    font-weight: 400;
    margin: 0 0 4px;
}

.gs-mat-mf-head p {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
    margin: 0;
}

.gs-mat-mf-name {
    font-weight: 600;
    color: #1b3c4b;
}

.gs-mat-mf-body {
    padding: 24px 28px 28px;
}

.gs-mat-mf-field {
    margin-bottom: 16px;
}

.gs-mat-mf-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gs-mat-mf-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border 0.2s;
    font-family: inherit;
    background: #fafafa;
    box-sizing: border-box;
}

.gs-mat-mf-field input:focus {
    border-color: #1b3c4b;
    background: #fff;
}

.gs-mat-mf-field input.gs-err {
    border-color: #e53935;
    background: #fff5f5;
}


/* --- CHECKBOX DICAS --- */

.gs-mat-mf-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    cursor: pointer;
    padding: 14px 16px;
    background: #f8fafb;
    border-radius: 10px;
    border: 1.5px solid #e8eef0;
    transition: all 0.2s;
}

.gs-mat-mf-checkbox:hover {
    border-color: #c0d0d6;
}

.gs-mat-mf-check-box {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 5px;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 1px;
}

.gs-mat-mf-check-box.checked {
    background: #1b3c4b;
    border-color: #1b3c4b;
}

.gs-mat-mf-check-box.checked i {
    color: #fff;
    font-size: 10px;
}

.gs-mat-mf-check-box:not(.checked) i {
    display: none;
}

.gs-mat-mf-check-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.gs-mat-mf-check-text strong {
    color: #1b3c4b;
    font-weight: 600;
}


/* --- SUBMIT --- */

.gs-mat-mf-submit {
    width: 100%;
    padding: 13px;
    background: #1b3c4b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gs-mat-mf-submit:hover {
    background: #15303d;
}

.gs-mat-mf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gs-mat-mf-error {
    color: #e53935;
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
}


/* --- SUCCESS MODAL --- */

.gs-mat-ms-body {
    padding: 40px 28px 32px;
    text-align: center;
}

.gs-mat-ms-check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 20px;
}

.gs-mat-ms-body h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: #1b3c4b;
    font-weight: 400;
    margin: 0 0 8px;
}

.gs-mat-ms-msg {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
    margin: 0 0 28px;
}

.gs-mat-ms-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 0 -28px 24px;
}

.gs-mat-ms-help {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    margin: 0 0 6px;
}

.gs-mat-ms-help-sub {
    font-size: 13px;
    color: #999;
    margin: 0 0 20px;
    line-height: 1.5;
}

.gs-mat-ms-wpp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    background: #25d366;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.25s;
    font-family: inherit;
}

.gs-mat-ms-wpp:hover {
    background: #1fba59;
    transform: translateY(-1px);
}

.gs-mat-ms-close {
    display: block;
    width: auto;
    margin: 16px auto 0;
    font-size: 13px;
    color: #ccc;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.gs-mat-ms-close:hover {
    color: #888;
}


/* ==========================================================
   RESPONSIVO
   ========================================================== */

@media (max-width: 600px) {
    .gs-mat-trust-inner {
        gap: 16px;
    }
    .gs-mat-trust-inner span {
        font-size: 12px;
    }
    .gs-mat-grid {
        grid-template-columns: 1fr;
    }
    .gs-mat-modal-card {
        max-width: 100%;
        border-radius: 14px 14px 0 0;
    }
    .gs-mat-modal {
        align-items: flex-end;
    }
    .gs-mat-tabs-inner {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }
    .gs-mat-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
}
