/* ==========================================================================
   LuzSim — página de adesão (checkout)
   Medidas do PSD LuzSim-Checkout-Adesao-Step1 (canvas 2560, container 1440)
   Usa as variáveis, fontes e botões de main.css
   ========================================================================== */
.checkout { background: #f7f5fc; }

.ck-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.ck-header__inner { display: flex; align-items: center; gap: 45px; height: 85px; }
.ck-header img { height: 40px; width: auto; }
.ck-header__secure { position: relative; display: flex; align-items: center; gap: 9px; padding-left: 27px; font-size: 14px; color: var(--muted); }
.ck-header__secure::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 22px; margin-top: -11px; background: var(--line); }
.ck-header__secure .icon { color: var(--purple); width: 18px; height: 18px; margin: 0 -2px; }

.ck-layout { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 28px; align-items: start; padding-block: 31px 29px; }

/* Lateral */
.ck-side { display: grid; gap: 18px; position: sticky; top: 117px; margin-top: 1px; }
.ck-offer { position: relative; overflow: hidden; min-height: 361px; background: var(--purple-900); color: var(--white); border-radius: var(--radius); padding: 33px 28px 24px; }
.ck-offer__label { font-size: 13px; line-height: 1.2; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ck-offer__value { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; }
.ck-offer__value span { align-self: flex-start; margin-top: 6px; font-weight: 700; font-size: 20px; line-height: 1; color: #e5dbff; }
.ck-offer__value strong { font-family: var(--font-title); font-weight: 900; font-size: 42px; color: var(--yellow); line-height: 1; margin-left: -2px; }
.ck-offer__value em { align-self: flex-start; margin-top: -3px; max-width: 160px; font-style: normal; font-size: 15px; line-height: 1.3; color: #e5dbff; }
.ck-offer__list { margin: 33px 0 0; }
.ck-offer__list div { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 50px; padding: 0; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 15px; line-height: 1.2; }
.ck-offer__list div:first-child { min-height: 45px; }
.ck-offer__list dt { color: #cfc4f5; }
.ck-offer__list dd { margin: 0; font-weight: 700; text-align: right; }
.ck-offer__list .is-yellow { color: var(--yellow); font-family: var(--font-title); font-size: 18px; }
.ck-offer__list .is-green { color: #00ff42; }
.ck-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 24px 25px; }
.ck-card h2 { display: flex; align-items: center; gap: 11px; font-size: 18px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.ck-card h2 .icon { color: var(--purple); width: 20px; height: 20px; margin-left: 1px; }
.ck-card p { color: var(--muted); font-size: 14px; margin-top: 12px; line-height: 1.5; }
.ck-next { display: grid; gap: 10px; margin-top: 16px; font-size: 14px; line-height: 1.4; }
.ck-next li { display: flex; align-items: center; gap: 10px; }
.ck-next span { width: 24px; height: 24px; border-radius: 50%; background: var(--lilac); color: var(--purple); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.ck-help { margin-top: 14px; border: 1px solid #11834f; color: #11834f; background: var(--white); min-height: 46px; font-size: 17px; font-weight: 600; }
.ck-help .icon { width: 17px; height: 17px; }
.ck-help:hover { background: #ecf9ef; }

/* Painel principal */
.ck-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-height: 756px; }
.ck-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 190px)); align-items: center; height: 76px; padding: 0 0 0 30px; background: #fbfaff; }
.ck-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.2; font-weight: 600; color: #a79fbf; position: relative; }
.ck-steps li + li::before { content: ""; position: absolute; left: -22px; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: var(--lilac-200); }
.ck-steps span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid var(--lilac-200); background: var(--white); font-family: var(--font-text); font-weight: 600; font-size: 14px; transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s; }
.ck-steps .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.ck-steps .is-active { color: var(--ink); gap: 7px; }
.ck-steps .is-active span { width: 38px; height: 38px; margin-left: -4px; background: var(--purple); border-color: var(--purple); color: var(--white); box-shadow: 0 0 0 5px rgba(133, 76, 249, .16); }
.ck-steps .is-done { color: var(--purple); }
.ck-steps .is-done span { background: var(--lilac); border-color: var(--purple-300); color: var(--purple); }
.ck-steps__end span { border-color: #bfe9cc; color: #1fa83a; }
.ck-steps .ck-steps__end.is-active span { background: #1fa83a; border-color: #1fa83a; color: var(--white); box-shadow: 0 0 0 5px rgba(31, 168, 58, .16); }

.ck-step { display: none; padding: 26px 34px 20px; flex: 1; }
.ck-step.is-active { display: block; animation: step-in .45s var(--ease); }
.ck-step__head h2 { font-size: clamp(21px, 2vw, 24px); font-weight: 700; }
.ck-step__head p { color: var(--muted); margin-top: 6px; font-size: 15px; }

.ck-hello { display: flex; align-items: center; gap: 19px; }
.ck-hello__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--lilac); color: var(--purple); display: grid; place-items: center; font-family: var(--font-text); font-weight: 600; font-size: 18px; flex: none; }
.ck-hello h1 { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.2; font-weight: 700; }
.ck-hello p { color: var(--muted); font-size: 15px; line-height: 1.3; margin-top: 3px; }

.ck-tips { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 21px; min-height: 54px; margin-top: 25px; padding: 0 19px; border-radius: 10px; background: #fffde6; border: 1px solid #f1ec9c; font-size: 14px; }
.ck-tips strong { display: flex; align-items: center; gap: 15px; font-size: 15px; font-weight: 600; }
.ck-tips strong .icon { color: #9a8f00; width: 22px; height: 22px; }
.ck-tips ul { display: flex; flex-wrap: wrap; gap: 8px 28px; color: #5d5838; }
.ck-tips li { display: flex; align-items: center; gap: 7px; }
.ck-tips li .icon { width: 15px; height: 15px; color: #9a8f00; stroke-width: 2.6; }

/* Envio de arquivos */
.ck-uploads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 31px; }
.upload h2 { font-size: 18px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.upload__hint { color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 0; }
.upload__drop { display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 280px; margin-top: 14px; padding: 35px 18px 24px; border: 2px dashed #cdbdf9; border-radius: 14px; background: #fbf9ff; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s; }
.upload__drop:hover, .upload__drop.is-dragging { border-color: var(--purple); background: var(--lilac); }
.upload__drop.is-dragging { transform: scale(1.01); }
.upload__drop:focus-within { outline: 3px solid var(--purple-300); outline-offset: 3px; }
.upload__drop strong { font-family: var(--font-title); font-size: 17px; line-height: 1.2; margin-top: 14px; }
.upload__drop > span { font-size: 14px; line-height: 1.3; color: var(--muted); margin-top: 6px; }
.upload__drop .btn { width: 301px; max-width: 100%; min-height: 46px; margin-top: 21px; color: var(--white); font-size: 15px; font-weight: 600; }
.upload__drop .btn .icon { width: 15px; height: 15px; }
.upload__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--white); border: 1px solid var(--lilac-200); color: var(--purple); display: grid; place-items: center; box-shadow: 0 14px 28px -18px rgba(82, 40, 180, .6); animation: float 4s ease-in-out infinite; }
.upload__icon .icon { width: 24px; height: 24px; }
.upload__file { position: relative; width: 95.7%; min-height: 139px; display: grid; grid-template-columns: 48px minmax(0, 1fr) 40px; align-items: start; column-gap: 16px; margin-top: 14px; padding: 24px 26px 18px 24px; border: 1px solid #bfe9d1; background: #f2fbf6; border-radius: 12px; overflow: hidden; animation: step-in .4s var(--ease); }
.upload__thumb { position: relative; width: 48px; height: 60px; border-radius: 6px; background: var(--white); border: 1px solid var(--line); grid-row: span 2; }
.upload__thumb i { position: absolute; left: 8px; height: 5px; border-radius: 3px; background: var(--lilac-200); }
.upload__thumb i:nth-child(1) { top: 9px; width: 30px; height: 8px; background: var(--purple); }
.upload__thumb i:nth-child(2) { top: 24px; width: 32px; } .upload__thumb i:nth-child(3) { top: 33px; width: 32px; } .upload__thumb i:nth-child(4) { top: 42px; width: 20px; background: var(--yellow); }
.upload__meta { min-width: 0; padding-top: 6px; }
.upload__meta strong { display: block; font-size: 16px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload__meta span { display: block; margin-top: 9px; font-size: 14px; line-height: 1.2; color: var(--muted); }
.upload__remove { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--muted); display: grid; place-items: center; transition: color .2s, border-color .2s; }
.upload__remove:hover { color: var(--red); border-color: var(--red); }
.upload__remove .icon { width: 16px; height: 16px; }
.upload__ok { grid-column: 2 / -1; display: flex; align-items: center; gap: 7px; justify-self: end; margin-top: 20px; font-size: 14px; font-weight: 600; color: #18a86b; }
.upload__ok .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.upload__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: transparent; }
.upload__bar i { display: block; height: 100%; width: 0; background: #1fa83a; }
.upload__file.is-loading { border-color: var(--line); background: #fbfaff; }
.upload__file.is-loading .upload__ok { visibility: hidden; }
.upload__file.is-loading .upload__bar i { animation: load 1s var(--ease) forwards; }
@keyframes load { to { width: 100%; } }
.upload__error { display: flex; gap: 6px; align-items: center; color: var(--red); font-size: 13.5px; font-weight: 600; margin-top: 10px; }
.upload__note { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 14px; padding-left: 1px; }
.upload__note .icon { width: 15px; height: 15px; }

/* Validação e conclusão */
.ck-status { max-width: 560px; margin: 24px auto; text-align: center; }
.ck-status__icon { position: relative; width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--lilac); display: grid; place-items: center; }
.ck-status__icon .icon { width: 40px; height: 40px; color: var(--white); stroke-width: 2.6; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s var(--ease); }
.ck-loader { position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--lilac-200); border-top-color: var(--purple); animation: spin .9s linear infinite; }
.ck-status.is-done .ck-loader { display: none; }
.ck-status.is-done .ck-status__icon, .ck-status--done .ck-status__icon { background: #1fa83a; animation: pulse-ok 1.8s 1; }
.ck-status.is-done .ck-status__icon .icon, .ck-status--done .ck-status__icon .icon { opacity: 1; transform: none; }
@keyframes pulse-ok { 0% { box-shadow: 0 0 0 0 rgba(31, 168, 58, .45); } 100% { box-shadow: 0 0 0 24px rgba(31, 168, 58, 0); } }
.ck-status h2 { font-size: clamp(21px, 2vw, 27px); font-weight: 700; }
.ck-status p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }
.ck-checklist { display: grid; gap: 10px; margin: 24px auto 0; max-width: 420px; text-align: left; }
.ck-checklist li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #fbfaff; border: 1px solid var(--line); font-size: 14.5px; color: var(--muted); transition: color .3s, border-color .3s, background-color .3s; }
.ck-checklist li span { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--lilac-200); flex: none; position: relative; transition: background-color .3s, border-color .3s; }
.ck-checklist li.is-checking span { border-color: var(--purple); border-top-color: transparent; animation: spin .7s linear infinite; }
.ck-checklist li.is-ok { color: var(--ink); background: #f2fbf6; border-color: #bfe9d1; }
.ck-checklist li.is-ok span { background: #1fa83a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: #1fa83a; }
.ck-done-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.ck-done-grid div { background: var(--lilac); border-radius: 12px; padding: 16px; }
.ck-done-grid strong { display: block; font-family: var(--font-title); font-size: 26px; color: var(--purple); }
.ck-done-grid span { font-size: 13.5px; color: var(--muted); }
.ck-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* Termo */
.ck-terms { margin-top: 20px; max-height: 300px; overflow-y: auto; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaff; font-size: 14.5px; }
.ck-terms h3 { font-size: 17px; letter-spacing: 0; }
.ck-terms dl { margin: 12px 0; }
.ck-terms dl div { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ck-terms dt { width: 150px; flex: none; font-weight: 700; }
.ck-terms dd { margin: 0; color: var(--muted); }
.ck-terms p { color: var(--muted); line-height: 1.55; }
.ck-accept { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 15px; cursor: pointer; }
.ck-accept input { width: 22px; height: 22px; accent-color: var(--purple); margin: 0; flex: none; }
.ck-accept a { color: var(--purple); text-decoration: underline; }

/* Senha */
.ck-password { display: grid; gap: 14px; max-width: 460px; margin-top: 22px; }
.ck-eye { border: 0; background: none; color: var(--muted); padding: 4px; display: grid; }
.ck-eye .icon { color: inherit; }
.ck-rules { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.ck-rules li { display: flex; align-items: center; gap: 8px; transition: color .2s; }
.ck-rules li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--lilac-200); flex: none; transition: background-color .2s, border-color .2s; }
.ck-rules li.is-ok { color: #1d8f43; }
.ck-rules li.is-ok::before { background: #1fa83a; border-color: #1fa83a; }

/* Barra de ações */
.ck-actions { display: flex; align-items: center; gap: 16px; min-height: 89px; padding: 0 34px 0 35px; border-top: 1px solid var(--line); background: #fbfaff; }
.ck-actions p { flex: 1; font-size: 15px; color: var(--muted); }
.ck-actions p strong { color: var(--ink); font-weight: 600; }
.ck-actions .btn { min-height: 52px; min-width: 144px; padding: 0 24px; font-size: 16px; }
.ck-actions .btn[disabled] { opacity: 1; background: #e3dafd; color: var(--white); }

.ck-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-bottom: 38px; font-size: 13px; color: var(--muted); }
.ck-footer a:hover { color: var(--purple); }

/* Responsivo */
@media (max-width: 1080px) {
  .ck-layout { grid-template-columns: 1fr; }
  .ck-panel { order: -1; min-height: 0; }
  .ck-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 760px) {
  .ck-header__inner { height: 64px; gap: 14px; }
  .ck-header img { height: 32px; }
  .ck-header__secure { padding-left: 14px; font-size: 13px; }
  .ck-layout { padding-block: 16px; gap: 16px; }
  .ck-steps { padding: 14px 12px; }
  .ck-steps li { flex-direction: column; gap: 6px; font-size: 11.5px; text-align: center; }
  .ck-steps li + li::before { left: -32%; top: 15px; width: 28%; }
  .ck-step { padding: 22px 18px 4px; }
  .ck-hello { align-items: flex-start; }
  .ck-hello__avatar { width: 44px; height: 44px; font-size: 16px; }
  .ck-uploads { grid-template-columns: 1fr; }
  .ck-actions { padding: 14px 18px; flex-wrap: wrap; position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -10px 24px -18px rgba(31, 22, 55, .4); }
  .ck-actions p { order: -1; flex-basis: 100%; font-size: 13.5px; }
  .ck-actions .btn { flex: 1; }
  .ck-panel { overflow: visible; }
  .ck-done-grid { grid-template-columns: 1fr; }
  .ck-terms dt { width: 110px; }
}
@media (max-width: 380px) {
  .ck-header__secure span, .ck-header__secure { font-size: 12px; }
  .ck-steps li { font-size: 10.5px; }
  .ck-tips ul { gap: 6px 14px; }
}

/* Etapa 3 — conferência dos dados */
.ck-profile { display: grid; gap: 18px; margin-top: 22px; }
.ck-profile__group { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; margin: 0; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fbfaff; }
.ck-profile__group legend { padding: 0 6px; margin-left: -6px; font-family: var(--font-title); font-size: 16px; font-weight: 700; }
.ck-field--wide { grid-column: span 2; }
.ck-field .field-label { margin-bottom: 6px; font-size: 11.5px; }
.ck-field .input-wrap { height: 46px; padding: 0 14px; background: var(--white); }
.ck-field .input-wrap input { font-size: 15px; font-weight: 600; }
/* modo leitura: o dado aparece como texto, sem cara de campo */
.ck-profile:not(.is-editing) .ck-field .input-wrap { border-color: transparent; background: transparent; padding: 0; height: auto; }
.ck-profile:not(.is-editing) .ck-field .input-wrap input { padding: 0; cursor: default; }
.ck-profile:not(.is-editing) .input-clear { display: none !important; }
.ck-profile__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ck-profile__status { display: flex; align-items: center; gap: 6px; flex: 1; font-size: 13.5px; color: var(--muted); }
.ck-profile__status .icon { width: 16px; height: 16px; color: #18a86b; stroke-width: 2.6; }
.ck-profile__status.is-saved { color: #18a86b; font-weight: 600; }
.ck-profile.is-editing .ck-profile__status { visibility: hidden; }
.ck-profile__actions .btn .icon { width: 15px; height: 15px; }

/* Voltar: botão com seta; no celular só a seta */
.ck-back { padding: 0 20px; }
.ck-back .icon { width: 16px; height: 16px; }

/* Responsivo (rodada 2) */
@media (max-width: 1080px) {
  .ck-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); height: auto; min-height: 70px; padding: 12px 18px; }
  .ck-steps li + li::before { left: -18%; width: 12%; }
  .ck-step { padding: 24px 24px 18px; }
  .ck-offer { min-height: 0; }
  .ck-profile__group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ck-steps { padding: 12px 8px; }
  .ck-steps li { gap: 5px; }
  .ck-steps span { width: 26px; height: 26px; font-size: 12px; }
  .ck-steps .is-active span { width: 30px; height: 30px; margin-left: 0; box-shadow: 0 0 0 4px rgba(133, 76, 249, .16); }
  .ck-steps li + li::before { top: 13px; }
  .ck-step { padding: 20px 16px 16px; }
  .ck-hello h1 { font-size: 19px; }
  .ck-hello p { font-size: 14px; }
  .ck-tips { padding: 12px 14px; gap: 8px; }
  .ck-tips strong { font-size: 14px; gap: 10px; }
  .ck-tips ul { gap: 6px 16px; font-size: 13px; }
  .ck-uploads { margin-top: 22px; gap: 22px; }
  .upload__drop { min-height: 0; padding: 22px 14px 20px; }
  .upload__drop strong { margin-top: 10px; font-size: 16px; }
  .upload__drop .btn { width: 100%; min-height: 44px; margin-top: 14px; }
  .upload__file { width: 100%; min-height: 0; padding: 16px; column-gap: 12px; }
  .upload__ok { margin-top: 10px; }
  .ck-profile__group { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 16px; gap: 10px; }
  .ck-field--wide { grid-column: auto; }
  .ck-profile__actions .btn { flex: 1; }
  .ck-profile__status { flex-basis: 100%; }
  /* barra fixa compacta: texto em uma linha, seta para voltar e botão menor */
  .ck-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; min-height: 0; padding: 8px 12px 10px; position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -10px 24px -18px rgba(31, 22, 55, .4); }
  .ck-actions p { grid-column: 1 / -1; order: -1; font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ck-actions [data-next] { grid-column: 2; min-height: 42px; min-width: 0; font-size: 15px; }
  .ck-actions [data-back][hidden] + p + [data-next] { grid-column: 1 / -1; }
  .ck-actions .ck-back { width: 42px; min-width: 0; min-height: 42px; padding: 0; }
  .ck-steps li { font-size: 10px; letter-spacing: -.01em; white-space: nowrap; }
  .ck-back__label { display: none; }
}

@media (max-width: 360px) {
  .ck-steps { padding-inline: 4px; }
  .ck-steps li { font-size: 9px; }
  .ck-help { font-size: 15px; padding-inline: 12px; }
  .ck-terms { padding: 16px; }
  .ck-terms dl div { flex-direction: column; gap: 2px; }
  .ck-terms dt { width: auto; }
}

/* tablet e celular: cabeçalho rola junto; só a barra de avançar fica fixa */
@media (max-width: 1080px) {
  .ck-header { position: static; }
}
