/* ROXPDV — cadastro (premium) */
:root {
  --rx-orange: #ff6e41;
  --rx-orange-2: #ff8a5c;
  --rx-orange-dark: #d95a30;
  --rx-navy: #052336;
  --rx-ink: #0c1222;
  --rx-muted: #64748b;
  --rx-border: rgba(5, 35, 54, 0.1);
  --rx-font: "Poppins", system-ui, sans-serif;
  --rx-radius: 16px;
  --rx-shadow: 0 24px 80px rgba(5, 35, 54, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body.rx-cadastro-page {
  margin: 0;
  min-height: 100%;
  font-family: var(--rx-font);
  -webkit-font-smoothing: antialiased;
  color: var(--rx-navy);
  background: #0a0e17;
}

/* Fundo atmosférico */
.rx-cadastro-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 15% 20%, rgba(255, 110, 65, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 75%, rgba(255, 90, 45, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(5, 35, 54, 0.9) 0%, transparent 50%),
    linear-gradient(165deg, #0a0e17 0%, #12182a 45%, #1a1020 100%);
}

.rx-cadastro-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Topo */
.rx-cadastro-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 24px 0;
}

.rx-cadastro-header-logo .rx-brand-mark,
.rx-cadastro-header-logo img {
  height: 40px;
  max-width: min(260px, 72vw);
}

.rx-cadastro-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rx-cadastro-header-actions a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.rx-cadastro-header-actions a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.rx-cadastro-header-actions a.rx-btn-header-cta {
  background: var(--rx-orange);
  border-color: var(--rx-orange);
  color: #fff;
  box-shadow: 0 8px 28px rgba(255, 110, 65, 0.4);
}

.rx-cadastro-header-actions a.rx-btn-header-cta:hover {
  background: var(--rx-orange-2);
  border-color: var(--rx-orange-2);
}

/* Palco central */
.rx-cadastro-stage {
  position: relative;
  z-index: 1;
  padding: 24px 20px 48px;
  max-width: 880px;
  margin: 0 auto;
  animation: rx-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rx-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card principal */
.rx-cadastro-card {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: var(--rx-shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.rx-cadastro-hero {
  padding: 28px 32px 24px;
  background: linear-gradient(135deg, #fff9f6 0%, #fff 50%, #f8fafc 100%);
  border-bottom: 1px solid var(--rx-border);
}

.rx-cadastro-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rx-cadastro-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--rx-navy);
  line-height: 1.15;
}

.rx-cadastro-hero h1 em {
  font-style: normal;
  color: var(--rx-orange);
}

.rx-cadastro-hero p {
  margin: 0;
  font-size: 14px;
  color: var(--rx-muted);
  max-width: 420px;
  line-height: 1.55;
}

.rx-cadastro-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rx-orange) 0%, #ff845f 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 24px rgba(255, 110, 65, 0.35);
}

.rx-cadastro-hero-badge i {
  font-size: 16px;
}

/* Progresso custom */
.rx-wizard-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 24px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 999px;
}

.rx-step-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rx-muted);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.rx-step-pill .rx-step-num {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  background: #e2e8f0;
  color: var(--rx-muted);
  transition: inherit;
}

.rx-step-pill.is-active {
  background: #fff;
  color: var(--rx-navy);
  box-shadow: 0 4px 16px rgba(5, 35, 54, 0.08);
}

.rx-step-pill.is-active .rx-step-num {
  background: var(--rx-orange);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 110, 65, 0.4);
}

.rx-step-pill.is-done {
  color: var(--rx-orange-dark);
}

.rx-step-pill.is-done .rx-step-num {
  background: rgba(255, 110, 65, 0.2);
  color: var(--rx-orange-dark);
}

.rx-step-pill.is-done .rx-step-num::after {
  content: "✓";
  font-size: 11px;
}

.rx-step-pill.is-done .rx-step-num span {
  display: none;
}

/* Corpo do form */
.rx-cadastro-body {
  padding: 28px 32px 32px;
}

.rx-cadastro-body .list-errors {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--rx-radius);
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.rx-cadastro-body .list-errors .title-line {
  display: none;
}

.rx-cadastro-body .error-info {
  font-size: 13px;
  color: #b91c1c;
  padding: 3px 0;
}

.rx-cadastro-alert {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: var(--rx-radius);
  font-size: 13px;
  font-weight: 500;
}

.rx-cadastro-alert--erro {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.rx-cadastro-alert--ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* Esconde steps padrão do plugin */
.rx-cadastro-body .wizard > .steps {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.rx-cadastro-body .wizard > .content {
  min-height: 200px;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

.rx-cadastro-body .wizard > .content > .body {
  position: relative !important;
  float: none;
  width: 100%;
  padding: 0;
}

.rx-cadastro-body .wizard > .content > .title {
  display: none;
}

/* Seções */
.rx-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  border: none;
}

.rx-section-head-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 110, 65, 0.15) 0%, rgba(255, 110, 65, 0.05) 100%);
  color: var(--rx-orange);
  font-size: 20px;
}

.rx-section-head-text span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rx-orange);
  margin-bottom: 2px;
}

.rx-section-head-text strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--rx-navy);
  letter-spacing: -0.02em;
}

.rx-section-head--sub {
  margin-top: 8px;
}

.rx-cadastro-body .title-line {
  display: none;
}

.rx-form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Campos */
.rx-cadastro-body .form-field-default {
  margin-bottom: 20px;
}

.rx-cadastro-body .form-field-default > label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rx-navy);
}

.rx-cadastro-body .form-tip {
  display: block;
  margin: -4px 0 10px;
  font-size: 12px;
  color: var(--rx-muted);
  line-height: 1.45;
}

.rx-cadastro-body input[type="text"],
.rx-cadastro-body input[type="password"],
.rx-cadastro-body input[type="email"],
.rx-cadastro-body textarea,
.rx-cadastro-body .fake-select select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--rx-ink);
  background: #fafbfc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.rx-cadastro-body input:hover,
.rx-cadastro-body textarea:hover,
.rx-cadastro-body .fake-select select:hover {
  background: #fff;
  border-color: #cbd5e1;
}

.rx-cadastro-body input:focus,
.rx-cadastro-body textarea:focus,
.rx-cadastro-body .fake-select select:focus {
  outline: none;
  background: #fff;
  border-color: var(--rx-orange);
  box-shadow: 0 0 0 4px rgba(255, 110, 65, 0.12);
}

.rx-cadastro-body textarea {
  min-height: 96px;
  resize: vertical;
}

.rx-cadastro-body input[disabled],
.rx-cadastro-body select:disabled {
  background: #f1f5f9;
  color: var(--rx-muted);
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.85;
}

.rx-cadastro-body .fake-select {
  position: relative;
}

.rx-cadastro-body .fake-select > i.lni-chevron-down {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--rx-muted);
  font-size: 14px;
}

.rx-cadastro-body .fake-select select {
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

/* URL preview */
.rx-url-box {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--rx-navy);
  display: flex;
  align-items: center;
  gap: 12px;
}

.rx-url-box i {
  font-size: 20px;
  color: var(--rx-orange);
}

.rx-url-box-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 2px;
}

.rx-url-box-url {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  word-break: break-all;
}

.rx-url-box-url em {
  font-style: normal;
  color: var(--rx-orange-2);
}

.rx-cadastro-url-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(140px, 1.2fr);
  gap: 10px;
}

/* Termos */
.rx-cadastro-body .form-field-terms .form-tip {
  font-size: 14px;
  margin-bottom: 8px;
}

.rx-cadastro-body .form-field-terms .form-tip a {
  font-weight: 600;
}

.rx-cadastro-body .form-field-terms .rx-terms-textarea,
.rx-cadastro-body .form-field-terms textarea[readonly] {
  font-size: 14px;
  line-height: 1.6;
  max-height: 360px;
  min-height: 280px;
  overflow-y: auto;
  resize: vertical;
  background: #f8fafc;
  color: var(--rx-text, #334155);
  cursor: default;
  padding: 14px 16px;
}

.rx-terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.rx-terms-check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--rx-orange);
  cursor: pointer;
}

.rx-terms-check span {
  font-size: 14px;
  font-weight: 600;
  color: var(--rx-navy);
  line-height: 1.4;
}

.rx-cadastro-body .ocaptcha {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.rx-cadastro-body .rx-recaptcha-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--rx-muted, #64748b);
}

.rx-cadastro-body .rx-recaptcha-note a {
  color: inherit;
  text-decoration: underline;
}

/* Ações wizard */
.rx-cadastro-body .wizard > .actions {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
}

.rx-cadastro-body .wizard > .actions > ul {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rx-cadastro-body .wizard > .actions > ul > li {
  float: none;
  margin: 0;
}

.rx-cadastro-body .wizard > .actions a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 14px 28px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
}

.rx-cadastro-body .wizard > .actions a[href="#previous"] {
  background: #f1f5f9 !important;
  color: var(--rx-navy) !important;
}

.rx-cadastro-body .wizard > .actions a[href="#previous"]:hover {
  background: #e2e8f0 !important;
}

.rx-cadastro-body .wizard > .actions a[href="#next"] {
  background: var(--rx-navy) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(5, 35, 54, 0.2);
}

.rx-cadastro-body .wizard > .actions a[href="#next"]:hover {
  transform: translateY(-1px);
}

.rx-cadastro-body .wizard .actions a[href="#finish"] {
  background: linear-gradient(135deg, var(--rx-orange) 0%, #ff845f 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 32px rgba(255, 110, 65, 0.45) !important;
  min-width: 200px;
}

.rx-cadastro-body .wizard .actions a[href="#finish"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(255, 110, 65, 0.5) !important;
}

.rx-cadastro-body label.error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #dc2626;
  font-weight: 500;
}

.rx-cadastro-body .row {
  margin-left: 0;
  margin-right: 0;
}

.rx-cadastro-body .row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 768px) {
  .rx-cadastro-header {
    flex-wrap: wrap;
    padding-top: 16px;
  }

  .rx-cadastro-hero,
  .rx-cadastro-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .rx-form-grid-3 {
    grid-template-columns: 1fr;
  }

  .rx-cadastro-url-row {
    grid-template-columns: 1fr;
  }

  .rx-step-pill span.rx-step-label {
    display: none;
  }

  .rx-cadastro-body .wizard > .actions {
    justify-content: stretch;
  }

  .rx-cadastro-body .wizard > .actions > ul {
    flex-direction: column-reverse;
    width: 100%;
  }

  .rx-cadastro-body .wizard > .actions a {
    width: 100%;
  }
}
