.project-form-page {
  background:
    radial-gradient(circle at 86% 8%, rgba(56, 189, 248, .28), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 44%, #f3f8ff 100%);
}

.project-form-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.project-form-hero {
  padding: 46px 0 28px;
  border-bottom: 1px solid var(--line);
}

.project-form-hero h1 {
  max-width: 980px;
  font-size: clamp(1.65rem, 3.1vw, 2.45rem);
  line-height: 1.08;
}

.project-form-lead {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.form-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 34px 0 58px;
}

.progress-card,
.project-form-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-soft);
}

.progress-card {
  position: sticky;
  top: 126px;
  display: grid;
  gap: 18px;
  padding: 20px;
}

.progress-meta {
  display: grid;
  gap: 4px;
}

.progress-meta span {
  color: var(--primary);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.progress-meta strong {
  font-size: 1.25rem;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--primary-soft);
}

.progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--sky));
  transition: width .18s ease;
}

.progress-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 800;
}

.progress-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--primary-dark);
  font-size: .8rem;
  font-weight: 950;
}

.progress-steps li.active {
  color: var(--ink);
}

.progress-steps li.done .progress-dot,
.progress-steps li.active .progress-dot {
  border-color: rgba(37, 99, 235, .32);
  background: var(--primary);
  color: #fff;
}

.clear-draft-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
}

.clear-draft-button:hover {
  border-color: #b9d2f4;
  color: var(--primary-dark);
}

.project-form-card {
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
}

.form-step {
  display: none;
}

.form-step.active {
  display: grid;
  gap: 24px;
}

.step-heading {
  max-width: 760px;
}

.step-heading h2 {
  margin-bottom: 10px;
}

.step-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

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

.service-card {
  display: grid;
  gap: 14px;
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  text-align: left;
}

.service-card.selected {
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 950;
}

.service-card h3 {
  margin: 0;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-card button {
  align-self: end;
  justify-self: start;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 900;
  cursor: pointer;
}

.service-card.selected button {
  background: var(--primary);
  color: #fff;
}

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

.question-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-soft);
}

.question-section h3 {
  margin: 0;
}

.question-section .field-grid {
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
  align-content: start;
}

.form-field.wide,
.checkbox-group,
.radio-group {
  grid-column: 1 / -1;
}

.form-field[data-field-wrap="customBudget"] {
  grid-column: 2;
}

.form-field label,
.field-label {
  color: var(--ink);
  font-weight: 850;
}

.required-mark {
  color: #d21f2b;
  margin-left: 4px;
  font-size: 1.05em;
  font-weight: 950;
}

.helper-text {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 11px 13px;
}

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

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #e35b5b;
  box-shadow: 0 0 0 3px rgba(227, 91, 91, .12);
}

.field-error {
  margin: 0;
  color: #b42323;
  font-size: .86rem;
  font-weight: 800;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.option-line,
.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 3px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 720;
}

.option-line input,
.check-line input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--primary);
}

.form-message {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 850;
}

.form-message.error {
  background: #ffe6e6;
  color: #9f1f1f;
}

.review-panel {
  display: grid;
  gap: 14px;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  overflow: hidden;
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.review-card-header h3 {
  margin: 0;
}

.edit-step-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 900;
  cursor: pointer;
}

.review-list {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}

.review-row {
  display: grid;
  grid-template-columns: minmax(130px, .38fr) minmax(0, 1fr);
  gap: 12px;
}

.review-row dt {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 850;
}

.review-row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 720;
  overflow-wrap: anywhere;
}

.confirm-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.whatsapp-submit-note {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(18, 140, 126, .22);
  border-radius: 18px;
  background: #ecfdf7;
  color: #0c4f49;
}

.whatsapp-submit-note strong {
  color: #073f3a;
}

.whatsapp-submit-note p {
  margin: 0;
  color: #17645c;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.form-actions .button[hidden] {
  display: none;
}

.form-actions .button:disabled {
  cursor: not-allowed;
  opacity: .62;
  transform: none;
}

@media (max-width: 900px) {
  .form-workspace {
    grid-template-columns: 1fr;
  }

  .progress-card {
    position: static;
  }

  .progress-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .progress-steps li {
    display: grid;
    justify-items: center;
    gap: 5px;
    text-align: center;
    font-size: .76rem;
  }
}

@media (max-width: 680px) {
  .project-form-shell {
    width: min(100% - 24px, 1160px);
  }

  .project-form-hero {
    padding: 30px 0 22px;
  }

  .form-workspace {
    padding: 22px 0 42px;
  }

  .service-grid,
  .field-grid,
  .dynamic-fields,
  .question-section .field-grid,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .form-field[data-field-wrap="customBudget"] {
    grid-column: 1;
  }

  .project-form-card {
    padding: 18px;
  }

  .review-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }
}
