:root {
  --brand-orange: #ff7a1a;
  --brand-orange-strong: #f76700;
  --brand-orange-soft: rgba(255, 122, 26, 0.1);
  --brand-burgundy: #320019;
  --brand-burgundy-soft: #531732;
  --brand-burgundy-deep: #240012;
  --brand-green: #1e4d43;
  --page-bg: #eef4f4;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --surface-muted: rgba(249, 251, 251, 0.78);
  --text: #2a0a1b;
  --muted: #67616a;
  --line: rgba(42, 10, 27, 0.12);
  --line-soft: rgba(42, 10, 27, 0.08);
  --danger: #cf3358;
  --danger-soft: #fff1f4;
  --shadow-card: 0 24px 60px rgba(31, 6, 19, 0.1);
  --shadow-soft: 0 10px 24px rgba(31, 6, 19, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 26, 0.12), transparent 26%),
    radial-gradient(circle at bottom right, rgba(83, 23, 50, 0.12), transparent 30%),
    linear-gradient(180deg, #f7f9f9 0%, var(--page-bg) 100%);
}

body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 999px;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: 80px;
  left: 6%;
  width: 180px;
  height: 180px;
  background: rgba(255, 122, 26, 0.1);
}

body::after {
  right: 10%;
  bottom: 90px;
  width: 220px;
  height: 220px;
  background: rgba(83, 23, 50, 0.12);
}

.layout {
  position: relative;
  z-index: 1;
  padding: 28px 0 32px;
}

.signup-shell {
  width: min(760px, calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.signup-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.72));
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.form-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-burgundy-deep) 0%, var(--brand-burgundy) 58%, var(--brand-burgundy-soft) 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.form-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(255, 122, 26, 0.2), transparent 18%);
  pointer-events: none;
}

.brand-lockup,
.progress-copy,
.detail-row,
.estimate-head,
.panel-actions-inline {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 14px;
  flex-wrap: wrap;
}

.brand-wordmark {
  display: block;
  width: 108px;
  height: auto;
}

.brand-kicker,
.section-kicker,
.panel-eyebrow,
.estimate-label,
.summary-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-kicker {
  color: rgba(255, 202, 171, 0.94);
}

.brand-copy,
.progress-shell,
.panel,
.estimate-card,
.summary-card,
.success-card,
.detail-card {
  position: relative;
}

.brand-copy {
  display: grid;
  gap: 8px;
  z-index: 1;
}

.section-kicker,
.panel-eyebrow {
  color: var(--brand-orange);
}

.form-hero h1,
.panel h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.form-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.section-description,
.panel-description,
.registration-note p,
.helper-note,
.disclaimer,
.estimate-empty p,
.success-card strong {
  margin: 0;
  line-height: 1.64;
}

.section-description {
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.9);
}

.progress-shell {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(16px);
}

.progress-copy {
  justify-content: space-between;
  gap: 12px;
}

.progress-copy strong {
  color: var(--brand-burgundy);
  font-size: 0.98rem;
}

.progress-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.progress-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(42, 10, 27, 0.08);
}

.progress-fill {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-orange) 0%, #ff9a4f 100%);
  box-shadow: 0 0 20px rgba(255, 122, 26, 0.22);
  transition: width 0.24s ease;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.progress-step {
  display: grid;
  justify-items: start;
  gap: 8px;
  color: #817782;
}

.progress-step span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(42, 10, 27, 0.12);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-burgundy);
}

.progress-step small {
  font-size: 0.82rem;
  font-weight: 600;
}

.progress-step.is-active,
.progress-step.is-complete {
  color: var(--brand-burgundy);
}

.progress-step.is-active span,
.progress-step.is-complete span {
  border-color: transparent;
  background: var(--brand-orange);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(255, 122, 26, 0.22);
}

.wizard-panel {
  display: none;
}

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

.panel {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.panel-success {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 252, 252, 0.78));
}

.panel-header {
  margin-bottom: 18px;
}

.panel h2 {
  color: var(--brand-burgundy);
  font-size: 1.6rem;
}

.panel-description {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.field-group {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.field-label {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--brand-burgundy);
}

.field-select {
  position: relative;
}

.field-select::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 18px;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(42, 10, 27, 0.48);
  border-bottom: 2px solid rgba(42, 10, 27, 0.48);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

input[type='text'],
input[type='tel'],
input[type='email'],
select {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.98rem;
  color: var(--brand-burgundy);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

select {
  padding-right: 44px;
  appearance: none;
}

input::placeholder {
  color: #91858d;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(255, 122, 26, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.12);
}

.estimate-card,
.summary-card,
.success-card,
.detail-card,
.registration-note {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(16px);
}

.estimate-card {
  margin-top: 4px;
  padding: 18px;
}

.estimate-card.is-empty {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.46));
}

.estimate-card.is-empty .estimate-content {
  display: none;
}

.estimate-card:not(.is-empty) {
  background: linear-gradient(135deg, var(--brand-burgundy-deep) 0%, var(--brand-burgundy) 54%, var(--brand-burgundy-soft) 100%);
  color: #ffffff;
  box-shadow: 0 20px 42px rgba(50, 0, 25, 0.22);
}

.estimate-card:not(.is-empty) .estimate-empty {
  display: none;
}

.estimate-empty {
  display: grid;
  gap: 8px;
}

.estimate-empty strong {
  color: var(--brand-burgundy);
  font-size: 1.45rem;
  line-height: 1.1;
}

.estimate-empty p {
  color: var(--muted);
  font-size: 0.94rem;
}

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

.estimate-label {
  color: rgba(255, 255, 255, 0.62);
}

.estimate-card.is-empty .estimate-label {
  color: var(--brand-orange);
}

.estimate-head strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.estimate-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-orange), #ff9445);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(255, 122, 26, 0.24);
}

.estimate-list,
.detail-card {
  display: grid;
}

.estimate-list {
  gap: 10px;
  margin-top: 16px;
}

.estimate-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.estimate-item span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.estimate-item strong {
  color: #ffffff;
  font-size: 0.94rem;
  text-align: right;
}

.panel-actions {
  margin-top: 18px;
}

.panel-actions-inline {
  gap: 10px;
}

.summary-card {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 244, 236, 0.6));
}

.summary-label {
  color: var(--brand-orange);
}

.summary-card strong {
  color: var(--brand-burgundy);
  font-size: 2rem;
  line-height: 1;
}

.summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.summary-dot {
  margin: 0 6px;
}

.input-group {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.registration-note {
  margin: 8px 0 18px;
  padding: 14px 15px;
  background: linear-gradient(180deg, rgba(255, 244, 236, 0.74), rgba(255, 249, 245, 0.66));
  border-color: rgba(255, 122, 26, 0.14);
}

.registration-note strong,
.success-card strong {
  color: var(--brand-burgundy);
  font-size: 0.98rem;
}

.registration-note p,
.helper-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 14px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  border: none;
  background: linear-gradient(180deg, var(--brand-orange), #ff8b33);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(255, 122, 26, 0.22);
}

.secondary-button {
  border: 1px solid rgba(42, 10, 27, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand-burgundy);
}

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

.primary-button:hover {
  background: linear-gradient(180deg, var(--brand-orange-strong), #ff8528);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.helper-note {
  margin-top: 12px;
}

.field-error,
.validation-message {
  margin: 0;
  font-size: 0.86rem;
  color: var(--danger);
}

.input-group.is-invalid input {
  background: var(--danger-soft);
  border-color: rgba(207, 51, 88, 0.32);
  color: #bf2a52;
}

.success-message {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--danger-soft);
  color: var(--danger);
  line-height: 1.6;
}

.success-card {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 244, 236, 0.7));
}

.success-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-orange-soft);
  color: var(--brand-orange);
  font-size: 0.84rem;
  font-weight: 700;
}

.detail-card {
  gap: 0;
  overflow: hidden;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.detail-row {
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(42, 10, 27, 0.08);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-row strong {
  color: var(--brand-burgundy);
  font-size: 0.92rem;
  text-align: right;
}

.disclaimer {
  color: #7c7780;
  font-size: 0.84rem;
}

.is-hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .layout {
    padding: 12px 0 22px;
  }

  .signup-shell {
    width: min(100%, calc(100% - 16px));
  }

  .signup-card,
  .form-hero,
  .panel,
  .progress-shell,
  .estimate-card,
  .summary-card,
  .success-card,
  .detail-card,
  .registration-note {
    border-radius: 18px;
  }

  .signup-card,
  .form-hero,
  .panel {
    padding: 16px;
  }

  .form-hero h1 {
    max-width: none;
    font-size: 2rem;
  }

  .progress-copy {
    align-items: center;
  }

  .panel-actions-inline {
    grid-template-columns: 1fr;
  }

  .progress-steps {
    gap: 6px;
  }

  .progress-step {
    justify-items: center;
    text-align: center;
    gap: 6px;
  }

  .progress-step small {
    font-size: 0.78rem;
  }

  .panel-actions-inline,
  .estimate-head {
    flex-direction: column;
    align-items: stretch;
  }

  .estimate-head strong,
  .summary-card strong {
    font-size: 1.8rem;
  }

  .estimate-item,
  .detail-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
