/* =========================================
   OneToolBox — Criar Site (Wizard)
   Arquivo: Ccriar_site.css
   LIMPO: sem :root | sem duplicados | sem estilos globais
   Obs:
   - NÃO define body/html genérico
   - NÃO define input/label genérico
   - Inputs de texto são por tipo (não afeta checkbox/radio)
   ========================================= */


/* =========================================
   BASE DO MÓDULO (escopo)
   ========================================= */

.cs-root {
  width: 100%;
  min-height: 100vh;
}

.criar-site * {
  box-sizing: border-box;
}

.criar-site a {
  color: inherit;
}

.criar-site h1,
.criar-site h2,
.criar-site h3 {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}


/* =========================================
   HERO
   ========================================= */

.cs-hero {
  background: linear-gradient(90deg, #7B2C3A 0%, #F97316 100%);
  padding: 26px 18px;
}

.cs-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 18px 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.cs-hero__inner h1 {
  color: #FFFFFF;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.50rem;
}

.cs-hero__inner p {
  margin: 8px 0 0 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
  font-size: 0.98rem;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}


/* =========================================
   CONTAINER PRINCIPAL
   ========================================= */

.cs-wrap {
  max-width: 1200px;
  margin: 18px auto 40px auto;
  padding: 0 16px;
}


/* =========================================
   TOPO (PROGRESSO + STEPS + BADGES)
   ========================================= */

.cs-top {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid rgba(209, 213, 219, 0.90);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  padding: 14px 14px;
  margin-bottom: 14px;
}

.cs-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-progress__bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(229, 231, 235, 0.80);
  border: 1px solid rgba(209, 213, 219, 0.85);
  overflow: hidden;
}

.cs-progress__barFill {
  height: 100%;
  width: 0%;
  background: #F97316;
  border-radius: 999px;
  transition: width 0.22s ease;
}

.cs-steps {
  margin: 10px 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 8px;
}

.cs-step {
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  padding: 8px 8px;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.85);
  background: rgba(249, 250, 251, 0.90);
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cs-step.is-active {
  background: rgba(249, 115, 22, 0.14);
  border-color: rgba(249, 115, 22, 0.40);
  color: #7B2C3A;
}

.cs-badge {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-badge__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(229, 231, 235, 0.75);
  border: 1px solid rgba(156, 163, 175, 0.55);
  color: #374151;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cs-badge__pill--accent {
  background: rgba(249, 115, 22, 0.14);
  border-color: rgba(249, 115, 22, 0.45);
  color: #7B2C3A;
}


/* =========================================
   LAYOUT (MAIN + ASIDE)
   ========================================= */

.cs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: start;
}

.cs-main {
  min-width: 0;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid rgba(209, 213, 219, 0.90);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  padding: 14px 14px;
}

.cs-side {
  position: sticky;
  top: 14px;
}


/* =========================================
   PAINÉIS (ETAPAS)
   ========================================= */

.cs-panel {
  display: none;
  padding: 6px 6px;
}

.cs-panel.is-active {
  display: block;
}

.cs-panel__head h2 {
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.cs-panel__head p {
  margin: 8px 0 0 0;
  color: #6B7280;
  line-height: 1.45;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cs-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(229, 231, 235, 0.95);
}


/* =========================================
   CARDS (INÍCIO)
   ========================================= */

.cs-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.cs-card {
  border-radius: 16px;
  border: 1px solid rgba(209, 213, 219, 0.85);
  background: rgba(249, 250, 251, 0.80);
  padding: 12px 12px;
}

.cs-card h3 {
  color: #7B2C3A;
  font-weight: 900;
  font-size: 1.00rem;
}

.cs-card p {
  margin: 8px 0 0 0;
  color: #6B7280;
  line-height: 1.45;
  font-size: 0.92rem;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}


/* =========================================
   ALERTS
   ========================================= */

.cs-alert {
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(209, 213, 219, 0.90);
  background: rgba(249, 250, 251, 0.80);
  color: #374151;
  margin-top: 12px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cs-alert--info {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.10);
  color: #7B2C3A;
}

.cs-alert--soft {
  border-color: rgba(156, 163, 175, 0.45);
  background: rgba(229, 231, 235, 0.55);
  color: #374151;
}


/* =========================================
   FORM (IMPORTANTE: NÃO CONTAMINA SWITCH)
   - Estiliza apenas inputs de texto/email/tel/etc
   - NÃO mexe em checkbox/radio
   ========================================= */

.cs-form .cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.cs-field--full {
  grid-column: 1 / -1;
}

.cs-field label {
  display: block;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

/* Apenas campos de texto (não checkbox/radio) */
.cs-field input[type="text"],
.cs-field input[type="email"],
.cs-field input[type="tel"],
.cs-field input[type="number"],
.cs-field input[type="url"],
.cs-field input[type="color"],
.cs-field input[type="date"],
.cs-field input[type="time"],
.cs-field select,
.cs-field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(209, 213, 219, 0.95);
  background: #FFFFFF;
  padding: 12px 12px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  color: #111827;
  outline: none;
}

.cs-field textarea {
  min-height: 96px;
  resize: vertical;
}

.cs-field input[type="text"]:focus,
.cs-field input[type="email"]:focus,
.cs-field input[type="tel"]:focus,
.cs-field input[type="number"]:focus,
.cs-field input[type="url"]:focus,
.cs-field input[type="color"]:focus,
.cs-field input[type="date"]:focus,
.cs-field input[type="time"]:focus,
.cs-field select:focus,
.cs-field textarea:focus {
  border-color: rgba(249, 115, 22, 0.85);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.cs-hint {
  margin-top: 6px;
  color: #6B7280;
  font-size: 0.84rem;
  line-height: 1.3;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}


/* =========================================
   PILLS / RADIOS ROW (conteúdo/estilo)
   ========================================= */

.cs-radioRow {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.cs-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid rgba(209, 213, 219, 0.90);
  background: #FFFFFF;
  padding: 12px 12px;
}

.cs-radio span {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #374151;
  font-weight: 700;
}


/* =========================================
   PÁGINAS (CHECKLIST)
   ========================================= */

.cs-pages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.cs-pages__col h3 {
  font-size: 1.00rem;
  color: #111827;
  margin-bottom: 10px;
}

.cs-page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid rgba(209, 213, 219, 0.90);
  background: #FFFFFF;
  padding: 12px 12px;
  margin-bottom: 8px;
}

.cs-page__name {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 800;
  color: #111827;
}

.cs-page__meta {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 900;
  color: #7B2C3A;
}


/* =========================================
   KPIs (tela páginas)
   ========================================= */

.cs-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.cs-kpi {
  border-radius: 14px;
  border: 1px solid rgba(209, 213, 219, 0.90);
  background: rgba(249, 250, 251, 0.80);
  padding: 12px 12px;
}

.cs-kpi__label {
  display: block;
  color: #6B7280;
  font-size: 0.86rem;
  font-weight: 800;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cs-kpi__value {
  display: block;
  margin-top: 6px;
  color: #111827;
  font-weight: 900;
  font-size: 1.05rem;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}


/* =========================================
   UPLOAD
   ========================================= */

.cs-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
  margin-top: 12px;
}

.cs-upload__box {
  border-radius: 16px;
  border: 2px dashed rgba(156, 163, 175, 0.55);
  background: rgba(229, 231, 235, 0.55);
  padding: 16px 16px;
}

.cs-upload__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cs-upload__hint {
  color: #6B7280;
  font-size: 0.86rem;
}



.cs-checklist {
  border-radius: 16px;
  border: 1px solid rgba(209, 213, 219, 0.90);
  background: #FFFFFF;
  padding: 14px 14px;
}

.cs-checklist h3 {
  font-size: 1.00rem;
  margin-bottom: 8px;
}

.cs-checklist ul {
  margin: 0;
  padding-left: 18px;
  color: #374151;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}


/* =========================================
   PLANOS
   ========================================= */

.cs-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.cs-plan {
  border-radius: 16px;
  border: 1px solid rgba(209, 213, 219, 0.90);
  background: #FFFFFF;
  padding: 12px 12px;
  cursor: pointer;
}

.cs-plan__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.cs-plan__price {
  font-weight: 900;
  color: #7B2C3A;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cs-plan__list {
  margin: 10px 0 0 0;
  padding-left: 18px;
  color: #374151;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cs-plan input {
  margin-right: 8px;
}


/* =========================================
   PAGAMENTO
   ========================================= */

.cs-pay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 12px;
  margin-top: 12px;
}

.cs-pay__box,
.cs-pay__help {
  border-radius: 16px;
  border: 1px solid rgba(209, 213, 219, 0.90);
  background: #FFFFFF;
  padding: 14px 14px;
}

.cs-pay__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(156, 163, 175, 0.45);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cs-pay__row:last-child {
  border-bottom: none;
}

.cs-pay__row--muted {
  color: #6B7280;
}


/* =========================================
   RESUMO LATERAL (aside)
   ========================================= */

.cs-sideCard {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #7B2C3A 0%, #5F1F2C 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.cs-sideCard__top {
  padding: 16px 16px 10px 16px;
}

.cs-sideCard__top h3 {
  color: #FFFFFF;
  font-weight: 900;
  font-size: 1.15rem;
}

.cs-sideCard__sub {
  margin: 6px 0 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cs-sideCard__kpis,
.cs-sideCard__list {
  background: rgba(255, 255, 255, 0.96);
  margin: 12px;
  border-radius: 14px;
  border: 1px solid rgba(123, 44, 58, 0.18);
  padding: 12px 12px;
}

.cs-sideKpi__label,
.cs-sideLine span {
  color: #6B7280;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cs-sideKpi__value,
.cs-sideLine strong {
  color: #111827;
  font-weight: 900;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cs-sideCard__note {
  margin: 12px;
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #7B2C3A;
  font-weight: 800;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}


/* =========================================
   AÇÕES DO ASIDE
   - Na etapa 0: esconder (só mostra "Começar" dentro do painel 0)
   - Da etapa 1 em diante: mostrar
   ========================================= */

.cs-actions--aside {
  display: none;
}

/* Mostra o bloco do aside quando NÃO estamos na etapa 0 */
.cs-panel.is-active[data-cs-step="0"] ~ .cs-side .cs-actions--aside {
  display: none;
}

.cs-panel.is-active:not([data-cs-step="0"]) ~ .cs-side .cs-actions--aside {
  display: flex;
}


/* =========================================
   AÇÕES INTERNAS DOS PAINÉIS
   - Só mantém a do step 0 (Começar)
   ========================================= */

.cs-panel .cs-actions {
  display: none;
}

.cs-panel[data-cs-step="0"] .cs-actions {
  display: flex;
}


/* =========================================
   AÇÕES DO ASIDE — VISIBILIDADE POR ETAPA
   Etapa 0: NÃO mostra (só "Começar")
   Etapa 1+: mostra Voltar/Continuar
   ========================================= */

.cs-actions--aside {
  display: none;
}

[data-cs-root][data-cs-current="0"] .cs-actions--aside {
  display: none;
}

[data-cs-root][data-cs-current]:not([data-cs-current="0"]) .cs-actions--aside {
  display: flex;
}


/* =========================================
   RESPONSIVO
   ========================================= */

@media (max-width: 1120px) {
  .cs-layout {
    grid-template-columns: 1fr;
  }

  .cs-side {
    position: static;
  }

  .cs-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 10px;
  }

  .cs-upload {
    grid-template-columns: 1fr;
  }

  .cs-pay {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .cs-cards {
    grid-template-columns: 1fr;
  }

  .cs-form .cs-grid {
    grid-template-columns: 1fr;
  }

  .cs-pages {
    grid-template-columns: 1fr;
  }

  .cs-plans {
    grid-template-columns: 1fr;
  }

  .cs-kpis {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   VALIDAÇÃO POR ETAPA — CAMPOS INVÁLIDOS
   ========================================= */

.cs-field.is-invalid label {
  color: #7B2C3A;
}

.cs-field.is-invalid input[type="text"],
.cs-field.is-invalid input[type="email"],
.cs-field.is-invalid input[type="tel"],
.cs-field.is-invalid input[type="number"],
.cs-field.is-invalid input[type="url"],
.cs-field.is-invalid input[type="color"],
.cs-field.is-invalid input[type="date"],
.cs-field.is-invalid input[type="time"],
.cs-field.is-invalid select,
.cs-field.is-invalid textarea {
  border-color: rgba(123, 44, 58, 0.75);
  box-shadow: 0 0 0 4px rgba(123, 44, 58, 0.14);
}

/* =========================================
   VALIDAÇÃO — SWITCH (ACEITE)
   ========================================= */

#csFAceite.is-invalid .Cl_SwitchLabel {
  color: #7B2C3A;
}

#csFAceite.is-invalid .Cl_SwitchSlider {
  box-shadow: inset 0 0 0 2px rgba(123, 44, 58, 0.65);
}





/* =========================================
   TOPO – PROGRESSO (META)
   ========================================= */

.cs-progress__meta {
  display: flex;
  justify-content: space-between;
  align-items:end;
  text-align: right;
  gap: 12px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cs-progress__meta span {
  font-weight: 800;
  font-size: 0.88rem;
  color: #374151;
}

.cs-progress__meta [data-cs-progress-label] {
  color: #7B2C3A;
}


/* =========================================
   TOPO – TIMELINE (STEPS SUPER TOP)
   - visual de processo profissional
   ========================================= */

.cs-steps {
  margin: 12px 0 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  position: relative;
}

.cs-steps::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 12px;
  height: 2px;
  background: rgba(156, 163, 175, 0.35);
}

.cs-step {
  position: relative;
  flex: 1;
  min-width: 0;
  text-align: center;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  color: #6B7280;
  padding-top: 26px;
  background: transparent;
  border: none;
  border-radius: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-step::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 2px solid rgba(156, 163, 175, 0.55);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.10);
}

.cs-step.is-done {
  color: #7B2C3A;
}

.cs-step.is-done::before {
  background: #7B2C3A;
  border-color: #7B2C3A;
}

.cs-step.is-active {
  color: #7B2C3A;
}

.cs-step.is-active::before {
  background: #F97316;
  border-color: #F97316;
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.18);
}


/* =========================================
   RESPONSIVO – TIMELINE
   - em telas menores vira “grid” com 2 linhas
   ========================================= */

@media (max-width: 1120px) {
  .cs-steps {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .cs-steps::before {
    display: none;
  }

  .cs-step {
    flex: 0 0 calc(25% - 10px);
  }
}

@media (max-width: 760px) {
  .cs-step {
    flex: 0 0 calc(50% - 10px);
  }
}



/* =========================================
   CONTATO – GRID POR PROPORÇÃO
   - Linha 1: 70/30
   - Linha 2: 55/45
   - Linha 3: 70/30
   ========================================= */

.cs-form .cs-grid.cs-grid--contato {
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 12px;
}

/* -----------------------------------------
   COLUNAS – PROPORÇÕES
   (20 colunas: 70%=14 | 30%=6 | 55%=11 | 45%=9)
   ----------------------------------------- */

.cs-col-70 {
  grid-column: span 14;
}

.cs-col-30 {
  grid-column: span 6;
}

.cs-col-55 {
  grid-column: span 11;
}

.cs-col-45 {
  grid-column: span 9;
}

/* -----------------------------------------
   RESPONSIVO – empilha em telas menores
   ----------------------------------------- */

@media (max-width: 820px) {
  .cs-form .cs-grid.cs-grid--contato {
    grid-template-columns: 1fr;
  }

  .cs-col-70,
  .cs-col-30,
  .cs-col-55,
  .cs-col-45 {
    grid-column: 1 / -1;
  }
}



/* =========================================
   TOOLTIP – AJUDA (ícone + balão)
   ========================================= */

.cs-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(156, 163, 175, 0.55);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  position: relative;
}

.cs-help i {
  width: 16px;
  height: 16px;
  color: #9CA3AF;
}

.cs-help:hover i,
.cs-help:focus i {
  color: #F97316;
}

.cs-help:focus {
  outline: 2px solid rgba(249, 115, 22, 0.30);
  outline-offset: 2px;
}

/* -----------------------------------------
   Balão
   ----------------------------------------- */

.cs-help::after {
  content: attr(data-help);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: 260px;
  max-width: 72vw;
  padding: 10px 12px;
  border-radius: 12px;
  background: #111827;
  color: #FFFFFF;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 999;
}

/* Setinha */
.cs-help::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #111827;
  transform: translateX(-50%) rotate(45deg);
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 999;
}

.cs-help:hover::after,
.cs-help:focus::after,
.cs-help.is-open::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.cs-help:hover::before,
.cs-help:focus::before,
.cs-help.is-open::before {
  opacity: 1;
}


/* =========================================
   STEP 2 – VALOR/PRAZO (mostrar apenas no RESUMO lateral)
   ========================================= */

.cs-packSetup__right {
  display: none;
}


/* =========================================
   STEP 2 – PÁGINAS (CARDS EM LINHA)
   Switch + Nome + Ajuda + Valor
   ========================================= */

.cs-pageCard.cs-pageCard--row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid rgba(209, 213, 219, 0.90);
  background: #FFFFFF;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.cs-pageCard__title {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 800;
  color: #111827;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-pageCard__price {
  justify-self: end;
}

.cs-pageCard__switch {
  justify-self: start;
}

.cs-pageCard__help {
  justify-self: center;
}

/* Melhor encaixe da ajuda dentro do card */
.cs-pageCard--row .cs-help {
  width: 26px;
  height: 26px;
}


/* =========================================
   STEP 2 – COLUNAS (35% / 65%)
   Páginas do pacote (esq) + Páginas adicionais (dir)
   ========================================= */

.cs-pages.cs-pages--switches {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 16px;
  align-items: start;
}

/* Garante que cada coluna não force quebra estranha */
.cs-pages.cs-pages--switches .cs-pages__col {
  min-width: 0;
}

/* Responsivo: abaixo de 980px empilha */
@media (max-width: 980px) {
  .cs-pages.cs-pages--switches {
    grid-template-columns: 1fr;
  }
}




/* =========================================
   STEP 4 – BRAND LAYOUT (Cores & Fontes)
   ========================================= */

.cs-brandLayout {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 16px;
  align-items: start;
}

.cs-brandLeft {
  min-width: 0;
}

.cs-brandRight {
  min-width: 0;
}

@media (max-width: 980px) {
  .cs-brandLayout {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   STEP 4 – INPUT ROWS (cor + swatch + picker)
   ========================================= */

.cs-colorRow {
  display: grid;
  grid-template-columns: 18px 1fr 44px 34px;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.cs-colorSwatch {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(156, 163, 175, 0.75);
  background: transparent;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.cs-colorPicker {
  width: 44px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(156, 163, 175, 0.45);
  background: #FFFFFF;
  cursor: pointer;
}

.cs-colorPicker::-webkit-color-swatch-wrapper {
  padding: 6px;
}

.cs-colorPicker::-webkit-color-swatch {
  border: none;
  border-radius: 8px;
}

/* =========================================
   STEP 4 – SELECT ROWS (fonte + help)
   ========================================= */

.cs-selectRow {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

/* =========================================
   STEP 4 – HELP BUTTON (reuso do seu padrão)
   ========================================= */

.cs-brandLeft .cs-help {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(156, 163, 175, 0.55);
  background: rgba(255, 255, 255, 0.90);
  cursor: pointer;
}

.cs-brandLeft .cs-help i {
  width: 16px;
  height: 16px;
  color: #9CA3AF;
}

.cs-brandLeft .cs-help:hover i,
.cs-brandLeft .cs-help:focus i {
  color: #F97316;
}

/* =========================================
   STEP 4 – INVALID STATE (hex inválido)
   ========================================= */

.cs-brandLeft input.is-invalid {
  border-color: rgba(220, 38, 38, 0.70);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* =========================================
   STEP 4 – PREVIEW CARD (mini site)
   - As variáveis são definidas via JS no #cs_brand_preview
   ========================================= */

.cs-brandPreview {
  border-radius: 16px;
  border: 1px solid rgba(209, 213, 219, 0.90);
  background: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

.cs-brandPreview {
  background: var(--cs-secondary, #E5E7EB);
}

/* =========================================
   STEP 4 – PREVIEW HEADER
   ========================================= */

.cs-prevHeader {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 14px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(209, 213, 219, 0.90);
}

.cs-prevLogo {
  font-family: var(--cs-font-title, "Montserrat");
  font-weight: 900;
  font-size: 1.02rem;
  color: var(--cs-primary, #7B2C3A);
  letter-spacing: 0.2px;
}

.cs-prevNav {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--cs-font-text, "Inter");
  font-weight: 700;
  font-size: 0.86rem;
  color: rgba(17, 24, 39, 0.72);
}

.cs-prevNav span {
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(156, 163, 175, 0.25);
  background: rgba(255, 255, 255, 0.72);
}

.cs-prevCta {
  border: none;
  border-radius: 999px;
  padding: 10px 12px;
  font-family: var(--cs-font-text, "Inter");
  font-weight: 900;
  font-size: 0.86rem;
  color: #FFFFFF;
  background: var(--cs-accent, #F97316);
  cursor: default;
}

/* =========================================
   STEP 4 – PREVIEW HERO
   ========================================= */

.cs-prevHero {
  padding: 16px 14px 10px 14px;
}

.cs-prevTitle {
  margin: 0;
  font-family: var(--cs-font-title, "Montserrat");
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--cs-primary, #7B2C3A);
}

.cs-prevText {
  margin: 8px 0 0 0;
  font-family: var(--cs-font-text, "Inter");
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(17, 24, 39, 0.78);
}

/* =========================================
   STEP 4 – PREVIEW CARDS
   ========================================= */

.cs-prevCards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 14px 14px 14px;
}

@media (max-width: 1200px) {
  .cs-prevCards {
    grid-template-columns: 1fr;
  }
}

.cs-prevCard {
  border-radius: 14px;
  border: 1px solid rgba(209, 213, 219, 0.90);
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 12px;
}

.cs-prevCardTitle {
  margin: 0;
  font-family: var(--cs-font-title, "Montserrat");
  font-weight: 900;
  font-size: 0.98rem;
  color: var(--cs-primary, #7B2C3A);
}

.cs-prevCard .cs-prevText {
  margin-top: 6px;
  font-size: 0.88rem;
}

/* =========================================
   STEP 4 – MICRO DETALHES (acabamento)
   ========================================= */

.cs-brandLeft .cs-hint {
  display: inline-block;
  margin-top: 6px;
  color: rgba(107, 114, 128, 0.95);
}

.cs-brandLeft label {
  font-weight: 900;
  color: #111827;
}


/* =========================================
   BLOCO – Upload (Arquivos e materiais)
   ========================================= */

.cs-upload__box input[type="file"] {
    display: inline-block;
    width: 100%;
    padding: 10px 12px;
    border: 1px dashed #9CA3AF;
    border-radius: 12px;
    background: #FFFFFF;
    color: #333333;
}

/* =========================================
   BLOCO – Lista de arquivos (grid 2 colunas)
   ========================================= */

.cs-upload__list {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}

/* =========================================
   BLOCO – Item de arquivo
   ========================================= */

.cs-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 10px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #FFFFFF;
}

.cs-file__left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cs-file__name {
    font-weight: 600;
    color: #333333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cs-file__meta {
    font-size: 12px;
    color: #6B7280;
}

/* =========================================
   BLOCO – Botão remover (X)
   ========================================= */

.cs-file__remove {
    width: 28px;
    height: 28px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #991B1B;
    font-size: 18px;
    line-height: 1;

    cursor: pointer;
}

.cs-file__remove:hover {
    border-color: #991B1B;
}

/* =========================================
   BLOCO – Responsivo
   ========================================= */

@media (max-width: 860px) {
    .cs-upload__list {
        grid-template-columns: 1fr;
    }
}



/* -----------------------------------------------------------------------------------------
   BLOCO - Upload / Lista de arquivos (evitar overflow e ficar alinhado)
----------------------------------------------------------------------------------------- */

.cs-main {
  min-width: 0;
}

.cs-upload {
  width: 100%;
  max-width: 100%;
}

.cs-upload__list {
  width: 100%;
  max-width: 100%;
  overflow: hidden;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cs-file {
  width: 100%;
  max-width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #FFFFFF;
  padding: 10px 12px;
}

.cs-file__left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-file__name {
  font-weight: 600;
  color: #333333;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.cs-file__meta {
  font-size: 12px;
  color: #6B7280;
}

.cs-file__remove {
  width: 28px;
  height: 28px;

  border: 1px solid #E5E7EB;
  border-radius: 999px;
  background: #FFFFFF;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #7B2C3A;
  font-size: 18px;
  line-height: 1;

  cursor: pointer;
}

.cs-file__remove:hover {
  border-color: #7B2C3A;
}
