/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --red: #c8102e;
  --red-dark: #9b0c22;
  --red-light: #f5e6e9;
  --ink: #1a1a1a;
  --ink-60: #666;
  --ink-30: #b8b8b8;
  --ink-10: #f0efee;
  --white: #ffffff;
  --cream: #faf9f7;
  --success: #1a6b3c;
  --success-bg: #e6f4ec;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.04), 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-lift:
    0 4px 12px rgba(0, 0, 0, 0.06), 0 32px 80px rgba(0, 0, 0, 0.14);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}
input,
select {
  font-family: var(--font-body);
}

/* ── BACKGROUND ─────────────────────────────────────── */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--cream);
}
.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 10% 20%,
      rgba(200, 16, 46, 0.06) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 80% at 90% 80%,
      rgba(200, 16, 46, 0.04) 0%,
      transparent 55%
    );
}
.scene-line {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(250, 249, 247, 0) 0%,
    rgba(26, 26, 26, 0.025) 100%
  );
  border-left: 1px solid rgba(26, 26, 26, 0.06);
  pointer-events: none;
}
/* Marble texture grid */
.scene-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 26, 26, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 26, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ── LAYOUT ─────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 60px 40px;
  align-items: center;
  min-height: calc(100vh - 80px);
}

/* ── SIDEBAR INFO ───────────────────────────────────── */
.info {
  padding-right: 60px;
  animation: fadeSlideLeft 0.8s var(--ease-out) both;
}
.info-logo {
  margin-bottom: 40px;
}
.info-logo img {
  height: 56px;
  width: auto;
}
.info-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.info-eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--red);
}
.info-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 300;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.info-heading em {
  font-style: italic;
  color: var(--red);
}
.info-body {
  font-size: 15px;
  font-weight: 300;
  color: var(--ink-60);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 48px;
}
.info-perks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: fadeSlideLeft 0.8s var(--ease-out) both;
}
.perk:nth-child(1) {
  animation-delay: 0.1s;
}
.perk:nth-child(2) {
  animation-delay: 0.2s;
}
.perk:nth-child(3) {
  animation-delay: 0.3s;
}
.perk-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.perk-icon svg {
  width: 14px;
  height: 14px;
}
.perk-text strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}
.perk-text span {
  font-size: 12px;
  color: var(--ink-60);
  font-weight: 300;
}

/* ── CARD FORM ──────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 44px 40px;
  border: 1px solid rgba(26, 26, 26, 0.06);
  position: relative;
  overflow: hidden;
  animation: fadeSlideRight 0.8s var(--ease-out) 0.1s both;
  transition: box-shadow 0.4s var(--ease-out);
}
.card:hover {
  box-shadow: var(--shadow-lift);
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, #ff6b6b 100%);
}

/* ── STEP HEADER ────────────────────────────────────── */
.step-header {
  text-align: center;
  margin-bottom: 32px;
}
.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-out);
}
.step-icon:hover {
  transform: scale(1.05) rotate(-3deg);
}
.step-icon svg {
  width: 30px;
  height: 30px;
}
.step-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.step-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 6px;
}
.step-subtitle {
  font-size: 13px;
  color: var(--ink-60);
  font-weight: 300;
  line-height: 1.5;
}

/* ── PROGRESS ───────────────────────────────────────── */
.progress-wrap {
  margin-bottom: 32px;
}
.progress-track {
  height: 4px;
  background: var(--ink-10);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red) 0%, #ff4d6d 100%);
  width: 0%;
  transition: width 0.6s var(--ease-out);
}
.progress-fill.done {
  background: linear-gradient(90deg, var(--success) 0%, #2ea55e 100%);
}
.progress-label {
  font-size: 11px;
  color: var(--ink-60);
  letter-spacing: 0.06em;
  text-align: right;
}
.progress-label.done {
  color: var(--success);
}

/* ── STEP PANELS ────────────────────────────────────── */
.step-panel {
  display: none;
}
.step-panel.active {
  display: block;
  animation: fadeIn 0.35s var(--ease-out) both;
}

/* ── FORM FIELDS ────────────────────────────────────── */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field:last-child {
  margin-bottom: 0;
}
.field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.field label .req {
  color: var(--red);
  margin-left: 2px;
}

/* Input */
.field input,
.field select {
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.field input::placeholder {
  color: var(--ink-30);
}
.field input:focus,
.field select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.08);
}
.field input.invalid {
  border-color: var(--red);
  background: #fff8f9;
}
.field input.valid {
  border-color: #2ea55e;
}

/* Select wrapper */
.select-wrap {
  position: relative;
}
.select-wrap select {
  width: 100%;
  cursor: pointer;
  padding-right: 40px;
  color: var(--ink);
}
.select-wrap select:disabled {
  background: var(--ink-10);
  color: var(--ink-30);
  cursor: not-allowed;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
option {
  color: var(--ink);
  background: var(--white);
}

/* Autofill */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px white inset !important;
  -webkit-text-fill-color: var(--ink) !important;
}

/* ── CHECKBOXES ─────────────────────────────────────── */
.checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 24px;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.check-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}
.check-item label {
  font-size: 12px;
  color: var(--ink-60);
  line-height: 1.5;
  font-weight: 300;
  cursor: pointer;
}

/* ── BUTTONS ────────────────────────────────────────── */
.btn-group {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn-primary {
  flex: 1;
  height: 52px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.btn-primary:disabled {
  background: var(--ink-10);
  color: var(--ink-30);
  cursor: not-allowed;
  box-shadow: none;
}
.btn-primary:not(:disabled):hover {
  background: var(--red);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.3);
}
.btn-primary:not(:disabled):active {
  transform: translateY(0);
}
.btn-back {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink-10);
  color: var(--ink-60);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.15s;
}
.btn-back:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateX(-2px);
}
.btn-back svg {
  width: 18px;
  height: 18px;
}

/* ── SUCCESS STATE ──────────────────────────────────── */
.success-wrap {
  text-align: center;
  padding: 8px 0;
}
.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn 0.5s var(--ease-out) both;
}
.success-icon svg {
  width: 36px;
  height: 36px;
}
.success-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 10px;
}
.success-sub {
  font-size: 14px;
  color: var(--ink-60);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 32px;
}
.success-sub strong {
  color: var(--success);
  font-weight: 500;
}
.success-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: 99px;
  background: var(--success);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  cursor: pointer;
  border: none;
  width: 100%;
}
.success-download:hover {
  background: #155c33;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26, 107, 60, 0.3);
}
.success-download svg {
  width: 16px;
  height: 16px;
}
.btn-reset {
  width: 100%;
  height: 44px;
  border-radius: 99px;
  background: transparent;
  color: var(--ink-60);
  font-size: 12px;
  font-weight: 400;
  border: 1px solid rgba(26, 26, 26, 0.12);
  transition:
    border-color 0.2s,
    color 0.2s;
  cursor: pointer;
}
.btn-reset:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(26, 26, 26, 0.06);
  padding: 28px 40px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-logo img {
  height: 36px;
  width: auto;
}
.footer-copy {
  font-size: 12px;
  color: var(--ink-60);
  font-weight: 300;
  text-align: center;
}
.footer-slogan {
  font-size: 12px;
  color: var(--ink-30);
  font-weight: 300;
  font-style: italic;
  font-family: var(--font-display);
}

/* ── ANIMATIONS ─────────────────────────────────────── */
@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeSlideRight {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Loading state do botão */
.btn-primary.loading {
  pointer-events: none;
  background: var(--ink-10);
  color: transparent;
}
.btn-primary.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid var(--ink-30);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 960px) {
  .main {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 40px;
    align-items: flex-start;
  }
  .info {
    padding-right: 0;
    text-align: center;
    animation-name: fadeIn;
  }
  .info-eyebrow {
    justify-content: center;
  }
  .info-body {
    margin-left: auto;
    margin-right: auto;
  }
  .info-perks {
    align-items: center;
  }
  .perk {
    max-width: 340px;
  }
  .card {
    animation-name: fadeIn;
  }
  footer {
    padding: 20px 24px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}
@media (max-width: 480px) {
  .card {
    padding: 32px 24px;
    border-radius: var(--radius-md);
  }
  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .info-heading {
    font-size: 32px;
  }
}
.back-home-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(10, 14, 39, 0.88);
  border: 1px solid rgba(0, 212, 212, 0.35);
  color: #eaf0f7;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.back-home-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 212, 0.7);
  background: rgba(10, 14, 39, 0.96);
  box-shadow: 0 18px 40px rgba(0, 212, 212, 0.12), 0 14px 34px rgba(0, 0, 0, 0.28);
}

.back-home-btn:focus-visible {
  outline: 3px solid rgba(0, 212, 212, 0.55);
  outline-offset: 4px;
}

.back-home-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0, 212, 212, 0.12);
  color: #00d4d4;
  font-size: 1rem;
  line-height: 1;
}

.back-home-btn__text {
  white-space: nowrap;
}

/* Mobile */
@media (max-width: 640px) {
  .back-home-btn {
    right: 14px;
    bottom: 14px;
    padding: 11px 13px;
    gap: 8px;
    font-size: 0.88rem;
  }

  .back-home-btn__text {
    display: none;
  }

  .back-home-btn__icon {
    width: 30px;
    height: 30px;
  }
}