/* ============================================================
   Depoimentos de Bolsistas — Formulário público + Cards
   Identidade FFC: azul #334d60 | amarelo #f9b233 / #fed42f
   ============================================================ */

/* ── Wrapper da página de envio ───────────────────────────── */

#quemsomos_enviar_depoimento {
    padding: 60px 0;
    background: url(../../img/pages/home/depoimentos/bg.png) center repeat-y,
                linear-gradient(to bottom, #f9b233, #fed42f);
}

/* ── Seção de cards aprovados ─────────────────────────────── */

.dep-enviados-section {
    margin: 60px 0 40px;
}

.dep-enviados-titulo {
    font-size: 40px;
    color: #334d60;
    margin-bottom: 8px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

/* ── Grid de cards ────────────────────────────────────────── */

.dep-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.dep-card {
    background: #ffffff;
    border: 1px solid #e4e8ef;
    box-shadow: 0 2px 10px rgba(51, 77, 96, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dep-card:hover {
    box-shadow: 0 6px 22px rgba(51, 77, 96, 0.14);
    transform: translateY(-2px);
}

.dep-card-media {
    width: 100%;
    max-height: 240px;
    overflow: hidden;
    background: #f0f3f7;
}

.dep-card-media--video {
    max-height: none;
}

.dep-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.dep-card-body {
    padding: 22px 20px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dep-card-texto {
    font-size: 16px;
    color: #444;
    line-height: 1.65;
    margin: 0 0 16px;
    flex: 1;
}

.dep-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin-top: 4px;
}

.dep-card-nome {
    font-size: 14px;
    color: #334d60;
    font-weight: 700;
}

.dep-card-data {
    font-size: 12px;
    color: #9aabb8;
}

/* ── Paginação ─────────────────────────────────────────────── */

.dep-paginacao {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
}

.dep-pag-btn {
    display: inline-block;
    padding: 7px 16px;
    border: 1px solid #d0d9e4;
    color: #334d60;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.dep-pag-btn:hover {
    background: #334d60;
    color: #fff;
    border-color: #334d60;
}

.dep-pag-btn--ativo {
    background: #334d60;
    color: #fff;
    border-color: #334d60;
    pointer-events: none;
    cursor: default;
}

/* ── Seção do formulário ──────────────────────────────────── */

.dep-form-section {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dep-form-titulo {
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    color: #334d60;
    text-align: center;
    margin-bottom: 8px;
}

@media (max-width: 767px) {
    .dep-form-titulo { font-size: 24px; }
}

.dep-form-subtitulo {
    font-size: 18px;
    color: #334d60;
    text-align: center;
    margin: 0 0 32px;
}

.dep-form {
    max-width: 680px;
    margin: 0 auto;
}

.dep-form-group {
    margin-bottom: 22px;
}

.dep-form-label {
    display: block;
    font-weight: 600;
    color: #334d60;
    margin-bottom: 6px;
    font-size: 14px;
}

.dep-obrigatorio {
    color: #c20024;
}

.dep-form-input,
.dep-form-textarea {
    width: 100%;
    font-size: 16px;
    color: #334d60;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #334d60;
    border-radius: 0;
    padding: 8px 5px;
    box-shadow: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s;
}

/* Remove linha abaixo do label em fieldsets de opções/file e do input file */
.dep-tipo-fieldset .dep-form-label,
.dep-midia-fieldset .dep-form-label {
    border-bottom: 0;
}

.dep-midia-fieldset .dep-form-input[type="file"] {
    border-bottom: 0;
    padding-bottom: 0;
}

.dep-form-input:focus,
.dep-form-textarea:focus {
    outline: none;
    border-bottom-color: #2c4456;
    box-shadow: none;
}

.dep-form-textarea {
    resize: vertical;
    min-height: 130px;
}

.dep-form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* ── Contador de caracteres ───────────────────────────────── */

.dep-contador {
    text-align: right;
    font-size: 12px;
    margin-top: 4px;
    color: #666;
    transition: color 0.2s;
}
.dep-contador--verde   { color: #27ae60; }
.dep-contador--amarelo { color: #e67e22; }
.dep-contador--vermelho{ color: #c20024; font-weight: 700; }

/* ── Opções de mídia ──────────────────────────────────────── */

.dep-tipo-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.dep-midia-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.dep-midia-opcoes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.dep-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: #334d60;
    cursor: pointer;
}

.dep-midia-campo {
    margin-top: 8px;
}

/* ── Feedback de envio ────────────────────────────────────── */

.dep-form-feedback {
    padding: 14px 18px;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.dep-form-feedback--sucesso {
    background: #edf7f0;
    color: #1d6a38;
    border: 1px solid #b2dfcc;
}

.dep-form-feedback--erro {
    background: #fdf0ef;
    color: #c20024;
    border: 1px solid #f5c2c0;
}

/* ── Botão de envio (padrão .button do site) ─────────────── */

.dep-form-submit-wrap {
    text-align: center;
}

.dep-form-btn {
    background: #334d60;
    border: 2px solid #334d60;
    color: #fff;
    padding: 10px 36px;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    border-radius: 0;
    min-width: 200px;
    font-family: inherit;
}

.dep-form-btn:hover:not(:disabled) {
    background: #fff;
    color: #334d60;
    box-shadow: 0 0 10px rgba(0,0,0,.2);
}

.dep-form-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Botão CTA (padrão .button do site) ──────────────────── */

.dep-cta-wrap {
    text-align: center;
    margin: 48px 0 32px;
}

.dep-cta-wrap .dep-cta-btn,
.dep-cta-wrap .dep-cta-btn:visited {
    display: inline-block;
    background: #334d60;
    border: 2px solid #334d60;
    color: #fff;
    padding: 10px 36px;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.dep-cta-wrap .dep-cta-btn:hover,
.dep-cta-wrap .dep-cta-btn:focus {
    background: #fff;
    color: #334d60;
    box-shadow: 0 0 10px rgba(0,0,0,.2);
}

/* ── Link "Voltar" (página de envio) ─────────────────────── */

.dep-voltar {
    display: inline-block;
    margin: 24px 0 8px;
    color: #334d60;
    font-size: 16px;
    text-decoration: none;
    font-weight: 500;
}

.dep-voltar:hover {
    text-decoration: underline;
    color: #2c4456;
}

/* ── Responsividade ───────────────────────────────────────── */

@media (max-width: 640px) {
    .dep-form-section {
        padding: 28px 18px;
    }

    .dep-cards-grid {
        grid-template-columns: 1fr;
    }

    .dep-midia-opcoes {
        flex-direction: column;
        gap: 10px;
    }
}

/* ── Paginação ─────────────────────────────────────────────── */
.dep-paginacao {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.dep-pag-btn {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #d0d9e4;
    color: #334d60;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.dep-pag-btn:hover {
    background: #334d60;
    color: #fff;
    border-color: #334d60;
}

.dep-pag-btn--ativo {
    background: #334d60;
    color: #fff;
    border-color: #334d60;
    pointer-events: none;
}

/* ── Tela de agradecimento ───────────────────────────────── */

.dep-sucesso {
    text-align: center;
    padding: 40px 20px 20px;
}

.dep-sucesso-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #334d60;
    color: #fff;
    font-size: 32px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.dep-sucesso-titulo {
    font-size: 28px;
    font-weight: 700;
    color: #334d60;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.dep-sucesso-texto {
    font-size: 17px;
    color: #334d60;
    margin-bottom: 28px;
    line-height: 1.6;
}

.dep-sucesso-acoes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.dep-voltar-link {
    font-size: 15px;
    color: #334d60;
    text-decoration: none;
    font-weight: 500;
}

.dep-voltar-link:hover {
    text-decoration: underline;
    color: #2c4456;
}

/* ── Seção de termos de aceite ───────────────────────────── */

.dep-termos-grupo {
    padding-top: 18px;
    margin-top: 4px;
}

.dep-termo-item {
    margin-bottom: 14px;
}

.dep-termo-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.dep-termo-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #334d60;
    cursor: pointer;
}

.dep-termo-texto {
    font-size: 13px;
    line-height: 1.55;
    color: #334d60;
}

.dep-termo-erro {
    display: block;
    margin-top: 4px;
    margin-left: 26px;
    font-size: 12px;
    color: #c20024;
    font-weight: 500;
    min-height: 16px;
}

/* ── Aviso de privacidade dos dados de contato ───────────── */

.dep-contato-aviso {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(51, 77, 96, 0.07);
    border-left: 3px solid #334d60;
    padding: 10px 14px;
    margin-top: -6px;
    margin-bottom: 22px;
    border-radius: 0 4px 4px 0;
}

.dep-contato-aviso-icone {
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1.5;
    opacity: 0.75;
}

.dep-contato-aviso-texto {
    font-size: 12px;
    color: #334d60;
    line-height: 1.55;
    opacity: 0.9;
}

/* Placeholder do campo nome — cor cinza padrão */
#dep-nome::-webkit-input-placeholder { color: #999; }
#dep-nome::-moz-placeholder          { color: #999; }
#dep-nome:-ms-input-placeholder      { color: #999; }
#dep-nome::placeholder                { color: #999; }

/* Placeholder do campo cargo/unidade — cor cinza padrão */
#dep-cargo-unidade::-webkit-input-placeholder { color: #999; }
#dep-cargo-unidade::-moz-placeholder          { color: #999; }
#dep-cargo-unidade:-ms-input-placeholder      { color: #999; }
#dep-cargo-unidade::placeholder                { color: #999; }

/* ── Termo de aceite — layout e gatilho do modal ───────────── */

.dep-termo-texto {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #334d60;
}

.dep-termo-titulo {
    font-weight: 600;
}

.dep-termo-link {
    display: inline;
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: transparent;
    color: #334d60;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    font-family: inherit;
    line-height: inherit;
    text-align: left;
}

@media (max-width: 640px) {
    .dep-termos-grupo {
        text-align: left;
    }

    .dep-termo-label {
        align-items: flex-start;
    }

    .dep-termo-texto {
        align-items: flex-start;
        text-align: left;
    }

    .dep-termo-link {
        align-self: flex-start;
        text-align: left;
    }
}

.dep-termo-link:hover,
.dep-termo-link:focus {
    color: #2c4456;
    text-decoration: underline;
}

.dep-termo-link:focus-visible {
    outline: 2px solid #334d60;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ── Modal de autorização ──────────────────────────────────── */

.dep-modal {
    width: 90%;
    max-width: 560px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    background: #fff;
}

.dep-modal::backdrop {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.dep-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 12px;
    border-bottom: 1px solid #e4e8ef;
}

.dep-modal-titulo {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #334d60;
    line-height: 1.35;
}

.dep-modal-fechar {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #334d60;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.dep-modal-fechar:hover,
.dep-modal-fechar:focus {
    background: #f0f3f7;
    color: #2c4456;
}

.dep-modal-fechar:focus-visible {
    outline: 2px solid #334d60;
    outline-offset: 2px;
}

.dep-modal-corpo {
    padding: 16px 20px 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.dep-modal-corpo p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #334d60;
}
