:root {
  --black: #000000;
  --bg-1: #050505;
  --bg-2: #0a0a0a;
  --bg-3: #0d0d0d;
  --bg-card: #121212;

  /* Dourado amostrado do site da UNIQUE (uniqueplasticaavancada.com.br):
     texto #C5A974, botão sólido #7A5A23 */
  --gold-1: #241c0e;
  --gold-2: #57431f;
  --gold-3: #7a5a23;
  --gold-4: #9c7c45;
  --gold-5: #c5a974;
  --gold-6: #d9c49a;
  --gold-7: #e9dcc0;

  --ink: #ffffff;
  --ink-2: #d8d8d8;
  --ink-3: #9a9a9a;
  --ink-4: #4a4a4a;
  --white: #ffffff;

  --line: rgba(197,169,116,0.10);
  --line-2: rgba(197,169,116,0.18);
  --line-strong: rgba(197,169,116,0.32);

  --gradient-gold: linear-gradient(90deg, #7a5a23 0%, #9c7c45 25%, #d9c49a 50%, #9c7c45 75%, #7a5a23 100%);

  --fs-11: 11px; --fs-12: 12px; --fs-13: 13px; --fs-14: 14px;
  --fs-15: 15px; --fs-16: 16px; --fs-18: 18px; --fs-20: 20px;
  --fs-22: 22px; --fs-26: 26px;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px;

  --r-md: 10px; --r-lg: 16px;

  --lh-tight: 1.1; --lh-snug: 1.25; --lh-base: 1.5; --lh-relaxed: 1.6;

  /* Montserrat = fonte do site da UNIQUE; fallback = stack do Instagram */
  --f-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --f-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--black); color: var(--ink-2);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
  line-height: var(--lh-relaxed);
  font-weight: 400;
  font-size: var(--fs-15);
  min-height: 100vh;
  display: flex; flex-direction: column;
}
::selection { background: var(--gold-4); color: var(--black); }
:focus-visible { outline: 2px solid var(--gold-6); outline-offset: 3px; border-radius: 2px; }

body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1px 1px at 18% 28%, rgba(197,169,116,0.32), transparent),
    radial-gradient(1px 1px at 64% 72%, rgba(197,169,116,0.24), transparent),
    radial-gradient(1.5px 1.5px at 82% 18%, rgba(197,169,116,0.28), transparent),
    radial-gradient(1.5px 1.5px at 28% 82%, rgba(197,169,116,0.22), transparent);
  opacity: 0.45;
}

/* ── HEADER ── */
.page-header {
  padding: var(--sp-10) 0 var(--sp-8);
  text-align: center;
  position: relative; z-index: 1;
}
.page-header img {
  display: block;
  width: 128px; height: auto;
  margin: 0 auto var(--sp-6);
  opacity: 0.9;
  filter: drop-shadow(0 0 28px rgba(228,194,113,0.22));
}
.page-eyebrow {
  font-family: var(--f-body);
  font-size: var(--fs-11); font-weight: 600;
  background: var(--gradient-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.24em; text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.page-title {
  font-family: var(--f-display);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700; line-height: var(--lh-tight);
  letter-spacing: -0.005em;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto var(--sp-3);
}
.page-sub {
  font-family: var(--f-body);
  font-size: var(--fs-14); font-weight: 400;
  color: var(--ink-3);
  max-width: 44ch;
  margin: 0 auto;
}

/* ── MAIN / CARD ── */
.main {
  flex: 1;
  padding: var(--sp-6) var(--sp-4) var(--sp-12);
  position: relative; z-index: 1;
}
.form-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
}
.form-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--gradient-gold); z-index: 2;
}

.card-header {
  padding: var(--sp-5) var(--sp-6) var(--sp-4);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.card-tag {
  font-family: var(--f-body);
  font-size: var(--fs-11); font-weight: 600;
  background: var(--gradient-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.progress {
  height: 2px; background: var(--bg-3); border-radius: 2px;
  overflow: hidden; border: 1px solid var(--line);
}
.progress-bar {
  height: 100%; background: var(--gradient-gold);
  width: 0%; transition: width 0.3s ease;
  border-radius: 2px;
}
.step-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-body);
  font-size: var(--fs-11); font-weight: 500; color: var(--ink-3);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-top: var(--sp-3);
}

.card-body {
  padding: var(--sp-6);
}

.card-footer {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--sp-3);
  background: var(--bg-2);
}

.step-title {
  font-family: var(--f-display);
  font-size: var(--fs-22); font-weight: 600; line-height: var(--lh-tight);
  letter-spacing: -0.005em; color: var(--ink);
  margin-bottom: var(--sp-2);
}
.step-hint {
  font-family: var(--f-body);
  font-size: var(--fs-13); font-weight: 400; color: var(--ink-3);
  line-height: var(--lh-base);
  margin-bottom: var(--sp-5);
}
.step-block { display: flex; flex-direction: column; gap: var(--sp-4); }
.step-block[hidden] { display: none; }

/* Form fields */
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field-label {
  font-family: var(--f-body);
  font-size: var(--fs-12); font-weight: 600; color: var(--ink);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.field-label .req { color: var(--gold-5); margin-left: 2px; }
.field-input, .field-select {
  font-family: var(--f-body); font-size: var(--fs-15); font-weight: 400;
  color: var(--ink);
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px;
  width: 100%; transition: border-color 0.15s ease, background 0.15s ease;
  min-height: 44px;
  -webkit-appearance: none; appearance: none;
}
.field-input::placeholder { color: var(--ink-4); }
.field-input:focus, .field-select:focus {
  outline: 0; background: var(--bg-2);
  border-color: var(--gold-5); box-shadow: 0 0 0 3px rgba(156,124,69,0.18);
}
.field-input.error, .field-select.error {
  border-color: #b3322e; background: rgba(179,50,46,0.06);
}
.field-error {
  font-family: var(--f-body);
  font-size: var(--fs-12); font-weight: 500; color: #d97a76;
}
.field-error::before { content: 'Erro: '; font-weight: 600; }

.field-row { display: grid; grid-template-columns: 2fr 1fr; gap: var(--sp-3); }
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}

/* Conditional blocks */
.if-block { display: none; flex-direction: column; gap: var(--sp-4); }
.if-block.show { display: flex; }

/* Radio */
.radio-group { display: grid; grid-template-columns: 1fr; gap: var(--sp-2); }
.radio-group.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) {
  .radio-group.cols-2 { grid-template-columns: 1fr; }
}
.radio-option {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 14px 16px; border-radius: 10px;
  background: var(--bg-3); cursor: pointer;
  border: 1px solid var(--line);
  transition: all 0.15s ease;
  min-height: 48px;
  position: relative;
}
.radio-option.hide { display: none; }
.radio-option:hover { border-color: var(--line-2); }
.radio-option input { position: absolute; opacity: 0; pointer-events: none; }
.radio-mark {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--ink-3); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s ease;
}
.radio-mark::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-6); transform: scale(0); transition: transform 0.15s ease;
}
.radio-option.checked {
  border-color: var(--gold-5);
  background: rgba(197,169,116,0.06);
  box-shadow: 0 0 0 1px var(--gold-5);
}
.radio-option.checked .radio-mark { border-color: var(--gold-6); }
.radio-option.checked .radio-mark::after { transform: scale(1); }
.radio-label {
  font-family: var(--f-body);
  font-size: var(--fs-14); font-weight: 500; color: var(--ink);
  line-height: var(--lh-snug);
}

/* Trust block */
.trust-block {
  background: rgba(197,169,116,0.04);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.trust-block .t-title {
  font-family: var(--f-body);
  font-size: var(--fs-11); font-weight: 600;
  background: var(--gradient-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.trust-block .t-text {
  font-family: var(--f-body);
  font-size: var(--fs-13); font-weight: 400; color: var(--ink-2);
  line-height: var(--lh-base);
}
.trust-block strong { color: var(--gold-6); font-weight: 500; }

/* Success */
.success { text-align: center; padding: var(--sp-6) 0 var(--sp-4); }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid var(--gold-5);
  background: rgba(197,169,116,0.06);
  color: var(--gold-6);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto var(--sp-5);
  box-shadow: 0 0 24px rgba(197,169,116,0.18);
}
.success-title {
  font-family: var(--f-display);
  font-size: var(--fs-22); font-weight: 600; line-height: var(--lh-tight);
  letter-spacing: -0.005em; color: var(--ink);
  margin-bottom: var(--sp-3);
}
.success-text {
  font-family: var(--f-body);
  font-size: var(--fs-14); font-weight: 400; color: var(--ink-2);
  line-height: var(--lh-relaxed);
  max-width: 40ch; margin: 0 auto;
}
.success-text strong { color: var(--gold-6); font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--f-body); font-size: var(--fs-13); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 0; cursor: pointer;
  padding: 14px 24px; border-radius: 100px;
  transition: transform 0.15s ease, box-shadow 0.3s ease, filter 0.3s ease;
  text-decoration: none;
  min-height: 48px;
  position: relative; overflow: hidden;
}
.btn[hidden] { display: none; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary {
  background: var(--gradient-gold);
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  box-shadow: 0 0 0 1px rgba(197,169,116,0.35),
              0 6px 20px rgba(122,90,35,0.12);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.1);
  box-shadow: 0 0 0 1px rgba(197,169,116,0.55),
              0 8px 28px rgba(122,90,35,0.20),
              0 0 32px rgba(197,169,116,0.10);
}
.btn-ghost {
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--gold-6); border-color: var(--line-strong); }
.btn-arrow { font-size: var(--fs-14); line-height: 1; }

.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.page-footer {
  padding: var(--sp-6) var(--sp-4);
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  font-family: var(--f-body);
  font-size: var(--fs-11); font-weight: 500; color: var(--ink-3);
  letter-spacing: 0.06em; text-transform: uppercase;
  position: relative; z-index: 1;
}
.page-footer-inner {
  max-width: 980px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-3);
}
.footer-brand {
  display: inline-flex; align-items: center; gap: var(--sp-2);
}
.footer-logo { height: 18px; width: auto; opacity: 0.7; }

.success-card {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: var(--sp-5);
  text-align: left;
  display: flex; flex-direction: column; gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.success-card-tag {
  font-family: var(--f-body);
  font-size: var(--fs-11); font-weight: 600;
  color: var(--gold-5);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.success-card-title {
  font-family: var(--f-display);
  font-size: var(--fs-18); font-weight: 600; color: var(--ink);
  letter-spacing: -0.005em; line-height: var(--lh-snug);
}
.success-card-desc {
  font-family: var(--f-body);
  font-size: var(--fs-13); font-weight: 400; color: var(--ink-2);
  line-height: var(--lh-base);
}
.success-card-link {
  font-family: var(--f-body);
  font-size: var(--fs-12); font-weight: 600;
  background: var(--gradient-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: var(--sp-1);
}

@media (max-width: 600px) {
  .page-header { padding: var(--sp-8) var(--sp-4) var(--sp-6); }
  .page-header img { width: 96px; }
  .card-body { padding: var(--sp-5); }
  .card-header { padding: var(--sp-4) var(--sp-5); }
  .card-footer { padding: var(--sp-4) var(--sp-5); }
}
