/**
 * Carrossel de depoimentos + formulário de envio.
 *
 * Escopado em .pdp para não encostar no CSS do GreatPages, que é o layout de
 * todas as páginas e usa posicionamento absoluto: qualquer regra solta aqui
 * apareceria torta em oito páginas ao mesmo tempo.
 *
 * A rolagem é nativa (scroll-snap). O JS só liga as setas, os pontinhos e o
 * arrastar do mouse — sem ele o carrossel continua funcionando no dedo.
 */

.pdp {
    --pdp-magenta: #e6007e;
    --pdp-teal: #17c3c3;
    --pdp-escuro: #1f2937;
    --pdp-cinza: #6b7280;
    --pdp-borda: #e9ecef;
    font-family: Montserrat, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--pdp-escuro);
    background: linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
    padding: 54px 0 60px;
    position: relative;
    overflow: hidden;
}
.pdp *, .pdp *::before, .pdp *::after { box-sizing: border-box; }

/* Aspas gigantes de fundo: dão o ar de "seção de depoimento" sem custar imagem. */
.pdp::before {
    content: "\201C";
    position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
    font: 700 300px/1 Georgia, serif; color: rgba(23, 195, 195, .07);
    pointer-events: none; user-select: none;
}

.pdp-topo { max-width: 900px; margin: 0 auto 28px; padding: 0 20px; text-align: center; position: relative; }
.pdp-topo .olho {
    display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1.6px;
    text-transform: uppercase; color: var(--pdp-magenta); margin-bottom: 10px;
}
.pdp-topo h2 { margin: 0 0 8px; font-size: 34px; line-height: 1.15; font-weight: 800; }
.pdp-topo h2 b { color: var(--pdp-magenta); font-weight: 800; }
.pdp-topo p { margin: 0; color: var(--pdp-cinza); font-size: 15px; line-height: 1.6; }

/* ------------------------------------------------------------- trilho */
.pdp-palco { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.pdp-trilho {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; padding: 6px 2px 18px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.pdp-trilho::-webkit-scrollbar { display: none; }
.pdp-trilho.arrastando { scroll-behavior: auto; cursor: grabbing; scroll-snap-type: none; }

.pdp-card {
    flex: 0 0 360px; scroll-snap-align: center;
    background: #fff; border: 1px solid var(--pdp-borda); border-radius: 18px;
    padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 14px;
    box-shadow: 0 6px 22px rgba(31, 41, 55, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pdp-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(31, 41, 55, .11); border-color: #d9dde3; }

.pdp-card .aspas { font: 700 46px/.7 Georgia, serif; color: var(--pdp-teal); opacity: .5; height: 22px; }
.pdp-card .txt { margin: 0; font-size: 15px; line-height: 1.65; color: #374151; flex: 1; }
/* Depoimento longo não pode esticar o carrossel inteiro: os cards dividem a
   mesma altura, então um texto de 700 caracteres deixaria buraco em todos os
   outros. Fica em 8 linhas com "ler mais" — e o texto completo continua no HTML,
   visível para busca e leitor de tela. */
.pdp-card .txt.corta {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8;
    overflow: hidden; flex: 0 1 auto;
}
.pdp-card .txt.aberto { display: block; -webkit-line-clamp: none; overflow: visible; }
.pdp-card .mais {
    align-self: flex-start; border: 0; background: none; padding: 0; cursor: pointer;
    font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--pdp-magenta);
    margin-top: -6px;
}
.pdp-card .mais:hover { text-decoration: underline; }
.pdp-card .quem { display: flex; align-items: center; gap: 12px; border-top: 1px solid #f1f3f5; padding-top: 15px; }
.pdp-card .quem img, .pdp-card .quem .ini {
    width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; object-fit: cover;
    background: #f3f4f6; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(230, 0, 126, .16);
}
.pdp-card .quem .ini {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--pdp-magenta), #ff5ab4);
    color: #fff; font-weight: 800; font-size: 19px;
}
.pdp-card .quem b { display: block; font-size: 15px; line-height: 1.3; }
.pdp-card .quem span { display: block; font-size: 12.5px; color: var(--pdp-cinza); line-height: 1.35; margin-top: 2px; }
.pdp-card .selo {
    align-self: flex-start; font-size: 10.5px; font-weight: 800; letter-spacing: .4px;
    text-transform: uppercase; color: #0f766e; background: #ecfdf5; border: 1px solid #a7f3d0;
    border-radius: 999px; padding: 3px 9px;
}

/* -------------------------------------------------------------- setas */
.pdp-seta {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--pdp-borda);
    background: #fff; color: var(--pdp-escuro); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(31, 41, 55, .14); transition: opacity .2s, transform .15s, background .2s;
}
.pdp-seta:hover { background: var(--pdp-magenta); color: #fff; border-color: var(--pdp-magenta); }
.pdp-seta:active { transform: translateY(-50%) scale(.94); }
.pdp-seta[disabled] { opacity: 0; pointer-events: none; }
.pdp-seta.ant { left: -8px; }
.pdp-seta.prox { right: -8px; }
.pdp-seta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ----------------------------------------------------------- pontinhos */
.pdp-pontos { display: flex; justify-content: center; gap: 7px; margin-top: 6px; flex-wrap: wrap; padding: 0 20px; }
.pdp-pontos button {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
    background: #d4d8de; transition: width .25s, background .25s;
}
.pdp-pontos button.on { width: 26px; background: var(--pdp-magenta); }

/* ------------------------------------------------------------- chamada */
.pdp-cta { text-align: center; margin-top: 30px; padding: 0 20px; }
.pdp-cta .b {
    display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
    background: var(--pdp-magenta); color: #fff; font-family: inherit;
    font-weight: 800; font-size: 15.5px; padding: 16px 30px; border-radius: 999px;
    box-shadow: 0 10px 26px rgba(230, 0, 126, .32); transition: transform .15s, box-shadow .2s, filter .2s;
}
.pdp-cta .b:hover { filter: brightness(1.06); box-shadow: 0 14px 32px rgba(230, 0, 126, .4); }
.pdp-cta .b:active { transform: scale(.97); }
.pdp-cta .sub { margin: 12px 0 0; font-size: 13px; color: var(--pdp-cinza); }

/* --------------------------------------------------------------- modal */
.pdp-fundo {
    position: fixed; inset: 0; z-index: 99996; background: rgba(17, 24, 39, .62);
    backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .22s;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.pdp-fundo.on { opacity: 1; pointer-events: auto; }
.pdp-modal {
    background: #fff; border-radius: 20px; width: 100%; max-width: 520px;
    max-height: 92vh; overflow-y: auto; padding: 26px 26px 24px; position: relative;
    transform: translateY(18px) scale(.98); transition: transform .25s cubic-bezier(.22, 1, .36, 1);
    font-family: Montserrat, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1f2937;
}
.pdp-fundo.on .pdp-modal { transform: none; }
.pdp-modal h3 { margin: 0 0 6px; font-size: 21px; padding-right: 44px; line-height: 1.25; }
.pdp-modal .ajuda { margin: 0 0 18px; font-size: 13.5px; color: #6b7280; line-height: 1.6; }
.pdp-modal .x {
    position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0;
    border-radius: 50%; background: #f3f4f6; color: #4b5563; font-size: 19px; cursor: pointer; line-height: 1;
}
.pdp-modal .x:hover { background: #e5e7eb; }
.pdp-campo { margin-bottom: 14px; }
.pdp-campo label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.pdp-campo .op { color: #9ca3af; font-weight: 500; }
.pdp-campo input[type=text], .pdp-campo textarea {
    width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 10px;
    font-size: 16px; font-family: inherit; color: inherit; background: #fff;
}
.pdp-campo textarea { min-height: 118px; resize: vertical; line-height: 1.55; }
.pdp-campo input:focus, .pdp-campo textarea:focus {
    outline: 0; border-color: var(--pdp-teal, #17c3c3); box-shadow: 0 0 0 3px rgba(23, 195, 195, .16);
}
.pdp-campo .conta { text-align: right; font-size: 11.5px; color: #9ca3af; margin-top: 4px; }
.pdp-dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .pdp-dupla { grid-template-columns: 1fr; } }

.pdp-foto { display: flex; align-items: center; gap: 14px; }
.pdp-foto .previa {
    width: 62px; height: 62px; flex: 0 0 62px; border-radius: 50%; background: #f3f4f6;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    color: #9ca3af; font-size: 22px; border: 1px dashed #d1d5db;
}
.pdp-foto .previa img { width: 100%; height: 100%; object-fit: cover; }
.pdp-foto .escolher {
    border: 1px solid #d1d5db; background: #fff; border-radius: 10px; padding: 11px 16px;
    font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; color: #374151;
}
.pdp-foto .escolher:hover { border-color: var(--pdp-magenta, #e6007e); color: var(--pdp-magenta, #e6007e); }
.pdp-foto input[type=file] { display: none; }
.pdp-foto .nome-arq { font-size: 12px; color: #6b7280; margin-top: 4px; word-break: break-all; }

/* Campo-isca: bot preenche tudo que encontra, gente não vê isto. */
.pdp-mel { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.pdp-enviar {
    width: 100%; border: 0; border-radius: 999px; padding: 16px; cursor: pointer;
    background: var(--pdp-magenta, #e6007e); color: #fff; font-family: inherit;
    font-weight: 800; font-size: 15.5px; margin-top: 4px;
    box-shadow: 0 10px 24px rgba(230, 0, 126, .3);
}
.pdp-enviar:disabled { opacity: .6; cursor: default; box-shadow: none; }
.pdp-aviso { margin-top: 12px; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.55; display: none; }
.pdp-aviso.erro { display: block; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.pdp-aviso.ok { display: block; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.pdp-legal { margin: 14px 0 0; font-size: 11.5px; color: #9ca3af; line-height: 1.55; text-align: center; }

/* ------------------------------------------------------------- telas menores */
@media (max-width: 900px) {
    .pdp { padding: 44px 0 50px; }
    .pdp-topo h2 { font-size: 27px; }
    .pdp-card { flex-basis: 300px; padding: 22px 20px 18px; }
    .pdp-seta { display: none; }          /* no dedo, arrastar é mais natural */
    .pdp-palco { padding: 0 14px; }
    .pdp-trilho { gap: 14px; }
    .pdp::before { font-size: 200px; top: -22px; }
}
@media (max-width: 420px) {
    .pdp-card { flex-basis: 84vw; }
    .pdp-topo h2 { font-size: 24px; }
    .pdp-cta .b { width: 100%; justify-content: center; padding: 15px 20px; font-size: 15px; }
}
