:root {
  --ink: #101114;
  --muted: #6d7078;
  --line: #dedfe3;
  --soft: #f4f4f2;
  --paper: #fbfbf9;
  --accent: #ccff00;
  --violet: #7047eb;
  --error: #c94135;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 14%, rgba(204, 255, 0, 0.16), transparent 23rem),
    var(--paper);
  font-family: "DM Sans", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  width: min(1180px, calc(100% - 40px));
  height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font: 800 13px/1 "Manrope", sans-serif;
  letter-spacing: 0.13em;
}

.brand-mark {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--ink);
  font-size: 12px;
}

.prototype-pill {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 100px;
}

.intro {
  padding: 92px 0 72px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--violet);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
}

h1,
h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
}

h1 {
  max-width: 800px;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.lede {
  max-width: 590px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.workspace {
  padding: clamp(28px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 80px rgba(28, 28, 30, 0.07);
}

.section-heading {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 70px 0 30px;
}

.section-heading:first-child {
  margin-top: 0;
}

.section-heading > span {
  display: grid;
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  font-weight: 700;
  font-size: 11px;
}

.section-heading h2,
.dialog-head h2,
.success h2 {
  font-size: clamp(25px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 25px;
}

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

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

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
}

.field > span,
.field legend {
  font-weight: 600;
  font-size: 13px;
}

.field b {
  color: var(--violet);
}

.field small {
  color: #92949a;
  font-size: 11px;
  line-height: 1.45;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: white;
  transition: border-color 160ms, box-shadow 160ms;
}

input,
select {
  height: 50px;
  padding: 0 14px;
}

textarea {
  padding: 14px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(112, 71, 235, 0.11);
}

select:disabled {
  color: #999ba1;
  background: #f4f4f4;
}

.field.invalid input,
.field.invalid select {
  border-color: var(--error);
}

.destination {
  display: flex;
  gap: 13px;
  align-items: center;
  margin: 25px 0 0;
  padding: 17px 18px;
  border-radius: 10px;
  color: white;
  background: var(--ink);
}

.destination-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: var(--accent);
  font-size: 18px;
}

.destination div {
  display: grid;
  gap: 4px;
}

.destination div span {
  color: #a8abb3;
  font-size: 9px;
  letter-spacing: 0.15em;
}

.destination strong {
  font-size: 13px;
}

.money {
  position: relative;
}

.money span {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--muted);
  transform: translateY(-50%);
}

.money input {
  padding-left: 29px;
}

fieldset {
  padding: 0;
  border: 0;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.chip span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  background: white;
  font-size: 12px;
  transition: 160ms;
}

.chip input:checked + span {
  border-color: var(--ink);
  color: var(--accent);
  background: var(--ink);
}

.upload {
  margin-top: 26px;
  padding: 32px;
  align-items: center;
  border: 1px dashed #c6c7ca;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  background: var(--soft);
}

.upload input {
  display: none;
}

.upload-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--violet);
  font-size: 21px !important;
}

#file-list {
  color: var(--violet);
  font-size: 11px;
}

.review-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 70px -72px -72px;
  padding: 30px 72px;
  border-radius: 0 0 22px 22px;
  background: var(--soft);
}

.review-bar div {
  display: grid;
  gap: 5px;
}

.review-bar div span {
  font-weight: 600;
}

.review-bar small {
  color: var(--muted);
}

button {
  min-height: 48px;
  padding: 0 19px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  color: white;
  background: var(--violet);
  font-weight: 700;
}

button span {
  margin-left: 18px;
}

dialog {
  width: min(680px, calc(100% - 30px));
  max-height: calc(100vh - 40px);
  padding: 36px;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
}

dialog::backdrop {
  background: rgba(14, 15, 18, 0.72);
  backdrop-filter: blur(5px);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 30px;
}

.icon-button {
  min-height: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 29px;
  line-height: 1;
}

.review-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.review-row {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.review-row span {
  color: var(--muted);
  font-size: 12px;
}

.review-row strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  white-space: pre-wrap;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
}

button.secondary {
  color: var(--ink);
  background: var(--soft);
}

.success {
  text-align: center;
}

.success-mark {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  font-size: 26px;
  font-weight: 800;
}

.success p:not(.eyebrow) {
  max-width: 500px;
  margin: 20px auto 28px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 760px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .intro {
    padding: 64px 0 48px;
  }

  .workspace {
    padding: 26px 20px;
  }

  .review-bar {
    margin: 60px -20px -26px;
    padding: 24px 20px;
    border-radius: 0 0 22px 22px;
  }

  .review-bar > div {
    display: none;
  }

  .review-bar button {
    width: 100%;
  }

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

  .dialog-actions {
    flex-direction: column-reverse;
  }

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