:root {
  --bg: #120032;
  --surface: rgba(97, 84, 136, 0.72);
  --ink: #f5f3ff;
  --ink-soft: #c8c2ee;
  --line: rgba(123, 163, 255, 0.18);
  --accent: #6f8ef6;
  --accent-strong: #25e9f2;
  --shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 18%, rgba(111, 142, 246, 0.18), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(37, 233, 242, 0.14), transparent 18%),
    linear-gradient(180deg, #1a0545 0%, #120032 46%, #16043d 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(16px);
}

body::before {
  width: 240px;
  height: 240px;
  top: 90px;
  right: -80px;
  background: rgba(37, 233, 242, 0.12);
}

body::after {
  width: 320px;
  height: 320px;
  bottom: 40px;
  left: -120px;
  background: rgba(111, 142, 246, 0.14);
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.landing-shell {
  transition: opacity 180ms ease, visibility 180ms ease;
}

body.form-mode {
  overflow: auto;
}

body.form-mode .landing-shell {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  padding: 0;
}

.page-shell::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  pointer-events: none;
  background:
    radial-gradient(120% 140% at 15% 100%, transparent 52%, rgba(37, 233, 242, 0.35) 53%, transparent 54%),
    radial-gradient(100% 130% at 35% 100%, transparent 56%, rgba(111, 142, 246, 0.28) 57%, transparent 58%),
    radial-gradient(110% 120% at 55% 100%, transparent 58%, rgba(37, 233, 242, 0.26) 59%, transparent 60%),
    radial-gradient(120% 130% at 75% 100%, transparent 60%, rgba(111, 142, 246, 0.22) 61%, transparent 62%),
    radial-gradient(130% 140% at 95% 100%, transparent 62%, rgba(37, 233, 242, 0.2) 63%, transparent 64%);
  opacity: 0.85;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(18, 0, 50, 0.84);
  border: 1px solid rgba(111, 142, 246, 0.2);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 140px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(18, 38, 63, 0.16);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.header-pill {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(111, 142, 246, 0.18);
  color: #f3f1ff;
  font-size: 0.92rem;
}

.hero-panel,
.form-frame {
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: start;
  min-height: min(820px, calc(100vh - 170px));
  margin-bottom: 26px;
}

.hero-home-copy,
.hero-home-panel {
  padding: 40px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(160deg, rgba(34, 11, 79, 0.92), rgba(24, 5, 64, 0.84)),
    linear-gradient(120deg, rgba(111, 142, 246, 0.08), transparent);
  border: 1px solid rgba(126, 155, 255, 0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-home-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-home-copy {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.hero-home-copy::after {
  content: "";
  position: absolute;
  inset: auto -120px -80px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 233, 242, 0.24) 0%, transparent 68%);
}

.eyebrow,
.progress-label,
.info-kicker,
.success-badge {
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 800;
}

.eyebrow::before,
.progress-label::before,
.success-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-strong);
}

.hero-home h1,
.progress-head h2,
.success-state h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.5rem, 4vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 58ch;
  margin: 26px 0 34px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-link {
  text-decoration: none;
}

.hero-primary-button {
  position: relative;
  padding: 20px 34px;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 36px rgba(37, 233, 242, 0.28);
}

.hero-primary-button::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid rgba(37, 233, 242, 0.34);
  opacity: 0.9;
  pointer-events: none;
}

.hero-primary-button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 24px 42px rgba(37, 233, 242, 0.34);
}

.field-full {
  grid-column: 1 / -1;
}

.repeater {
  display: grid;
  gap: 18px;
}

.repeater-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.repeater-list {
  display: grid;
  gap: 18px;
}

.repeater-footer,
.repeater-item-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

[data-name="inmuebles_alquilados"] .repeater-footer {
  display: none;
}

.repeater-empty {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(198, 206, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
}

.repeater-item {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(198, 206, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(28, 10, 69, 0.78), rgba(20, 5, 50, 0.42)),
    rgba(20, 5, 50, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.repeater-item.is-collapsed {
  gap: 12px;
}

.repeater-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.repeater-item-head strong {
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.repeater-item-head strong::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 6px rgba(37, 233, 242, 0.1);
}

.repeater-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.repeater-summary {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(198, 206, 255, 0.12);
  color: var(--ink-soft);
  line-height: 1.6;
}

.repeater-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.nested-periods-block {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(9, 2, 28, 0.18);
  border: 1px solid rgba(198, 206, 255, 0.12);
}

.nested-periods-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.nested-periods-list {
  display: grid;
  gap: 14px;
}

.nested-period-item {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(198, 206, 255, 0.12);
}

.nested-period-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.repeater-subfield textarea {
  min-height: 132px;
}

.repeater-subfield .choice-group,
.repeater-subfield textarea {
  height: 100%;
}

.step-region-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 18px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(37, 233, 242, 0.1);
  border: 1px solid rgba(37, 233, 242, 0.24);
  color: #f5f7ff;
  font-size: 0.92rem;
  font-weight: 700;
}

.review-item strong {
  white-space: pre-wrap;
  line-height: 1.7;
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.site-modal.hidden {
  display: none;
}

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 2, 28, 0.74);
  backdrop-filter: blur(8px);
}

.site-modal-dialog {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  max-height: min(82vh, 860px);
  overflow: auto;
  padding: 28px 28px 24px;
  border-radius: 28px;
  border: 1px solid rgba(198, 206, 255, 0.18);
  background:
    linear-gradient(160deg, rgba(34, 11, 79, 0.96), rgba(24, 5, 64, 0.92)),
    linear-gradient(120deg, rgba(111, 142, 246, 0.08), transparent);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.site-modal-head h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
}

.site-modal-body {
  margin-top: 18px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.site-modal-body p {
  margin: 0 0 12px;
}

.site-modal-list {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.site-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.modal-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(198, 206, 255, 0.14);
}

.modal-consent input {
  margin-top: 4px;
  accent-color: var(--accent-strong);
}

.modal-consent label {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.6;
}

.modal-consent-error {
  margin-top: 10px;
  color: #ffd4df;
  font-size: 0.92rem;
  font-weight: 700;
}

.mini-button,
.repeater-add {
  padding: 10px 14px;
  min-height: auto;
  font-size: 0.92rem;
}

.ghost-button.repeater-add {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 16px 26px rgba(37, 233, 242, 0.18);
}

.ghost-button.repeater-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(37, 233, 242, 0.24);
}

@media (max-width: 720px) {
  .repeater-head,
  .repeater-item-head,
  .nested-periods-head {
    flex-direction: column;
    align-items: stretch;
  }

  .repeater-grid,
  .nested-period-grid,
  .structured-table-head,
  .structured-table-row {
    grid-template-columns: 1fr;
  }

  .hero-home {
    min-height: auto;
  }

  .hero-home-copy {
    min-height: auto;
    justify-content: flex-start;
  }

  .tax-agency-copy p {
    max-width: none;
  }
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
}

.benefit-chip {
  padding: 12px 16px;
  border: 1px solid rgba(198, 206, 255, 0.16);
  border-radius: 999px;
  background: rgba(246, 244, 255, 0.08);
  color: #f7f5ff;
  font-weight: 700;
  font-size: 0.94rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.info-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(120, 108, 159, 0.34);
  border: 1px solid rgba(198, 206, 255, 0.18);
}

.info-card.accent {
  background: linear-gradient(180deg, rgba(111, 142, 246, 0.26), rgba(90, 73, 140, 0.42));
}

.tax-agency-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(24, 8, 62, 0.96), rgba(43, 21, 92, 0.9)),
    linear-gradient(120deg, rgba(111, 142, 246, 0.08), transparent);
  border: 1px solid rgba(198, 206, 255, 0.18);
}

.tax-agency-logo {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  object-fit: cover;
  background: #f5f3ff;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.tax-agency-copy p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 28ch;
  font-size: 1.05rem;
}

.info-card h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.info-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-list li::before {
  content: "";
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 6px rgba(37, 233, 242, 0.14);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.trust-band div {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(103, 218, 243, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(103, 218, 243, 0.18);
}

.trust-band strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

.home-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.home-band article,
.stats-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(94, 80, 136, 0.44);
  border: 1px solid rgba(198, 206, 255, 0.16);
}

.home-band strong,
.stats-card strong {
  display: block;
  margin-bottom: 8px;
}

.home-band p,
.stats-card span {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.stats-card {
  display: grid;
  gap: 12px;
}

.stats-card div {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(28, 8, 73, 0.92);
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(103, 218, 243, 0.18);
}

.stats-card strong {
  color: #fff;
  font-size: 1.35rem;
}

.form-shell {
  width: 100%;
}

.form-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  padding: 18px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 15% 18%, rgba(111, 142, 246, 0.18), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(37, 233, 242, 0.14), transparent 18%),
    linear-gradient(180deg, #1a0545 0%, #120032 46%, #16043d 100%);
}

.form-screen.is-active {
  display: block;
}

.form-screen-shell {
  width: min(1440px, 100%);
  min-height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
}

.form-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-radius: 24px;
  background: rgba(18, 0, 50, 0.84);
  border: 1px solid rgba(111, 142, 246, 0.2);
  box-shadow: var(--shadow);
}

.form-close-button {
  white-space: nowrap;
}

.form-panel {
  position: sticky;
  top: 24px;
}

.form-frame {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(198, 206, 255, 0.14);
}

.form-frame-wide {
  width: 100%;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(54, 35, 97, 0.88), rgba(43, 24, 84, 0.9)),
    linear-gradient(120deg, rgba(111, 142, 246, 0.1), transparent);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

.form-frame-full {
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  overflow: visible;
}

.progress-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.progress-head h2 {
  font-size: clamp(2rem, 2.5vw, 2.7rem);
}

.step-indicator {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(111, 142, 246, 0.16);
  color: #f1efff;
  font-weight: 700;
  font-size: 0.9rem;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 10px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  transition: width 220ms ease;
}

.wizard-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin-bottom: 8px;
  scrollbar-width: thin;
}

.wizard-tab {
  appearance: none;
  border: 1px solid rgba(198, 206, 255, 0.14);
  background: rgba(248, 246, 255, 0.06);
  color: #f5f3ff;
  border-radius: 20px;
  padding: 12px 14px;
  min-width: 160px;
  display: grid;
  gap: 2px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.wizard-tab span {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.wizard-tab strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.wizard-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 233, 242, 0.28);
}

.wizard-tab.is-active {
  background: linear-gradient(90deg, rgba(111, 142, 246, 0.28) 0%, rgba(37, 233, 242, 0.18) 100%);
  border-color: rgba(37, 233, 242, 0.52);
  box-shadow: 0 12px 22px rgba(37, 233, 242, 0.12);
}

.wizard-tab.is-complete {
  border-color: rgba(111, 142, 246, 0.32);
}

.form-stage {
  min-height: 400px;
  overflow: visible;
  padding-right: 4px;
}

.step-page {
  animation: fadeSlide 240ms ease;
}

.step-page h3 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
}

.step-page p {
  margin: 0 0 24px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.step-empty {
  margin: 0 0 24px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(198, 206, 255, 0.14);
  background: rgba(248, 246, 255, 0.08);
  color: var(--ink-soft);
  line-height: 1.7;
}

.field-grid {
  display: grid;
  gap: 16px;
}

.field-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
  position: relative;
  align-content: start;
}

.field-cluster {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(198, 206, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.field-cluster-grid {
  gap: 18px;
}

.field-cluster-main {
  margin-bottom: 16px;
}

.field-cluster-children {
  align-items: start;
}

.field label,
.choice-group legend {
  font-weight: 700;
  font-size: 0.96rem;
}

.field > label {
  display: flex;
  align-items: center;
  min-height: 28px;
}

.field-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  min-height: 28px;
}

.help-trigger {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(37, 233, 242, 0.2);
}

.help-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 5;
  width: min(320px, calc(100vw - 48px));
  padding: 14px 16px;
  border: 1px solid rgba(198, 206, 255, 0.16);
  border-radius: 16px;
  background: rgba(24, 9, 63, 0.98);
  color: #f5f3ff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  display: none;
}

.help-popover.is-visible {
  display: block;
}

.field-label-row:hover .help-popover,
.field-label-row:focus-within .help-popover {
  display: block;
}

.help-popover p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #d8d3f7;
}

.help-popover a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(198, 206, 255, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(248, 246, 255, 0.94);
  color: #1f1240;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.currency-input-wrap {
  position: relative;
}

.currency-input-wrap::after {
  content: "€";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #5f5485;
  font-weight: 800;
  pointer-events: none;
}

.currency-input {
  padding-right: 46px !important;
}

.field input[type="file"] {
  padding: 12px 14px;
  background: rgba(248, 246, 255, 0.98);
  cursor: pointer;
  color: transparent;
  text-shadow: none;
}

.field input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(111, 142, 246, 0.96) 0%, rgba(37, 233, 242, 0.92) 100%);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.field input[type="file"]::file-selector-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(37, 233, 242, 0.18);
}

.field-tip {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.upload-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(198, 206, 255, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(25, 10, 65, 0.36);
}

.upload-card-surface {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(248, 246, 255, 0.94);
}

.upload-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.upload-card .file-input {
  padding: 12px 14px;
  border: 1px dashed rgba(111, 142, 246, 0.18);
  background: transparent;
}

.upload-card-picker {
  width: auto;
  min-width: 220px;
  max-width: 240px;
  justify-self: start;
}

.upload-card .file-input::file-selector-button {
  margin-right: 12px;
}

.upload-card-status {
  color: #5f5485;
  font-size: 0.92rem;
  line-height: 1.5;
}

.upload-card-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.upload-card-files-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px dashed rgba(111, 142, 246, 0.18);
  border-radius: 14px;
  background: rgba(111, 142, 246, 0.05);
}

.upload-card-files-placeholder {
  background: rgba(111, 142, 246, 0.03);
}

.upload-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(111, 142, 246, 0.22);
  border-radius: 999px;
  background: rgba(111, 142, 246, 0.12);
  color: #3b2d6e;
  font-size: 0.88rem;
  line-height: 1.3;
  word-break: break-word;
}

.upload-file-remove {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(59, 45, 110, 0.12);
  color: #3b2d6e;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.upload-file-remove:hover {
  background: rgba(59, 45, 110, 0.2);
}

.compact-file-input {
  padding: 10px 12px;
}

.structured-table {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(198, 206, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.structured-table-head,
.structured-table-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1.4fr);
}

.structured-table-head {
  background: rgba(111, 142, 246, 0.16);
  border-bottom: 1px solid rgba(198, 206, 255, 0.12);
}

.structured-table-head-cell,
.structured-table-row-label,
.structured-table-cell {
  padding: 14px 16px;
}

.structured-table-head-cell,
.structured-table-row-label {
  font-weight: 700;
}

.structured-table-row + .structured-table-row {
  border-top: 1px solid rgba(198, 206, 255, 0.1);
}

.structured-table-row-label {
  color: #fff;
  background: rgba(17, 5, 45, 0.22);
}

.structured-table-cell {
  min-width: 0;
}

.structured-table-cell input {
  margin: 0;
}

.regional-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(37, 233, 242, 0.22);
  background: linear-gradient(145deg, rgba(37, 233, 242, 0.08), rgba(111, 142, 246, 0.08));
  color: var(--ink-soft);
  line-height: 1.6;
}

.regional-note strong {
  color: #fff;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7f7b97;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(37, 233, 242, 0.9);
  box-shadow: 0 0 0 4px rgba(37, 233, 242, 0.14);
  transform: translateY(-1px);
}

.choice-group {
  margin: 0;
  padding: 0;
  border: none;
}

.option-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.option-card {
  position: relative;
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(198, 206, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(246, 244, 255, 0.08);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.option-card label::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.42);
}

.option-card input[type="checkbox"] + label::after {
  border-radius: 6px;
}

.option-card input:checked + label {
  border-color: rgba(37, 233, 242, 0.72);
  background: rgba(103, 218, 243, 0.18);
  transform: translateY(-1px);
}

.option-card input:checked + label::after {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  box-shadow: inset 0 0 0 3px #fff;
}

.step-intro {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(111, 142, 246, 0.18), rgba(37, 233, 242, 0.08));
  border: 1px solid rgba(198, 206, 255, 0.16);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mini-stats div {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(248, 246, 255, 0.08);
  border: 1px solid rgba(198, 206, 255, 0.14);
}

.mini-stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.3rem;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.review-header h3 {
  margin-bottom: 10px;
}

.review-submit-top {
  flex: 0 0 auto;
  white-space: nowrap;
}

.review-item {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(248, 246, 255, 0.08);
  border: 1px solid rgba(198, 206, 255, 0.14);
}

.review-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.ghost-button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 15px 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.primary-button {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow: 0 16px 26px rgba(37, 233, 242, 0.18);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.primary-button:disabled,
.ghost-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.foot-note {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.hidden {
  display: none;
}

.field-error {
  color: #b25434;
  font-size: 0.86rem;
  font-weight: 700;
}

.error-state input,
.error-state select,
.error-state textarea,
.error-state .option-card label {
  border-color: rgba(178, 84, 52, 0.52);
}

.error-state .field-tip {
  color: #f0c5b6;
}

.success-state {
  display: grid;
  gap: 16px;
  padding: 10px 0 4px;
}

.success-state p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero-home,
  .home-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 14px;
  }

  .site-header,
  .progress-head,
  .wizard-actions,
  .form-screen-header {
    display: grid;
  }

  .hero-grid,
  .trust-band,
  .mini-stats,
  .field-grid.two-up,
  .field-grid.three-up {
    grid-template-columns: 1fr;
  }

  .header-pill,
  .step-indicator {
    justify-self: start;
  }

  .hero-home-copy,
  .hero-home-panel,
  .form-frame,
  .form-screen {
    padding: 22px;
    border-radius: 26px;
  }

  .form-screen {
    inset: 0;
    padding: 10px;
  }

  .form-screen-shell {
    gap: 10px;
  }

  .form-frame-full {
    padding: 22px;
    min-height: calc(100vh - 100px);
  }

  .tax-agency-card {
    grid-template-columns: 1fr;
  }

  .tax-agency-logo {
    width: 78px;
    height: 78px;
    border-radius: 24px;
  }

  .hero-home h1,
  .progress-head h2,
  .success-state h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .form-stage {
    min-height: 320px;
  }

  .wizard-actions {
    gap: 10px;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .wizard-tab {
    min-width: 132px;
  }
}
