/* Registration configurator — dark industrial / radio-dispatch */

.reg-body {
  overflow-x: hidden;
}

.reg-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 0 1.5rem 4.5rem;
  overflow: hidden;
}

.reg-hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 500px at 70% -5%, rgba(240, 180, 41, 0.18), transparent 55%),
    radial-gradient(700px 420px at 0% 40%, rgba(55, 80, 110, 0.35), transparent 50%),
    radial-gradient(500px 300px at 90% 80%, rgba(180, 90, 40, 0.12), transparent 50%),
    linear-gradient(165deg, #0e1116 0%, #161b22 45%, #0a0c10 100%);
}

.reg-grid-scan {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 239, 230, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 230, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  animation: gridDrift 28s linear infinite;
}

.reg-pulse {
  position: absolute;
  width: 280px;
  height: 280px;
  right: 12%;
  top: 22%;
  border-radius: 50%;
  border: 1px solid rgba(240, 180, 41, 0.25);
  box-shadow: 0 0 0 40px rgba(240, 180, 41, 0.04);
  animation: pulseRing 4.5s ease-in-out infinite;
}

@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(48px); }
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

.reg-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.reg-brand-mark {
  font-size: clamp(2.8rem, 8vw, 4.5rem) !important;
  margin: 0 0 0.35rem !important;
  line-height: 0.95;
  animation: fadeUp 0.7s ease both;
}

.reg-hero-copy h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.85rem, 5vw, 3.1rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  animation: fadeUp 0.7s ease 0.08s both;
}

.reg-hero-copy .lede {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 34rem;
  margin: 0 0 1.5rem;
  animation: fadeUp 0.7s ease 0.16s both;
}

.reg-hero-copy .cta-row {
  animation: fadeUp 0.7s ease 0.24s both;
}

.reg-hero-meta {
  margin-top: 1.75rem;
  font-size: 0.82rem;
  color: rgba(185, 176, 162, 0.75);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: fadeUp 0.7s ease 0.32s both;
}

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

/* Flow shell */
.reg-flow {
  padding: 2rem 1.25rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.reg-progress {
  margin-bottom: 1.75rem;
}

.reg-progress-track {
  height: 3px;
  background: rgba(243, 239, 230, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.reg-progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber));
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.reg-steps-label {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.reg-steps-label li {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  opacity: 0.55;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.reg-steps-label li.is-active,
.reg-steps-label li.is-done {
  opacity: 1;
  color: var(--ink);
}

.reg-steps-label li.is-active {
  color: var(--amber);
}

.reg-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 980px) {
  .reg-layout {
    grid-template-columns: 1fr minmax(320px, 400px);
    align-items: start;
  }
  .reg-preview {
    position: sticky;
    top: 5rem;
  }
}

.reg-main {
  min-width: 0;
}

.reg-panel {
  display: none;
  animation: panelIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reg-panel.is-active {
  display: block;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.reg-panel-head h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.4rem;
}

.reg-panel-head p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

/* Solution tiles */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
}

.sol-tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1rem 1.1rem;
  background: var(--asphalt-2);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font-family: inherit;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 148px;
}

.sol-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 80px at 90% 0%, var(--sol-glow, rgba(240, 180, 41, 0.2)), transparent 70%);
  opacity: 0.7;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.sol-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 180, 41, 0.35);
}

.sol-tile.is-selected {
  border-color: var(--sol-accent, var(--amber));
  box-shadow: 0 0 0 1px var(--sol-accent, var(--amber)), 0 16px 32px rgba(0, 0, 0, 0.35);
}

.sol-tile.is-selected::before {
  opacity: 1;
}

.sol-icon {
  font-size: 1.55rem;
  margin-bottom: 0.55rem;
  position: relative;
  filter: grayscale(0.15);
}

.sol-tile h3 {
  position: relative;
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.sol-tile p {
  position: relative;
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Form */
.reg-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .reg-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .reg-field-span {
    grid-column: 1 / -1;
  }
}

.reg-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.reg-field span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.reg-field span em {
  font-style: normal;
  font-weight: 400;
  opacity: 0.7;
}

.reg-field input,
.reg-field select,
.reg-solution-fields input,
.reg-solution-fields select {
  background: var(--asphalt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reg-field input:focus,
.reg-field select:focus,
.reg-solution-fields input:focus,
.reg-solution-fields select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.15);
}

.reg-hint {
  font-size: 0.75rem;
  color: var(--muted);
}

.reg-solution-fields {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .reg-solution-fields {
    grid-template-columns: 1fr 1fr;
  }
}

.reg-sol-head {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  color: var(--amber);
  margin: 0;
}

.reg-color-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.reg-color-row input[type="color"] {
  width: 48px;
  height: 44px;
  padding: 0.2rem;
  cursor: pointer;
  border-radius: 10px;
}

.reg-color-row input[type="text"] {
  flex: 1;
}

.reg-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.reg-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.reg-swatch:hover,
.reg-swatch.is-active {
  transform: scale(1.12);
  border-color: var(--ink);
}

.reg-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.reg-nav[hidden],
.reg-flow[hidden],
.reg-hero[hidden],
.reg-panel[hidden] {
  display: none !important;
}

.reg-nav .btn-primary {
  margin-left: auto;
}

.reg-review {
  background: var(--asphalt-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  display: grid;
  gap: 0.65rem;
}

.reg-review-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(243, 239, 230, 0.06);
  padding-bottom: 0.5rem;
}

.reg-review-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.reg-review-row span:first-child {
  color: var(--muted);
}

.reg-review-row strong {
  text-align: right;
}

.reg-legal {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

.reg-alert {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.reg-alert-error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #ff8a95;
}

.reg-confirm {
  text-align: center;
  padding: 2rem 0.5rem 1rem;
}

.reg-confirm-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(240, 180, 41, 0.15);
  border: 2px solid var(--amber);
  color: var(--amber);
  font-size: 1.75rem;
  display: grid;
  place-items: center;
  animation: confirmPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes confirmPop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.reg-confirm h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.reg-ref {
  font-family: ui-monospace, monospace;
  font-size: 1.15rem;
  color: var(--amber);
  background: var(--asphalt-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: inline-block;
  margin: 1rem 0;
  letter-spacing: 0.04em;
}

/* Live preview */
.reg-preview {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #0a0c10;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.reg-preview-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  background: #151820;
  border-bottom: 1px solid var(--line);
}

.reg-preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(243, 239, 230, 0.25);
}

.reg-preview-dot:nth-child(1) { background: #ff5f57; }
.reg-preview-dot:nth-child(2) { background: #febc2e; }
.reg-preview-dot:nth-child(3) { background: #28c840; }

.reg-preview-url {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reg-preview-frame {
  --pv-accent: #f0b429;
  min-height: 420px;
  padding: 1.35rem;
  background:
    radial-gradient(280px 160px at 80% 0%, color-mix(in srgb, var(--pv-accent) 28%, transparent), transparent 70%),
    linear-gradient(165deg, #12151a 0%, #0e1116 100%);
  transition: background 0.35s ease;
}

.pv-hero {
  margin-bottom: 1.25rem;
}

.pv-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--pv-accent);
  color: #12151a;
  font-family: var(--font-display);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.pv-brand {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.55rem;
  margin: 0 0 0.35rem;
  line-height: 1;
  transition: color 0.3s ease;
}

.pv-headline {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.15;
  color: var(--ink);
}

.pv-tag {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
  min-height: 2.5em;
}

.pv-cta {
  display: inline-block;
  background: var(--pv-accent);
  color: #12151a;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: background 0.3s ease;
}

.pv-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.pv-features li {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.4rem 0.55rem;
  border-left: 2px solid var(--pv-accent);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 6px 6px 0;
  transition: border-color 0.3s ease;
}

.pv-meta {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: rgba(185, 176, 162, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 979px) {
  .reg-preview {
    order: -1;
  }
  .reg-preview-frame {
    min-height: 280px;
  }
}
