/* ══════════════════════════════════════════════════════
   COMEÇAR AGORA — formulário multi-step (identidade AVAD)
   ══════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Ubuntu';
  src: url('./fonts/Ubuntu-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Ubuntu';
  src: url('./fonts/Ubuntu-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Ubuntu';
  src: url('./fonts/Ubuntu-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Ubuntu';
  src: url('./fonts/Ubuntu-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a    { text-decoration: none; color: inherit; }
img  { display: block; }
button { cursor: pointer; border: none; outline: none; background: none; font-family: inherit; }

:root {
  --blue-primary: #4D77DD;
  --blue-mid:     #6e99ff;
  --blue-accent:  #719bff;
  --blue-light:   #99b7ff;
  --blue-deep:    #2b4687;
  --purple:       #878ed2;
  --grad-headline: linear-gradient(113deg,#fff 9.6%,#e3e6ff 45%,#c5cbff 81%);
  --grad-btn:      linear-gradient(105deg,#878ed2 5.4%,#4d77dd 91.1%);
  --bg-card:       #151924;
  --font: 'Ubuntu';
}

html {
  filter: hue-rotate(6deg) saturate(1.28) contrast(1.12) brightness(1.02);
  scroll-behavior: smooth;
}
body {
  background: #ffffff;
  color: #fff;
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── CURSOR GLOW ───────────────────────────────────── */
.cursor-glow {
  position: fixed;
  top: -300px; left: -300px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77,119,221,0.12) 0%, rgba(77,119,221,0) 60%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity .3s;
}

/* ─── LAYOUT ────────────────────────────────────────── */
.cmc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ─── PAINEL ESQUERDO ───────────────────────────────── */
.cmc-aside {
  position: relative;
  overflow: hidden;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(120% 90% at 30% 35%, rgba(110,153,255,0.55) 0%, rgba(77,119,221,0) 55%),
    linear-gradient(160deg, #4d77dd 0%, #2b4687 60%, #1a2a52 100%);
  border-radius: 0 32px 32px 0;
}
.cmc-aside-glow {
  position: absolute;
  top: 28%; left: 32%;
  width: 460px; height: 460px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(153,183,255,0.45) 0%, rgba(153,183,255,0) 65%);
  filter: blur(10px);
  pointer-events: none;
}

.cmc-back {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  transition: color .25s, gap .25s;
  align-self: flex-start;
}
.cmc-back:hover { color: #fff; gap: 12px; }

.cmc-aside-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto 0;
  gap: 24px;
}
.cmc-aside-logo {
  width: 96px;
  height: auto;
  filter: drop-shadow(0 0 24px rgba(153,183,255,0.55));
}
.cmc-aside-title {
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -2px;
  background: var(--grad-headline);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cmc-aside-sub {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 380px;
}

/* Stepper */
.cmc-stepper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cmc-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  transition: background .35s, transform .35s;
}
.cmc-step.is-active {
  background: rgba(255,255,255,0.95);
  transform: translateY(-4px);
}
.cmc-step.is-done {
  background: rgba(255,255,255,0.14);
}
.cmc-step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500;
  background: rgba(0,0,0,0.85);
  color: #fff;
  transition: background .35s, color .35s;
}
.cmc-step.is-active .cmc-step-num { background: var(--blue-primary); color: #fff; }
.cmc-step-label {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  color: rgba(255,255,255,0.85);
  transition: color .35s;
}
.cmc-step.is-active .cmc-step-label { color: #1a2a52; font-weight: 500; }

/* ─── PAINEL DIREITO ────────────────────────────────── */
.cmc-form-side {
  position: relative;
  padding: 56px clamp(40px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

/* Progress */
.cmc-progress {
  display: flex;
  gap: 10px;
  margin-bottom: 44px;
}
.cmc-progress-bar {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(0,0,0,0.10);
  overflow: hidden;
  position: relative;
}
.cmc-progress-bar.is-active {
  background: var(--grad-btn);
}

/* Form */
.cmc-form { position: relative; }
.cmc-panel { display: none; flex-direction: column; gap: 26px; }
.cmc-panel.is-active {
  display: flex;
  animation: cmc-fade-up .5s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes cmc-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cmc-field { display: flex; flex-direction: column; gap: 12px; }
.cmc-label {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.5px;
  color: #1a2a52;
}

.cmc-input {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border-radius: 14px;
  background: #d3d9e6b5;
  border: none;
  color: #1a2a52;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  transition: background .25s, box-shadow .25s;
}
.cmc-input::placeholder { color: rgba(26,42,82,0.40); }
.cmc-input:focus {
  background: #e4eaf9;
  box-shadow: 0 0 0 4px rgba(113,155,255,0.18);
}
.cmc-textarea {
  height: auto;
  min-height: 120px;
  padding: 16px 20px;
  resize: vertical;
  line-height: 1.5;
}

/* Options (checkbox / radio) */
.cmc-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cmc-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #d3d9e6b5;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  user-select: none;
}
.cmc-option:hover { background: #c7cfe1; }
.cmc-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.cmc-option-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fff;
  border: 1.5px solid rgba(26, 42, 82, 0.25);
  position: relative;
  transition: background .2s, border-color .2s;
}
.cmc-option-box--radio { border-radius: 50%; }

/* check mark */
.cmc-option-box::after {
  content: '';
  position: absolute;
  opacity: 0;
  transition: opacity .15s;
}
.cmc-option-box:not(.cmc-option-box--radio)::after {
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cmc-option-box--radio::after {
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

/* checked state */
.cmc-option input:checked + .cmc-option-box {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
}
.cmc-option input:checked + .cmc-option-box::after { opacity: 1; }
.cmc-option input:checked ~ .cmc-option-text { color: #1a2a52; font-weight: 500; }

/* selected pill highlight */
.cmc-option:has(input:checked) {
  background: rgba(77, 119, 221, 0.14);
  box-shadow: inset 0 0 0 1.5px rgba(77, 119, 221, 0.4);
}

/* keyboard focus */
.cmc-option input:focus-visible + .cmc-option-box {
  box-shadow: 0 0 0 4px rgba(113, 155, 255, 0.3);
}

.cmc-option-text {
  font-size: 15px;
  color: #1a2a52;
  line-height: 1.3;
}

/* Phone */
.cmc-phone {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.cmc-phone-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 56px;
  border-radius: 14px;
  background: #d3d9e6b5;
  flex-shrink: 0;
}
.cmc-phone-ddi { font-size: 15px; color: rgba(26,42,82,0.85); }
.cmc-input--phone { flex: 1; }

/* Botões */
.cmc-btn {
  height: 58px;
  padding: 0 32px;
  border-radius: 32px;
  background: var(--grad-btn);
  color: #fff;
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s, transform .2s, box-shadow .25s;
  box-shadow: 0 8px 24px rgba(77,119,221,0.28);
}
.cmc-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(77,119,221,0.40); }
.cmc-btn:active { transform: translateY(0); }
.cmc-next { width: 100%; margin-top: 8px; }

.cmc-btn--ghost {
  background: transparent;
  border: 1.5px solid var(--purple);
  color: var(--blue-light);
  box-shadow: none;
}
.cmc-btn--ghost:hover {
  background: rgba(135,142,210,0.10);
  box-shadow: none;
}

.cmc-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.cmc-actions .cmc-btn { flex: 1; }

/* Review (etapa 3) */
.cmc-review { display: flex; flex-direction: column; gap: 10px; }
.cmc-review-title {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -.6px;
  color: #1a2a52;
}
.cmc-review-sub {
  font-size: 15px;
  color: rgba(26,42,82,0.6);
  line-height: 1.5;
  margin-bottom: 8px;
}
.cmc-review-list { display: flex; flex-direction: column; gap: 2px; }
.cmc-review-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.cmc-review-item dt {
  font-size: 13px;
  color: rgba(26,42,82,0.5);
  letter-spacing: .2px;
}
.cmc-review-item dd {
  font-size: 16px;
  color: #1a2a52;
  word-break: break-word;
}
.cmc-review-item dd.is-empty { color: rgba(26,42,82,0.35); font-style: italic; }

/* Sucesso */
.cmc-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  animation: cmc-fade-up .6s cubic-bezier(0.16,1,0.3,1) both;
}
.cmc-success.is-visible { display: flex; }
.cmc-success-icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 10px 30px rgba(77,119,221,0.4);
  margin-bottom: 6px;
}
.cmc-success-title {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -1px;
  background: var(--grad-btn);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cmc-success-sub {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(26,42,82,0.7);
  max-width: 420px;
}
.cmc-success-btn { margin-top: 14px; }

/* ══════════════════════════════════════════════════════
   RESPONSIVO
   ══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cmc-wrap { grid-template-columns: 1fr; }
  .cmc-aside {
    border-radius: 0;
    min-height: 56vh;
    padding: 40px;
  }
  .cmc-form-side {
    padding: 48px 40px 64px;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .cmc-aside {
    min-height: auto;
    padding: 28px 24px 32px;
    gap: 28px;
  }
  .cmc-aside-inner { gap: 18px; margin: 24px 0; }
  .cmc-aside-logo { width: 56px; }
  .cmc-aside-title { font-size: clamp(30px, 9vw, 42px); letter-spacing: -1.4px; }
  .cmc-aside-sub { font-size: 14px; }

  .cmc-stepper { gap: 10px; }
  .cmc-step { padding: 14px; gap: 10px; }
  .cmc-step-num { width: 26px; height: 26px; font-size: 13px; }
  .cmc-step-label { font-size: 11.5px; }

  .cmc-form-side { padding: 36px 24px 56px; }
  .cmc-progress { margin-bottom: 32px; }
  .cmc-panel { gap: 22px; }
  .cmc-label { font-size: 19px; }
  .cmc-input { height: 52px; font-size: 15px; }
  .cmc-phone-flag { height: 52px; padding: 0 12px; }
  .cmc-btn { height: 54px; font-size: 16px; }
}

@media (max-width: 420px) {
  .cmc-step { padding: 12px 10px; }
  .cmc-step-label { font-size: 10.5px; }
  .cmc-actions { flex-direction: column-reverse; }
}
