/* ==============================
   RESET & BASE
============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --purple: #2e0249;
  --purple-light: #570a85;
  --lime: #ccff00;
  --lime-hover: #b3e600;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --red: #ef4444;
  --red-light: #fee2e2;
  --red-border: #fca5a5;
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-border: #86efac;
  color-scheme: light;
}

html {
  scroll-behavior: auto;
}

html.page-4-scroll-lock,
body.page-4-scroll-lock,
html.page-5-scroll-lock,
body.page-5-scroll-lock {
  overflow: hidden;
  overscroll-behavior: none;
  height: 100%;
}

body {
  font-family: 'Google Sans Text', 'Google Sans', sans-serif;
  background: var(--white);
  color: var(--gray-900);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* Selection */
::selection {
  background: var(--lime);
  color: var(--purple);
}

button,
label,
.plan-card,
.hh-btn,
.source-label,
.contract-check-label,
.custom-select-trigger,
.custom-select-option,
.btn-next,
.btn-back,
.doc-switch-btn,
.fix-pw-btn,
.review-confirm-btn {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Inputs force light */
input,
textarea,
select {
  color: #111827 !important;
  background-color: #ffffff !important;
  caret-color: #111827 !important;
}

::placeholder {
  color: #9ca3af !important;
  opacity: 1;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  -webkit-text-fill-color: #111827 !important;
  caret-color: #111827 !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ==============================
   UTILITIES
============================== */
.hidden {
  display: none !important;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease both;
}

.animate-fade-in-up {
  animation: fadeInUp 0.4s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spin {
  animation: spin 1s linear infinite;
}

.animate-phone-reveal {
  animation: phoneReveal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.animate-phone-hide {
  animation: phoneHide 0.3s cubic-bezier(0.4, 0, 1, 1) both;
}

.source-other-collapsible {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
  transition:
    grid-template-rows 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.source-other-collapsible > .field-wrap {
  overflow: hidden;
  min-height: 0;
}

.source-other-collapsible.source-other-visible {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 1rem;
  pointer-events: auto;
}

@keyframes phoneReveal {
  0% {
    opacity: 0;
    transform: translateY(-40px);
    z-index: -1;
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    z-index: 1;
  }
}

@keyframes phoneHide {
  0% {
    opacity: 1;
    transform: translateY(0);
    z-index: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-40px);
    z-index: -1;
  }
}

@keyframes sourceReveal {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes sourceHide {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes introToForm {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(-100vh);
    opacity: 0;
  }
}

.intro-exit-anim {
  animation: introToForm 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes formEnter {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-enter-anim {
  animation: formEnter 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Animação escalonada para a página de planos */
.plans-stagger-active>* {
  opacity: 0;
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.plans-stagger-active>.page-header {
  animation-delay: 0.15s;
}

.plans-stagger-active>.household-box {
  animation-delay: 0.25s;
}

.plans-stagger-active>#package-error {
  animation-delay: 0.3s;
}

.plans-stagger-active>.plans-grid {
  animation-delay: 0.35s;
}

/* Animação para a barra de navegação inferior */
.nav-stagger-active {
  opacity: 0;
  animation: navReveal 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.65s;
}

@keyframes navReveal {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  @keyframes navRevealDesktop {
    from {
      opacity: 0;
      transform: translate(-50%, 100%);
    }

    to {
      opacity: 1;
      transform: translate(-50%, 0);
    }
  }

  .nav-stagger-active {
    animation-name: navRevealDesktop;
  }
}

.slide-in-right {
  animation: slideInRight 0.3s ease both;
}

.slide-in-left {
  animation: slideInLeft 0.3s ease both;
}

/* ==============================
   LOADING SCREEN
============================== */
#loading-screen {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: fadeIn 0.2s ease;
}

#loading-screen.hidden {
  display: none !important;
}

.loading-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loading-icon-wrap {
  position: relative;
}

.loading-glow {
  position: absolute;
  inset: 0;
  background: rgba(46, 2, 73, 0.2);
  border-radius: 50%;
  filter: blur(16px);
}

.spin {
  animation: spin 1s linear infinite;
  transform-origin: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#loading-screen h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-800);
}

#loading-screen p {
  color: var(--gray-500);
  font-weight: 500;
  transition: opacity 0.3s ease;
}

/* ==============================
   SUBMIT ANIMATION OVERLAY
============================== */
#submit-anim-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#submit-anim-overlay.hidden {
  display: none !important;
}

/* O botão que expande (verde) fica no topo inicial */
.submit-ripple {
  position: absolute;
  background: #22c55e;
  pointer-events: none;
  z-index: 10;
}

/* Fundo branco que fica POR BAIXO do ripple verde */
.submit-white-bg {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0; /* Começa invisível para não esconder a página de revisão antes da hora */
  pointer-events: none;
  z-index: 5;
}

/* O check SVG grande fica no topo total */
.submit-check-wrap {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.4);
}

.submit-check-wrap svg {
  filter: drop-shadow(0 0 30px rgba(34, 197, 94, 0.5));
}

/* Animação do círculo/ripple crescendo */
@keyframes submitRippleGrow {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(var(--ripple-scale, 60)); opacity: 1; }
}

/* Check aparece com bounce */
@keyframes submitCheckIn {
  0% { opacity: 0; transform: scale(0.2); }
  60% { opacity: 1; transform: scale(1.15); }
  80% { transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* Check sobe e sai */
@keyframes submitCheckOut {
  0% { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(0.8) translateY(-80px); }
}

/* Desenho do path do check */
@keyframes submitCheckDraw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}



/* ==============================
   HERO
============================== */
.hero {
  width: 100%;
  background: var(--purple);
  background: radial-gradient(circle at 0% 0%, #4c1d95 0%, transparent 50%),
    radial-gradient(circle at 100% 0%, #2e1065 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, #1e1b4b 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, #4c1d95 0%, transparent 50%),
    #2e0249;
  padding: 2.5rem 1rem 1.75rem;
  /* Reduzido de 4rem */
  color: white;
  position: relative;
  overflow: hidden;
  max-height: 1000px;
  /* Sem transição por padrão — colapso é instantâneo */
  transition: none;
}

/* Expansão suave ao VOLTAR para a página 1 */
.hero.hero-expanding {
  transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;
}

.hero.hero-collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Glassmorphism for features */
.hero-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.625rem;
  margin-top: 1.5rem;
  /* Reduzido de 2rem */
  width: 100%;
  max-width: 40rem;
  /* Reduzido de 42rem */
  margin-left: auto;
  margin-right: auto;
}

.feature-pill {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 0.875rem;
  /* Mais compacto */
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  /* Reduzido */
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.feature-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--lime);
  transform: translateY(-2px);
}

.feature-pill svg {
  color: var(--lime);
  flex-shrink: 0;
}

.hero-shape-1 {
  top: -15%;
  right: -5%;
  width: 25rem;
  /* Reduzido de 35rem */
  height: 25rem;
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  opacity: 0.35;
  filter: blur(80px);
}

.hero-shape-2 {
  bottom: -10%;
  left: -5%;
  width: 18rem;
  /* Reduzido de 25rem */
  height: 18rem;
  background: linear-gradient(135deg, var(--lime) 0%, #a3e635 100%);
  opacity: 0.12;
  filter: blur(80px);
}

.hero-content {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  /* Reduzido de 1.25rem */
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.875rem;
  /* Ajustado */
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-tagline .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.hero-tagline span:last-child {
  font-size: 0.65rem;
  /* Reduzido */
  font-weight: 800;
  color: white;
  letter-spacing: 0.125em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  /* Reduzido */
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero h1 .lime {
  color: var(--lime);
  text-shadow: 0 0 20px rgba(204, 255, 0, 0.4);
}

.hero-sub {
  color: #cbd5e1;
  font-size: 0.8125rem;
  /* Reduzido */
  max-width: 36rem;
  margin: 0 auto;
  font-weight: 500;
}

/* ==============================
   MAIN WRAP
============================== */
.main-wrap {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.5rem 8rem;
  /* Extra padding for the fixed button */
  position: relative;
  z-index: 2;
}

.fixed-btn-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 1) 60%, rgba(255, 255, 255, 0) 100%);
  padding: 1.5rem 1.5rem 2rem;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.fixed-btn-container #start-form-btn {
  width: 100%;
  max-width: 34rem;
  min-height: 3.75rem;
  height: auto;
  font-size: 1.1rem;
  pointer-events: auto;
  letter-spacing: 0.05em;
  border-radius: 1.25rem;
  position: relative;
  text-align: center;
  padding-right: 3rem !important;
  padding-left: 3rem !important;
  /* To keep text visually centered if it wraps nicely */
}

.fixed-btn-container #start-form-btn svg {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ==============================
   STEPPER
============================== */
.stepper {
  background: transparent;
  padding: 0.75rem 0 0;
}

.stepper-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 0;
}

.stepper-track {
  position: relative;
  height: 2px;
  background: var(--gray-200);
  border-radius: 99px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.stepper-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--purple);
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  cursor: default;
  position: relative;
}

.step-bubble {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--gray-200);
  color: var(--gray-500);
  transition: all 0.3s;
  border: 2px solid transparent;
  position: relative;
}

.step-item.active .step-bubble {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(46, 2, 73, 0.12);
}

.step-item.done .step-bubble {
  background: var(--lime);
  color: var(--purple);
  border-color: var(--lime);
}

.step-label {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
  padding-bottom: 0.25rem;
  transition: color 0.3s;
}

.step-item.active .step-label {
  color: var(--purple);
  font-weight: 700;
}

.step-item.done .step-label {
  color: var(--gray-500);
}

@media (max-width: 480px) {
  .step-label {
    display: none;
  }
}

/* ==============================
   PAGES CONTAINER
============================== */
.pages-container {
  background: transparent;
  padding-top: 0;
  padding-bottom: 100px;
  /* Espaço para a navegação fixa não cobrir o conteúdo */
}

.form-page {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .form-page {
    padding: 1.25rem 0;
  }
}

/* ==============================
   PAGE HEADER
============================== */
.page-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.875rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.page-icon {
  padding: 0.5rem;
  background: rgba(46, 2, 73, 0.08);
  border-radius: 0.625rem;
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}

.page-sub {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.1rem;
  font-weight: 500;
}

/* ==============================
   PAGE NAVIGATION
============================== */
.page-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 1.25rem 1.5rem 1.75rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
  gap: 1rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, visibility 0.4s;
}

.page-nav.nav-hidden-state {
  transform: translateY(100%) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (min-width: 640px) {
  .page-nav {
    left: 50%;
    transform: translateX(-50%);
    max-width: 52rem;
    /* Alinhado com a largura do formulário */
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    border-radius: 1.25rem 1.25rem 0 0;
  }

  .page-nav.nav-hidden-state {
    transform: translate(-50%, 100%) !important;
  }
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Google Sans Text', 'Google Sans', sans-serif;
}

.btn-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 1rem;
  font-size: 0.9375rem;
  font-weight: 800;
  color: white;
  background: var(--purple);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Google Sans Text', 'Google Sans', sans-serif;
  box-shadow: 0 4px 14px rgba(46, 2, 73, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-next:active {
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .btn-back:hover {
    background: var(--gray-200);
    color: var(--gray-700);
  }

  .btn-next:hover {
    background: var(--purple-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(46, 2, 73, 0.4);
  }
}

.btn-submit {
  background: linear-gradient(135deg, #2e0249 0%, #570a85 100%) !important;
  box-shadow: 0 10px 30px -5px rgba(46, 2, 73, 0.5) !important;
  padding: 1rem 2rem !important;
}

.btn-next:disabled,
.btn-next[disabled] {
  background: var(--gray-200) !important;
  color: var(--gray-400) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
  pointer-events: none;
  opacity: 0.8;
}

/* ==============================
   HOUSEHOLD BUTTONS
============================== */
.household-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.household-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  text-align: center;
  margin-bottom: 0.75rem;
}

.household-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hh-btn {
  padding: 0.625rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--gray-200);
  background: white;
  color: var(--gray-600);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Google Sans Text', 'Google Sans', sans-serif;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hh-btn:hover {
  border-color: var(--gray-300);
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hh-btn:active {
  transform: translateY(-1px) scale(0.96);
}

.hh-btn.active {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
  box-shadow: 0 8px 16px rgba(46, 2, 73, 0.2);
  transform: translateY(-2px) scale(1.05);
}



/* ==============================
   PACKAGE ERROR
============================== */
.pkg-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--red);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* ==============================
   PLANS CHANGE HINT
============================== */
.plans-change-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 0.5rem;
  text-align: center;
}

/* ==============================
   PLANS BENEFITS
============================== */
.plan-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  margin-bottom: 1.25rem;
  padding: 0;
}

.plan-benefits li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-50);
  border: 1px solid var(--green-200);
  padding: 0.4rem 0.8rem;
  border-radius: 99px;
  white-space: nowrap;
}

.plan-benefits li svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5px;
}

/* ==============================
   PLANS GRID
============================== */
.plans-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

/* Card base */
.plan-card {
  display: flex;
  border: none;
  border-radius: 0.875rem;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  min-height: 82px;
  position: relative;
}

.plan-card:hover {
  box-shadow: 0 3px 14px rgba(46, 2, 73, 0.07);
  transform: translateY(-1px);
}

.plan-card:hover .plan-card-left {
  border-color: rgba(46, 2, 73, 0.6);
}

.plan-card:hover .plan-card-right {
  border-color: rgba(46, 2, 73, 0.25);
}

/* Card selecionado */
.plan-card.selected {
  box-shadow: 0 0 0 3px rgba(46, 2, 73, 0.12), 0 4px 16px rgba(46, 2, 73, 0.1);
  transform: translateY(-1px);
}

.plan-card.selected .plan-card-left {
  border-color: var(--purple);
  border-width: 3px;
}

.plan-card.selected .plan-card-right {
  border-color: var(--purple);
  border-width: 3px;
}

/* ── Card RECOMENDADO — igual aos demais, apenas com badge ── */

/* ── DIMMING E DESTAQUE AO SELECIONAR ── */
.plans-grid.has-selection .plan-card:not(.selected) {
  opacity: 0.55;
  filter: grayscale(0.2);
  transform: scale(0.98) !important;
  box-shadow: none !important;
  background: transparent !important;
  min-height: 82px !important;
}

.plans-grid.has-selection .plan-card:not(.selected) .plan-card-left {
  background: var(--purple) !important;
  width: 82px !important;
  border-color: var(--gray-200) !important;
}

.plans-grid.has-selection .plan-card:not(.selected) .plan-card-right {
  border-color: var(--gray-200) !important;
}

.plans-grid.has-selection .plan-card:not(.selected) .plan-megas {
  font-size: 1.9rem !important;
  text-shadow: none !important;
}

.plans-grid.has-selection .plan-card:not(.selected) .plan-megas-label {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.42rem !important;
}

.plans-grid.has-selection .plan-card:not(.selected) .plan-price-value {
  font-size: 1.2rem !important;
  color: var(--purple) !important;
}

.plans-grid.has-selection .plan-card:not(.selected) .plan-price-currency {
  color: var(--purple) !important;
}

.plans-grid.has-selection .plan-card.selected {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.03) !important;
  z-index: 5;
  background-color: #faf5ff !important;
  box-shadow: 0 0 0 4px rgba(46, 2, 73, 0.16), 0 10px 30px rgba(46, 2, 73, 0.2) !important;
}

.plans-grid.has-selection .plan-card.selected .plan-card-left {
  border-color: var(--purple) !important;
  border-width: 3px !important;
}

.plans-grid.has-selection .plan-card.selected .plan-card-right {
  border-color: var(--purple) !important;
  border-width: 3px !important;
}




/* ==============================
   UPGRADE SUGGESTION
============================== */
.upgrade-suggestion {
  margin-top: 1rem;
  padding: 1.25rem;
  background: white;
  border: 1px solid var(--purple-light);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 24px rgba(46, 2, 73, 0.08), 0 2px 8px rgba(46, 2, 73, 0.04);
  position: relative;
  overflow: hidden;
  animation: slideUpFade 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.upgrade-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.upgrade-close:hover {
  background: var(--red-light);
  color: var(--red);
  transform: scale(1.1) rotate(90deg);
}

.upgrade-close svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.upgrade-content {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding-right: 1.5rem;
}

.upgrade-icon-wrap {
  background: #faf5ff;
  color: var(--purple);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(87, 10, 133, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.upgrade-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.upgrade-title {
  font-weight: 800;
  color: var(--gray-900);
  font-size: 0.95rem;
}

.upgrade-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.4;
}

.upgrade-desc strong {
  color: var(--purple);
  font-weight: 700;
}

.upgrade-btn {
  background: var(--purple);
  border: none;
  color: white;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(46, 2, 73, 0.15);
}

.upgrade-btn:hover {
  background: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(46, 2, 73, 0.25);
}

.upgrade-btn.upgrade-btn-pulse {
  animation: upgradeBtnPulse 1.5s cubic-bezier(0.22, 1, 0.36, 1) 1;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes upgradeBtnPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 12px rgba(46, 2, 73, 0.15);
  }

  32% {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 0 0 7px rgba(87, 10, 133, 0.08), 0 8px 18px rgba(46, 2, 73, 0.22);
  }

  58% {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 4px 12px rgba(46, 2, 73, 0.17);
  }

  78% {
    transform: translateY(-1px) scale(1.015);
    box-shadow: 0 0 0 4px rgba(87, 10, 133, 0.05), 0 6px 15px rgba(46, 2, 73, 0.2);
  }
}

@keyframes upgradeOutCard {
  0% {
    transform: scale(1.03);
    opacity: 1;
    filter: blur(0);
    min-height: 82px;
    margin-top: 0;
    border-width: 3px;
  }

  40% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.03);
    opacity: 0;
    filter: blur(8px);
    min-height: 82px;
    margin-top: 10px;
    border-width: 3px;
  }
}

@keyframes collapseFadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
    max-height: 250px;
    margin-top: 1rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    filter: blur(0);
    border-width: 1px;
  }

  30% {
    opacity: 1;
    transform: scale(0.98);
  }

  100% {
    opacity: 0;
    transform: scale(0.92);
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    filter: blur(4px);
    border-width: 0;
    border: none;
  }
}

@keyframes glowInBounce {
  0% {
    transform: scale(0.85) translateY(15px);
    opacity: 0;
    box-shadow: 0 0 0 rgba(46, 2, 73, 0);
  }

  60% {
    transform: scale(1.04) translateY(-3px);
    opacity: 1;
    box-shadow: 0 0 40px rgba(46, 2, 73, 0.4);
  }

  100% {
    transform: scale(1.03) translateY(0);
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(46, 2, 73, 0.16), 0 10px 30px rgba(46, 2, 73, 0.2);
  }
}

.upgrading-out-card {
  animation: upgradeOutCard 0.35s forwards !important;
}

.upgrading-out-sugg {
  animation: collapseFadeOut 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
  pointer-events: none;
}

.upgrading-in-card {
  animation: glowInBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}


/* Full-height purple left panel */
.plan-card-left {
  background-color: var(--purple);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 82px;
  flex-shrink: 0;
  padding: 0.75rem 0;
  position: relative;
  z-index: 1;
  border: 2px solid var(--purple);
  border-radius: 0.875rem 0 0 0.875rem;
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.plan-megas {
  color: var(--lime);
  font-family: 'Inter', sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  display: block;
  letter-spacing: -0.04em;
  transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1), text-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-megas-label {
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Inter', sans-serif;
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  display: block;
  transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}



/* Selo de Selecionado no canto inferior direito */
.plan-selected-tag {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--purple);
  color: white;
  padding: 0.2rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  border-top-left-radius: 0.5rem;
  border-bottom-right-radius: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.plan-card.selected .plan-selected-tag {
  opacity: 1;
  transform: translateY(0);
}

/* Right content area */
.plan-card-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem 0.65rem 0.85rem;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
  background: white;
  border-top: 2px solid var(--gray-200);
  border-right: 2px solid var(--gray-200);
  border-bottom: 2px solid var(--gray-200);
  border-radius: 0 0.875rem 0.875rem 0;
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-card.selected .plan-card-right {
  background-color: #faf5ff;
}

/* .plan-card.recommended .plan-card-right — igual ao padrão */

.plan-speed-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-shrink: 0;
}

.plan-speed-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray-500);
  white-space: nowrap;
}

.plan-speed-item svg {
  color: var(--purple-light);
  flex-shrink: 0;
}

/* Price + badge (right column) */
.plan-price-area {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  min-width: 0;
}

/* Badge posicionado em absoluto para nunca alterar a altura do card */
.plan-rec-badge-wrap {
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
}

.plan-card.recommended .plan-rec-badge-wrap {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.plan-rec-badge {
  font-size: 0.5rem;
  font-weight: 900;
  color: var(--purple);
  background: var(--lime);
  border-radius: 0 0 0 0.4rem;
  padding: 0.18rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  animation: badgePulse 2.5s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(204, 255, 0, 0.45);
}

.badge-star {
  color: var(--purple);
  flex-shrink: 0;
  animation: starSpin 4s linear infinite;
  transform-origin: center;
  filter: drop-shadow(0 0 2px rgba(46, 2, 73, 0.4));
}

@keyframes starSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }

  25% {
    transform: rotate(72deg) scale(1.2);
  }

  50% {
    transform: rotate(144deg) scale(1);
  }

  75% {
    transform: rotate(216deg) scale(1.15);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.5);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(204, 255, 0, 0);
  }
}

.plan-price-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-price {
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: baseline;
  color: var(--purple);
  font-weight: 900;
  gap: 0.08rem;
  white-space: nowrap;
}

.plan-price-currency {
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-price-value {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Card RECOMENDADO — Destaque Maior sem parecer selecionado ── */
.plan-card.recommended:not(.selected) {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 2, 73, 0.08);
  z-index: 2; /* Fica acima dos cards normais */
}

.plan-card.recommended:not(.selected) .plan-card-left {
  background-color: var(--purple-light);
  border-color: var(--purple-light);
}

.plan-card.recommended:not(.selected) .plan-card-right {
  background-color: #fdfaff;
  border-color: rgba(46, 2, 73, 0.1);
}

.plan-card.recommended .plan-megas {
  font-size: 2.15rem; /* Bem maior que 1.9rem padrão */
  text-shadow: 0 4px 10px rgba(204, 255, 0, 0.35); /* Glow sutil do verde lima */
}

.plan-card.recommended .plan-price-value {
  font-size: 1.45rem;
  color: var(--purple);
}

.plan-card.recommended .plan-price-currency {
  color: var(--purple);
}

/* ==============================
   WI-FI INFO NOTE
============================== */
.wifi-info-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 1.5rem;
  box-shadow: 0 4px 15px -3px rgba(34, 197, 94, 0.15);
}

.wifi-info-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #22c55e;
  width: 18px;
  height: 18px;
}

.wifi-info-note strong {
  font-weight: 800;
  color: #15803d;
}

/* ==============================
   PAYMENT DETAILS
============================== */
.payment-details {
  background: linear-gradient(180deg, #ffffff 0%, #fdfdff 100%);
  border: 1px solid #e7eaf1;
  border-radius: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.payment-details:first-of-type {
  margin-top: 1.5rem;
  /* Espaço para ficar na parte branca */
}

.payment-details[open] {
  border-color: #cab4df;
  box-shadow: 0 10px 24px rgba(46, 2, 73, 0.12);
  transform: translateY(-1px);
  position: relative;
  z-index: 800;
}

.payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.1rem;
  cursor: pointer;
  list-style: none;
  /* remove default triangle */
  color: var(--gray-700);
  font-weight: 700;
  font-size: 0.9rem;
  background: linear-gradient(180deg, #fafbff 0%, #f5f7fb 100%);
  transition: background 0.2s, border-color 0.2s;
  user-select: none;
  border-bottom: 1px solid transparent;
}

.payment-summary::-webkit-details-marker {
  display: none;
}

.payment-summary:hover {
  background: linear-gradient(180deg, #f7f9ff 0%, #eef2f8 100%);
}

.payment-summary-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gray-800);
}

.payment-summary-title svg {
  color: var(--purple-light);
  background: #f5edff;
  border: 1px solid #e6d8fb;
  border-radius: 0.6rem;
  padding: 0.25rem;
  box-sizing: content-box;
  flex-shrink: 0;
}

.payment-chevron {
  color: var(--gray-500);
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, color 0.2s ease, border-color 0.2s ease;
}

.payment-details[open] .payment-chevron {
  transform: rotate(180deg);
  color: var(--purple-light);
  border-color: #d8c3ef;
}

.payment-details[open] .payment-summary {
  background: white;
  border-bottom-color: var(--gray-100);
}

.payment-content-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfe 100%);
  overflow: hidden;
}

.payment-details.open-active .payment-content-wrapper {
  grid-template-rows: 1fr;
}

.payment-details.closing .payment-content-wrapper {
  grid-template-rows: 0fr;
}

.payment-content {
  overflow: hidden;
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
  opacity: 0;
  transform: translateY(-4px);
}

.payment-details.open-active .payment-content {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  opacity: 1;
  transform: translateY(0);
}

.payment-details.closing .payment-content {
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-4px);
}

.payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.68rem;
  justify-content: center;
}

.pay-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.81rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--gray-700);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 0.52rem 0.95rem;
  border-radius: 0.8rem;
  border: 1px solid #dde5f0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pay-item:hover {
  border-color: #cdbbe4;
  box-shadow: 0 6px 14px rgba(46, 2, 73, 0.09);
  transform: translateY(-1px);
}

.pay-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}

.pay-item-icon {
  color: currentColor;
}

.pay-item-label {
  line-height: 1.05;
  white-space: nowrap;
}

.pay-item-pix .pay-icon-wrap {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.pay-item-pix .pay-item-label {
  color: #0f766e;
}

.pay-item-boleto .pay-icon-wrap {
  background: #f5f0ff;
  border-color: #dcccf8;
}

.pay-item-boleto .pay-item-icon {
  color: #6d28d9;
}

.pay-item-cash .pay-icon-wrap {
  background: #fff7ed;
  border-color: #fed7aa;
}

.pay-item-cash .pay-item-icon {
  color: #b45309;
}

.pay-img-pix {
  height: 13px;
  width: auto;
  object-fit: contain;
  filter: saturate(1.05);
}

.pay-item-icon-cash {
  width: 17px;
  height: 17px;
}

@media (max-width: 420px) {
  .pay-item {
    padding: 0.48rem 0.82rem;
    gap: 0.45rem;
  }

  .pay-item-label {
    font-size: 0.78rem;
  }
}

.pay-img-cards {
  display: block;
  max-width: 90%;
  height: auto;
  margin: 0 auto;
}

.payment-cards-container {
  margin-top: 1.25rem;
  text-align: center;
}

.pay-cards-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 0.6rem;
}


.payment-whatsapp-note {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: #00a859;
  font-weight: 700;
  text-align: center;
}

/* ==============================
   LOCATION DETAILS (ONDE NOS ENCONTRAR)
============================== */
.location-content {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
}

.loc-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 0.45rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.loc-btn-whatsapp {
  background: #00a859;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 168, 89, 0.2);
}

.loc-btn-whatsapp:hover {
  background: #00934e;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 168, 89, 0.3);
}

.loc-btn-maps {
  background: white;
  color: var(--purple);
  border-color: var(--purple-light);
  box-shadow: 0 2px 8px rgba(46, 2, 73, 0.05);
}

.loc-btn-maps:hover {
  background: #faf5ff;
  border-color: var(--purple);
  transform: translateY(-1px);
}

.address-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  color: var(--gray-700);
}

.address-box .loc-icon {
  color: var(--purple);
  flex-shrink: 0;
}

.address-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
}

.whatsapp-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.copy-phone-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid #dde5f0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  justify-content: flex-start;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  position: relative;
}

.copy-phone-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 14px rgba(46, 2, 73, 0.08);
  border-color: #cdbbe4;
  background: #ffffff;
}

.copy-phone-box.copied {
  color: #00a859;
  border-color: #00a859;
  background-color: #f0fdf4;
}

.phone-label-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.phone-label {
  font-size: 0.65rem;
  opacity: 0.7;
  font-weight: 500;
  margin-top: 0.1rem;
}

.copy-phone-box .copy-text-default,
.copy-phone-box .copy-icon,
.copy-phone-box .loc-icon,
.copy-phone-box .whatsapp-icon {
  transition: opacity 0.2s;
}

.copy-phone-box.copied .copy-text-default,
.copy-phone-box.copied .copy-icon,
.copy-phone-box.copied .loc-icon,
.copy-phone-box.copied .whatsapp-icon {
  opacity: 0;
  pointer-events: none;
}

.copy-text-copied {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
  display: block !important;
  pointer-events: none;
}

.copy-phone-box.copied .copy-text-copied {
  opacity: 1;
}

/* ==============================
   DUE DATE BOX
============================== */
.due-box {
  background: var(--gray-50);
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--gray-100);
}

/* ==============================
   FIELDS
============================== */
.fields-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.field-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Mantém o bloco do ICMS acima do IE quando o select estiver aberto */
#icms-wrap {
  position: relative;
  z-index: 20;
}

.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}

.label-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.req {
  color: var(--red);
}

.sub-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-bottom: 0.375rem;
}

.email-sub-below {
  margin-top: 0.375rem;
  margin-bottom: 0;
}

.label-count-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.char-count {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--gray-400);
  background: var(--gray-50);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--gray-100);
  margin-top: 0.125rem;
  margin-left: 0.5rem;
  white-space: nowrap;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-200);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Google Sans Text', 'Google Sans', sans-serif;
  font-size: 0.9375rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--gray-300);
}

input:focus,
textarea:focus,
select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--red-border);
}

input[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

textarea {
  resize: none;
}

select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-wrap {
  position: relative;
}

.select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gray-500);
  display: flex;
}

.field-error {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.375rem;
  color: var(--red);
  font-size: 0.875rem;
  font-weight: 500;
  animation: fadeIn 0.2s ease;
}

.field-error::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") no-repeat center;
  flex-shrink: 0;
}

/* ==============================
   PHONE BUTTONS
============================== */
.add-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.25rem;
  transition: color 0.2s;
  margin-top: 0.5rem;
  font-family: 'Google Sans Text', 'Google Sans', sans-serif;
}

.add-phone-btn:hover {
  color: var(--purple-light);
}

.remove-phone-btn {
  position: absolute;
  right: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--red);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  font-family: 'Google Sans Text', 'Google Sans', sans-serif;
}

.remove-phone-btn:hover {
  color: #b91c1c;
}

/* ==============================
   EMAIL SUGGESTIONS
============================== */
.email-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  animation: fadeIn 0.2s ease;
}

.email-sugg-btn {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  background: var(--gray-50);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Google Sans Text', 'Google Sans', sans-serif;
}

.email-sugg-btn:hover {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}

/* ==============================
   WI-FI STUFF
============================== */
@keyframes reqMetPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes checkmarkPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.req-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid var(--gray-100);
  background: var(--gray-50);
  color: var(--gray-400);
  margin-top: 0.75rem;
  transition: all 0.3s;
}

.req-badge.met {
  background: var(--green-50);
  color: #15803d;
  border-color: var(--green-border);
  animation: reqMetPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.req-badge .req-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-200);
  flex-shrink: 0;
}

.cep-feedback {
  height: 1.5rem;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cep-feedback.is-loading {
  color: transparent;
}

.cep-feedback.is-loading::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(46, 2, 73, 0.22);
  border-top-color: var(--purple);
  border-radius: 999px;
  box-sizing: border-box;
  animation: reviewConfirmSpinner 0.72s linear infinite;
}

.cep-feedback.is-valid {
  color: transparent;
}

.cep-feedback.is-valid::before {
  content: '';
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  flex-shrink: 0;
}

.cep-feedback.is-error {
  color: var(--red);
}

.cep-unknown-toggle {
  margin-top: 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  user-select: none;
}

.cep-unknown-toggle input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--purple);
  cursor: pointer;
}

#addressCep:disabled,
#addressComplement:disabled {
  background: var(--gray-100) !important;
  border-color: var(--gray-200);
  color: var(--gray-400) !important;
}

.address-soft-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gray-200) 14%, var(--gray-200) 86%, transparent 100%);
  margin: -0.25rem 0 0.25rem;
}

.address-auto-fill-note {
  margin-top: -0.5rem;
  margin-bottom: -0.75rem;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.address-street-number-row {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

body.page-5-scroll-lock #form-screen .main-wrap {
  padding-bottom: 6.8rem;
}

body.page-5-scroll-lock #form-screen .pages-container {
  padding-bottom: 0.5rem;
}

body.page-5-scroll-lock #global-nav {
  padding: 0.95rem 1.3rem 1.1rem;
}

body.page-5-scroll-lock #page-5.form-page {
  padding-top: 0.6rem;
  padding-bottom: 0.35rem;
}

body.page-5-scroll-lock #page-5 .page-header {
  gap: 0.65rem;
  padding-bottom: 0.72rem;
  margin-bottom: 0.8rem;
}

body.page-5-scroll-lock #page-5 .page-icon {
  padding: 0.45rem;
  border-radius: 0.6rem;
}

body.page-5-scroll-lock #page-5 .page-icon svg {
  width: 19px;
  height: 19px;
}

body.page-5-scroll-lock #page-5 .page-title {
  font-size: 1.04rem;
}

body.page-5-scroll-lock #page-5 .page-sub {
  font-size: 0.76rem;
  margin-top: 0;
}

body.page-5-scroll-lock #page-5 .fields-col {
  gap: 1rem;
}

body.page-5-scroll-lock #page-5 .field-label {
  margin-bottom: 0.28rem;
  font-size: 0.82rem;
}

body.page-5-scroll-lock #page-5 input[type="text"] {
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
}

body.page-5-scroll-lock #page-5 .cep-unknown-toggle {
  margin-top: 0.32rem;
  gap: 0.38rem;
  font-size: 0.74rem;
}

body.page-5-scroll-lock #page-5 .cep-unknown-toggle input[type="checkbox"] {
  width: 0.95rem;
  height: 0.95rem;
}

body.page-5-scroll-lock #page-5 .field-error {
  margin-top: 0.28rem;
  font-size: 0.78rem;
  line-height: 1.2;
}

body.page-5-scroll-lock #page-5 .field-error::before {
  width: 14px;
  height: 14px;
}

body.page-5-scroll-lock #page-5 .cep-feedback {
  height: 1.28rem;
  margin-top: 0.24rem;
  font-size: 0.7rem;
}

body.page-5-scroll-lock #page-5 .address-auto-fill-note {
  margin-top: -0.28rem;
  margin-bottom: -0.32rem;
  font-size: 0.74rem;
  line-height: 1.2;
}

body.page-5-scroll-lock #page-5 .address-street-number-row {
  gap: 0.75rem;
}

body.page-5-scroll-lock #page-5 .address-soft-divider {
  margin: 0.14rem 0;
}

@media (max-height: 740px) {
  body.page-5-scroll-lock #global-nav {
    padding: 0.78rem 1.05rem 0.95rem;
  }

  body.page-5-scroll-lock #page-5 .fields-col {
    gap: 0.8rem;
  }

  body.page-5-scroll-lock #page-5 input[type="text"] {
    padding: 0.58rem 0.8rem;
    font-size: 0.86rem;
  }
}

.req-badge.met .req-dot {
  display: none;
}

.req-badge.met::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  flex-shrink: 0;
  animation: checkmarkPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pw-reqs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pw-reqs-note {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--gray-500);
}

.pw-req {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid var(--gray-100);
  background: var(--gray-50);
  color: var(--gray-400);
  transition: all 0.3s;
}

.pw-req .req-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-200);
  flex-shrink: 0;
}

.pw-req.met {
  background: var(--green-50);
  color: #15803d;
  border-color: var(--green-border);
  animation: reqMetPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pw-req.met .req-dot {
  display: none;
}

.pw-req.met::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  flex-shrink: 0;
  animation: checkmarkPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.password-input-shell {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background: white;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.password-input-shell:hover {
  border-color: var(--gray-300);
}

.password-input-shell:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.password-input-shell:has(> input[aria-invalid="true"]) {
  border-color: var(--red-border);
}

.password-input-shell:has(> input[aria-invalid="true"]):focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.password-input-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-130%) rotate(-8deg);
  background:
    linear-gradient(
      98deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 32%,
      rgba(255, 255, 255, 0.38) 42%,
      rgba(255, 255, 255, 0.9) 50%,
      rgba(155, 99, 209, 0.65) 56%,
      rgba(255, 255, 255, 0) 68%,
      rgba(255, 255, 255, 0) 100%
    );
  filter: blur(1.1px) drop-shadow(0 0 10px rgba(155, 99, 209, 0.45));
  z-index: 2;
}

#wifiPassword,
#email,
#addressStreet,
#addressNumber,
#addressComplement,
#addressReferencePoint,
#propertyDetails {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  box-shadow: none;
}

#wifiPassword {
  padding-right: 2.9rem;
}

#wifiPassword-shell .password-visibility-btn {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--gray-500);
  border-radius: 999px;
  cursor: pointer;
  z-index: 3;
  transition: color 0.2s, background-color 0.2s;
}

#wifiPassword-shell .password-visibility-btn:hover {
  color: var(--gray-700);
  background: var(--gray-100);
}

#wifiPassword-shell .password-visibility-btn:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: 1px;
}

#wifiPassword-shell .password-visibility-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#wifiPassword-shell .password-visibility-btn .icon-show {
  display: none;
}

#wifiPassword-shell .password-visibility-btn .icon-hide {
  display: block;
}

#wifiPassword-shell .password-visibility-btn[aria-pressed="true"] .icon-show {
  display: block;
}

#wifiPassword-shell .password-visibility-btn[aria-pressed="true"] .icon-hide {
  display: none;
}

.password-input-shell.shine-active::after {
  animation: password-field-shine var(--field-shine-duration, 900ms) cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.password-input-shell.reveal-active::after {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 36%,
      rgba(255, 255, 255, 0.84) 47%,
      rgba(167, 112, 219, 0.72) 55%,
      rgba(255, 255, 255, 0) 68%,
      rgba(255, 255, 255, 0) 100%
    );
  filter: blur(0.65px) drop-shadow(0 0 8px rgba(155, 99, 209, 0.34));
  animation: password-field-reveal var(--field-shine-duration, 760ms) cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.password-input-shell.reveal-active-reverse::after {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 36%,
      rgba(255, 255, 255, 0.84) 47%,
      rgba(167, 112, 219, 0.72) 55%,
      rgba(255, 255, 255, 0) 68%,
      rgba(255, 255, 255, 0) 100%
    );
  filter: blur(0.65px) drop-shadow(0 0 8px rgba(155, 99, 209, 0.34));
  animation: password-field-reveal-reverse var(--field-shine-duration, 760ms) cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes password-field-shine {
  0% {
    opacity: 0;
    transform: translateX(-130%) rotate(-8deg);
  }

  18% {
    opacity: 1;
  }

  72% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(130%) rotate(-8deg);
  }
}

@keyframes password-field-reveal {
  0% {
    opacity: 0;
    transform: translateX(-118%);
  }

  8% {
    opacity: 1;
  }

  92% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(118%);
  }
}

@keyframes password-field-reveal-reverse {
  0% {
    opacity: 0;
    transform: translateX(118%);
  }

  8% {
    opacity: 1;
  }

  92% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(-118%);
  }
}

.fix-pw-btn {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  background: var(--purple);
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(46, 2, 73, 0.2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Google Sans Text', 'Google Sans', sans-serif;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 1rem;
  margin: 0;
  pointer-events: none;
}

.fix-pw-btn.visible {
  max-height: 50px;
  opacity: 1;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  pointer-events: auto;
}

.fix-pw-btn:hover {
  background: var(--purple-light);
  transform: translateY(-2px);
}

.fix-pw-btn:active {
  transform: translateY(0);
}

.fix-pw-btn:disabled {
  cursor: progress;
  opacity: 0.88;
}

/* ==============================
   SOURCES GRID
============================== */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .sources-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.source-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  min-height: 5.5rem;
  border-radius: 1rem;
  border: 1.5px solid var(--gray-200);
  background: white;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.8125rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.source-label:hover {
  border-color: var(--purple-light);
  color: var(--purple);
  background: #faf5ff;
}

.source-label.selected {
  border-color: var(--purple);
  background: var(--purple);
  color: white;
}

.source-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.125rem;
  transition: transform 0.3s ease;
}

.source-label.selected .source-icon {
  transform: scale(1.1);
}

.source-label input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.contract-check-label {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  cursor: pointer;
  padding: 1.25rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 1rem;
  background: var(--gray-50);
  transition: all 0.3s ease;
  user-select: none;
}

.contract-check-label:hover {
  border-color: var(--gray-300);
  background: white;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.contract-check-label input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--purple);
  flex-shrink: 0;
  margin-top: 0.125rem;
  cursor: pointer;
}

.contract-check-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gray-700);
}

.contract-check-text strong {
  color: var(--purple);
  font-weight: 700;
}

/* ==============================
   FOOTER
============================== */
.footer-copy {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.875rem;
  margin-top: 2.5rem;
  font-weight: 500;
}

/* ==============================
   REVIEW SCREEN
============================== */
#review-screen {
  min-height: 100vh;
  background: var(--gray-50);
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
}

/* ==============================
   EDIT OVERLAY
============================== */
.edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 23, 42, 0);
  pointer-events: none;
  transition: background 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    backdrop-filter 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.edit-overlay:not(.hidden) {
  pointer-events: all;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px) saturate(1.4);
}

/* ── Panel ── */
.edit-overlay-panel {
  background: white;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  border-radius: 1.75rem 1.75rem 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;

  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.34, 1, 0.64, 1),
    opacity 0.45s ease;

  box-shadow:
    0 -24px 70px rgba(15, 23, 42, 0.3);
}

.edit-overlay:not(.hidden) .edit-overlay-panel {
  transform: translateY(0);
  opacity: 1;
}

/* ── Header ── */
.edit-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem 0.9rem;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}

/* drag handle */
.edit-overlay-handle {
  width: 2.25rem;
  height: 4px;
  background: var(--gray-200);
  border-radius: 99px;
  margin: 0.6rem auto 0;
  flex-shrink: 0;
}

.edit-overlay-title {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.06em;

  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.35s ease 0.18s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.18s;
}

.edit-overlay:not(.hidden) .edit-overlay-title {
  opacity: 1;
  transform: translateX(0);
}

.edit-overlay-close {
  background: rgba(46, 2, 73, 0.07);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  cursor: pointer;
  transition: background 0.2s;

  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  transition: background 0.2s,
    opacity 0.35s ease 0.28s,
    transform 0.45s cubic-bezier(0.34, 1.5, 0.64, 1) 0.28s;
}

.edit-overlay:not(.hidden) .edit-overlay-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.edit-overlay-close:hover {
  background: rgba(46, 2, 73, 0.14);
  transform: rotate(90deg) scale(1.08) !important;
}

/* ── Content ── */
.edit-overlay-content {
  overflow-y: auto;
  flex: 1;
  padding: 1.25rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

/* Stagger every direct child of the content */
.edit-overlay-content>* {
  opacity: 0;
  transform: translateY(18px);
  animation: overlayChildIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.edit-overlay-content>*:nth-child(1) {
  animation-delay: 0.15s;
}

.edit-overlay-content>*:nth-child(2) {
  animation-delay: 0.22s;
}

.edit-overlay-content>*:nth-child(3) {
  animation-delay: 0.28s;
}

.edit-overlay-content>*:nth-child(4) {
  animation-delay: 0.34s;
}

.edit-overlay-content>*:nth-child(5) {
  animation-delay: 0.40s;
}

.edit-overlay-content .field-wrap {
  opacity: 0;
  transform: translateY(16px);
  animation: overlayChildIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.edit-overlay-content .field-wrap:nth-child(1) {
  animation-delay: 0.18s;
}

.edit-overlay-content .field-wrap:nth-child(2) {
  animation-delay: 0.25s;
}

.edit-overlay-content .field-wrap:nth-child(3) {
  animation-delay: 0.31s;
}

.edit-overlay-content .field-wrap:nth-child(4) {
  animation-delay: 0.37s;
}

.edit-overlay-content .field-wrap:nth-child(5) {
  animation-delay: 0.43s;
}

.edit-overlay-content .field-wrap:nth-child(6) {
  animation-delay: 0.48s;
}

@keyframes overlayChildIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Footer ── */
.edit-overlay-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  background: white;
  flex-shrink: 0;

  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease 0.4s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}

.edit-overlay:not(.hidden) .edit-overlay-footer {
  opacity: 1;
  transform: translateY(0);
}

.edit-save-btn {
  width: 100%;
  background: linear-gradient(130deg, var(--purple-light) 0%, var(--purple) 100%);
  color: white;
  border: none;
  border-radius: 0.875rem;
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(46, 2, 73, 0.28);
  font-family: 'Google Sans Text', 'Google Sans', sans-serif;
  letter-spacing: 0.02em;
}

.edit-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(46, 2, 73, 0.38), 0 0 0 3px rgba(204, 255, 0, 0.5);
}

.edit-save-btn:active {
  transform: scale(0.97);
}

.edit-save-btn:disabled,
.edit-save-btn[disabled] {
  background: var(--gray-200) !important;
  color: var(--gray-400) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
  pointer-events: none;
  opacity: 0.8;
}


.review-outer {
  max-width: 48rem;
  margin: 0 auto;
}

.text-center-block {
  text-align: center;
  margin-bottom: 2.5rem;
}

.review-title {
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.review-sub {
  color: var(--gray-500);
}

.review-card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid var(--gray-100);
}

.review-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .review-body {
    padding: 1.5rem;
  }
}

.review-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .review-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.review-card-inner {
  background: rgba(249, 250, 251, 0.5);
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--gray-100);
  transition: border-color 0.2s;
}

.review-card-inner:hover {
  border-color: rgba(46, 2, 73, 0.2);
}

.review-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 0.375rem;
  margin-bottom: 0.75rem;
  margin-top: 0.25rem;
}

.review-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--purple);
}

.review-section-title h3 {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.edit-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--gray-400);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s;
  font-family: 'Google Sans Text', 'Google Sans', sans-serif;
}

.edit-btn:hover {
  color: #2563eb;
  background: #eff6ff;
}

.edit-label {
  opacity: 0;
  transition: opacity 0.2s;
}

.edit-btn:hover .edit-label {
  opacity: 1;
}

.data-row {
  margin-bottom: 0.5rem;
}

.data-row:last-child {
  margin-bottom: 0;
}

.data-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  margin-bottom: 0.125rem;
  letter-spacing: 0.025em;
}

.data-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
  word-break: break-word;
}

.data-value.highlight {
  color: var(--purple);
  font-weight: 700;
}

/* Plan review box */
.plan-review-box {
  background: rgba(46, 2, 73, 0.05);
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(46, 2, 73, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .plan-review-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.plan-review-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
}

.plan-review-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--purple);
}

.plan-review-price {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

.plan-review-due {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: var(--purple);
}

.plan-due-label {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  display: block;
  line-height: 1;
  margin-bottom: 0.125rem;
}

.plan-due-val {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-800);
  display: block;
}

/* Review footer */
.review-footer {
  background: white;
  border-top: 1px solid var(--gray-100);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column-reverse;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .review-footer {
    flex-direction: row;
  }
}

.review-back-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
  font-family: 'Google Sans Text', 'Google Sans', sans-serif;
}

.review-back-btn:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

@media (min-width: 768px) {
  .review-back-btn {
    width: auto;
  }
}

.review-confirm-btn {
  width: 100%;
  background: var(--green);
  color: white;
  font-weight: 900;
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
  transition: all 0.3s;
  font-family: 'Google Sans Text', 'Google Sans', sans-serif;
}

.review-confirm-btn:hover {
  background: var(--green); /* NÃ£o muda de cor ao passar o mouse */
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.34);
}

.review-confirm-btn:active {
  transform: none;
}

.review-confirm-btn:disabled {
  opacity: 1; /* Mantém a cor vibrante mesmo processando */
  cursor: not-allowed;
}

/* Estado de "expandindo" ao clicar em enviar */
.review-confirm-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.review-confirm-icon-stack {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.review-confirm-check,
.review-confirm-spinner {
  position: absolute;
  inset: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.review-confirm-check {
  opacity: 1;
  transform: scale(1);
}

.review-confirm-spinner {
  width: 24px;
  height: 24px;
  margin: auto;
  border: 2.5px solid rgba(255, 255, 255, 0.32);
  border-top-color: #ffffff;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.7);
  animation: none;
  box-sizing: border-box;
}

.review-confirm-btn.submit-loading {
  pointer-events: none;
  cursor: default;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.34) !important;
}

.review-confirm-btn.submit-loading .review-confirm-check {
  opacity: 0;
  transform: scale(0.72);
}

.review-confirm-btn.submit-loading .review-confirm-spinner {
  opacity: 1;
  transform: scale(1);
  animation: reviewConfirmSpinner 0.72s linear infinite;
}

.review-confirm-btn .ripple {
  background-color: rgba(255, 255, 255, 0.52);
  animation-duration: 0.5s;
}

@keyframes reviewConfirmSpinner {
  from {
    transform: scale(1) rotate(0deg);
  }

  to {
    transform: scale(1) rotate(360deg);
  }
}


@media (min-width: 768px) {
  .review-confirm-btn {
    width: auto;
  }
}

/* ==============================
   SUCCESS SCREEN
============================== */
#success-screen {
  min-height: 100vh;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.success-outer {
  max-width: 48rem;
  width: 100%;
}

.success-header {
  text-align: center;
  margin-bottom: 2rem;
}

.success-icon-wrap {
  display: flex;
  margin: 0 auto 1.5rem auto;
  justify-content: center;
  align-items: center;
  width: 96px;
  height: 96px;
  position: relative;
}

.success-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.success-header p {
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--green);
  color: white;
  font-weight: 900;
  font-size: 1.125rem;
  padding: 1rem 2rem;
  border-radius: 1rem;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.2);
  transition: all 0.3s;
}

.whatsapp-btn:hover {
  background: var(--green-dark);
  box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.4);
  transform: translateY(-4px);
}

.whatsapp-hint {
  color: var(--gray-500);
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ==============================
   SUMMARY CARD (RESTORED)
============================== */
.summary-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  margin-top: 2rem;
}

.summary-card-header {
  background: var(--gray-50);
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.summary-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--purple);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-date {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-400);
  background: white;
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
}

.summary-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.summary-group-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--purple);
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.summary-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

@media (min-width: 768px) {
  .summary-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
  }
  .summary-body {
    padding: 1.5rem 2rem;
    gap: 2rem;
  }
  .summary-card-header {
    padding: 1rem 1.5rem;
  }
}

.summary-field .s-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.15rem;
  letter-spacing: 0.025em;
}

.summary-field .s-val {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-900);
  display: block;
  word-break: break-word;
  line-height: 1.4;
}

.summary-field .s-val.highlight {
  color: var(--purple);
  font-weight: 700;
}

.summary-full {
  grid-column: 1 / -1;
}

.summary-card-footer {
  background: var(--gray-50);
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--gray-100);
  text-align: center;
}

.summary-card-footer p {
  font-size: 0.7rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* ==============================
   SUCCESS SCREEN FOOTER (SOCIAL & PDF)
============================== */
.success-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--gray-200);
}

.social-title {
  text-align: center;
  font-weight: 700;
  color: var(--gray-500);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 0.9375rem;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
}

.btn-insta {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-fb {
  background: #1877F2;
}

.social-icon {
  flex-shrink: 0;
}

.summary-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.save-pdf-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-600);
  background: white;
  border: 1px solid var(--gray-200);
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  font-family: 'Google Sans Text', 'Google Sans', sans-serif;
}

.save-pdf-btn:hover {
  color: var(--purple);
  border-color: var(--purple);
}

/* ==============================
   CPF E CNPJ DOC TOGGLE OPTIONS
============================== */
.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.doc-switch-btn {
  background: transparent;
  border: none;
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.char-counter {
  text-align: right;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

/* ==============================
   CALENDAR DUE DATE
============================== */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.calendar-day {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: 0.625rem;
  padding: 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day:hover {
  border-color: var(--purple-light);
  color: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 2, 73, 0.08);
}

.calendar-day.selected {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(46, 2, 73, 0.2);
  z-index: 2;
}

.calendar-grid[aria-invalid="true"] {
  border: 1px dashed var(--red);
  border-radius: 0.825rem;
  padding: 0.5rem;
  background: #fff5f5;
  transition: all 0.2s;
}

/* ==============================
   KEEP PLAN TEXT
============================== */
.keep-plan-text {
  text-align: center;
  margin-top: -0.25rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  align-self: center;
}

.keep-plan-text:hover {
  color: var(--purple);
  background: rgba(147, 51, 234, 0.05);
  /* very light purple/accent to hint hover */
}

.keep-plan-megas {
  color: #9333ea;
  font-weight: 700;
}

/* ==============================
   CUSTOM SELECT
============================== */
.hidden-native-select {
  display: none !important;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select.open {
  z-index: 1200;
}

#icms-wrap .custom-select.open {
  z-index: 80;
}

.custom-select-trigger {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-200);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: 'Google Sans Text', 'Google Sans', sans-serif;
  font-size: 0.9375rem;
  color: #111827;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.custom-select-trigger:hover {
  border-color: var(--gray-300);
}

.custom-select.open .custom-select-trigger {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.custom-select-trigger[aria-invalid="true"] {
  border-color: var(--red-border);
}

.custom-select.open .custom-select-trigger[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.custom-select.open .select-arrow {
  transform: rotate(180deg);
}

.custom-select .select-arrow {
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  pointer-events: none;
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  width: 100%;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-200);
  z-index: 9999;
  overflow: auto;
  max-height: min(280px, calc(100vh - 240px));
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.custom-select-option:hover {
  background: var(--gray-50);
  color: var(--purple);
}

.custom-select-option.selected {
  background: #faf5ff;
  color: var(--purple);
  font-weight: 600;
}

/* ==============================
   RIPPLE EFFECT
============================== */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background-color: rgba(255, 255, 255, 0.4); /* Fundo claro para botões escuros */
  animation: ripple-anim 0.4s cubic-bezier(0.2, 0, 0, 1) forwards;
  pointer-events: none;
  z-index: 10;
}

.ripple.dark-ripple {
  background-color: rgba(46, 2, 73, 0.12); /* Fundo escuro sutil para botões brancos/cards */
}

@keyframes ripple-anim {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}
