/* Tecnologia KSK, 26/09/2026: estilos da camada ksk-portal.js (validação, mensagens, tour, rodapé, vitrine). */

/* ---------- validação ---------- */
.col-lg-6 .ksk-invalido { border-color: #ff8a8a !important; box-shadow: 0 0 0 3px rgba(255, 138, 138, .22) !important; }
.ksk-erro { margin: 6px 2px 10px; color: #ffb3b3; font-size: .86rem; line-height: 1.35; }
.col-lg-6 button.ksk-carregando { position: relative; color: transparent !important; pointer-events: none; }
.col-lg-6 button.ksk-carregando::before { content: attr(data-ksk-rotulo); position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; color: #0b1f3a; font-weight: 600; }

/* ---------- mensagens nos modais ---------- */
.modal .ksk-oculto { display: none !important; }
.modal .ksk-oculto-texto { font-size: 0 !important; }
.modal .ksk-oculto-texto .ksk-msg { font-size: 1rem; }
.modal .ksk-titulo { margin: 0; }
.ksk-msg p { margin: 0 0 10px; }
.ksk-ajuda { font-size: .9rem; color: #42526b; }
.ksk-ajuda a { color: #0a58ca; }
.ksk-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(2, 10, 28, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ksk-modal > div { background: #fff; color: #1b2433; border-radius: 12px; max-width: 460px; padding: 22px 24px; }
.ksk-modal h2 { font-size: 1.2rem; margin: 0 0 10px; }
.ksk-modal button { margin-top: 6px; background: #111; color: #fff; border: 0; border-radius: 6px; padding: 8px 22px; }

/* ---------- convite e tour ---------- */
#ksk-convite { text-align: center; margin: 10px 0 0; }
#ksk-convite button { background: none; border: 0; color: #9fe0fa; text-decoration: underline; font-size: .92rem; cursor: pointer; }
.ksk-anel { position: fixed; z-index: 1001; pointer-events: none; border-radius: 14px;
  box-shadow: 0 0 0 3px #41c0f0, 0 0 0 9999px rgba(2, 10, 28, .55); transition: none; }
@media (prefers-reduced-motion: reduce) { .ksk-anel { transition: none; } }
.ksk-tour { position: fixed; z-index: 1002; width: 320px; background: #fff; color: #1b2433; border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35); font-size: .95rem; line-height: 1.45; }
.ksk-tour p { margin: 0 0 12px; }
.ksk-tour .ksk-tour-cont { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #5b6b85; margin-bottom: 6px; }
.ksk-tour div { display: flex; justify-content: space-between; gap: 8px; }
.ksk-tour button { border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 600; cursor: pointer; }
.ksk-tour .ksk-tour-pular { background: transparent; color: #42526b; }
.ksk-tour .ksk-tour-ok { background: #41c0f0; color: #0b1f3a; }
@media (max-width: 991.98px) {
  .ksk-tour { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; border-radius: 16px 16px 0 0; padding-bottom: 22px; }
}

/* ---------- rodapé ---------- */
#ksk-rodape { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; height: 36px; padding: 0 110px 0 48px;
  display: flex; align-items: center; gap: 6px; background: rgba(5, 14, 34, .72); border-top: 1px solid rgba(255, 255, 255, .10);
  font-size: 12px; color: rgba(255, 255, 255, .70); white-space: nowrap; }
#ksk-rodape svg { vertical-align: -2px; margin-right: 4px; flex: none; }
#ksk-rodape a { color: #9fe0fa; text-decoration: none; }
#ksk-rodape a:hover, #ksk-rodape a:focus { text-decoration: underline; }
body:has(#ksk-rodape) #attempo-dados { bottom: 60px; }
@media (max-width: 991.98px), (max-height: 700px) {
  #ksk-rodape { position: static; height: auto; padding: 12px 16px 20px; flex-wrap: wrap; justify-content: center; white-space: normal;
    text-align: center; background: #0b1f3a; border: 0; }
}

/* ---------- vitrine (carrossel) ---------- */
#ksk-vitrine { display: none; }
@media (min-width: 992px) and (min-height: 601px) {
  body:has(form input#group) #ksk-vitrine, body:has(form input#email) #ksk-vitrine {
    display: flex; position: fixed; z-index: 3; left: 48px; top: 150px; bottom: 230px; width: min(560px, calc(50vw - 120px));
    flex-direction: column; justify-content: center; gap: 18px; }
}
@media (min-width: 992px) and (max-height: 700px) { #ksk-vitrine { bottom: 80px !important; } }
.ksk-slogan { margin: 0; font: 700 clamp(1.75rem, 1.2rem + 1.1vw, 2.5rem)/1.12 Inter, system-ui, sans-serif; letter-spacing: -.02em; color: #fff; }
.ksk-slogan em { font-style: normal; color: #41c0f0; }
.ksk-palco { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 60px rgba(2, 10, 28, .45); flex: none; max-height: calc(100% - 110px); }
.ksk-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 900ms ease-in-out; }
.ksk-slide.ativo { opacity: 1; }
.ksk-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.ksk-slide figcaption { position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px; background: linear-gradient(to top, rgba(6, 18, 42, .85), transparent); }
.ksk-slide figcaption span { display: block; font: 600 12px/1.4 Inter, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #9fe0fa; }
.ksk-slide figcaption strong { font: 500 17px/1.35 Inter, system-ui, sans-serif; color: #fff; }
.ksk-ctrl { display: flex; align-items: center; gap: 2px; }
.ksk-ctrl button { width: 24px; height: 24px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.ksk-ctrl .ksk-dot::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .35); transition: width .3s; }
.ksk-ctrl .ksk-dot[aria-current="true"]::before { width: 24px; background: #41c0f0; }
.ksk-ctrl .ksk-pausa { margin-left: 8px; color: rgba(255, 255, 255, .7); font-size: 12px; width: auto; }
@media (prefers-reduced-motion: reduce) { .ksk-slide { transition: none; } }

/* ---------- contato do card (substitui o texto da Siens sem link) ---------- */
.infoFooter .ksk-oculto-card { display: none !important; }
.ksk-contato { text-align: center; font-size: .82rem; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.ksk-contato p { margin: 0 0 2px; }
.ksk-contato a { color: #9fe0fa; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ksk-contato a:hover, .ksk-contato a:focus { text-decoration: underline; }

/* ---------- celular: alvos de toque de 44px e selo do reCAPTCHA fora de cima dos links ---------- */
.ksk-recaptcha { display: none; }
@media (max-width: 991.98px) {
  .ksk-contato a, #ksk-rodape a, #attempo-dados a, .col-lg-6 a[href="/recuperar-senha"], .col-lg-6 a[href="/login"] {
    display: inline-flex; align-items: center; min-height: 44px; line-height: 1.3; padding: 0 6px; }
  #ksk-convite button { min-height: 44px; padding: 0 8px; }
  .ksk-contato p { margin: 0; }
  /* o Google permite esconder o selo desde que o aviso apareça na página (feito no rodapé) */
  .grecaptcha-badge { visibility: hidden !important; }
  .ksk-recaptcha { display: block; width: 100%; font-size: 11px; color: rgba(255, 255, 255, .6); }
}

/* ---------- instruções e modo só CPF ---------- */
.col-lg-6 .ksk-oculto-instr { display: none !important; }
.col-lg-6 .ksk-instrucao { margin: 0 0 12px; font-size: .9rem; color: rgba(255, 255, 255, .82); }
#ksk-por-cota { display: none; }
@media (max-width: 991.98px) {
  form.ksk-so-cpf > div:has(> #group), form.ksk-so-cpf > .row:has(#quota) { display: none; }
  form.ksk-so-cpf #ksk-por-cota { display: block; text-align: center; margin: 0 0 6px; }
  #ksk-por-cota button { background: none; border: 0; color: #9fe0fa; text-decoration: underline; font-size: .9rem; min-height: 44px; }
}

/* ---------- celular: fundo vivo atrás do card de vidro ---------- */
#ksk-fundo { display: none; }
@media (max-width: 991.98px) {
  #ksk-fundo { display: block; position: fixed; inset: -3%; z-index: 0; pointer-events: none; overflow: hidden;
    background: #06122a center 30% / cover no-repeat; opacity: 0; transition: opacity 1.4s ease; }
  #ksk-fundo.pronto { opacity: 1; animation: ksk-deriva 30s ease-in-out infinite alternate; }
  #ksk-fundo::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 38%, rgba(65, 192, 240, .14) 50%, transparent 62%) 0 0 / 260% 100% no-repeat;
    animation: ksk-brilho 10s ease-in-out infinite; }
  body:has(#ksk-fundo) #root, body:has(#ksk-fundo) #attempo-marca, body:has(#ksk-fundo) #attempo-dados, body:has(#ksk-fundo) #ksk-rodape {
    position: relative; z-index: 1; }
  body:has(#ksk-fundo) #root .ksk-transparente { background: transparent !important; }  /* #root > div do attempo-visual.css tem id: sem #root aqui ele vence */
  /* vidro mais leve no celular: o neon do fundo aparece através do card */
  body:has(#ksk-fundo.pronto) .col-lg-6 > div { -webkit-backdrop-filter: blur(2px) saturate(1.3); backdrop-filter: blur(2px) saturate(1.3); background-color: rgba(8, 20, 48, .5) !important; }
  .col-lg-6 > div { animation: ksk-sobe .8s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes ksk-deriva { from { transform: scale(1); } to { transform: scale(1.07) translate3d(0, -1.5%, 0); } }
@keyframes ksk-brilho { 0%, 100% { background-position: 110% 0; } 50% { background-position: -10% 0; } }
@keyframes ksk-sobe { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #ksk-fundo.pronto, #ksk-fundo::after, .col-lg-6 > div { animation: none !important; } }

/* ---------- celular deitado: devolve altura ao botão ---------- */
@media (orientation: landscape) and (max-height: 420px) {
  #ksk-convite { display: none; }
  .ksk-contato { font-size: .74rem; }
}

/* botão do "Pedido recebido" */
.ksk-msg .ksk-botao { margin: 4px 0 8px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px; background: #41c0f0; color: #0b1f3a; font-weight: 600; text-decoration: none; }
