:root {
  color-scheme: light;
  --brand-900: #12384d;
  --brand-800: #164d68;
  --brand-700: #1c6689;
  --brand-600: #247fa8;
  --brand-100: #e8f4f8;
  --accent-600: #d56c35;
  --ink-900: #162129;
  --ink-700: #43515a;
  --ink-500: #6b7880;
  --line: #dbe3e7;
  --surface: #ffffff;
  --background: #f3f7f8;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --success: #176b4d;
  --success-soft: #e9f7f1;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 16px 44px rgba(22, 56, 77, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink-900);
  background:
    radial-gradient(circle at 85% 0%, rgba(36, 127, 168, 0.11), transparent 32rem),
    var(--background);
}

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

button {
  cursor: pointer;
}

.container {
  width: min(1080px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  color: #fff;
  background: linear-gradient(125deg, var(--brand-900), var(--brand-700));
  border-bottom: 4px solid var(--accent-600);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 104px;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
}

.site-header h1 {
  margin: 2px 0 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.eyebrow {
  margin: 0;
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-header .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.page-content {
  padding-block: 44px 72px;
}

.intro {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

.intro h2 {
  max-width: 760px;
  margin: 8px 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.intro p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--ink-700);
  font-size: 1.03rem;
  line-height: 1.65;
}

.step-badge {
  display: grid;
  min-width: 120px;
  padding: 16px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
}

.step-badge span {
  color: var(--brand-700);
  font-size: 1.7rem;
  font-weight: 800;
}

.step-badge small {
  color: var(--ink-500);
}

.card,
.destination-card {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(219, 227, 231, 0.9);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-heading,
.destination-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.section-heading > div,
.destination-header > div {
  display: flex;
  gap: 12px;
  align-items: center;
}

.section-number {
  color: var(--accent-600);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-heading h2,
.destination-header h3 {
  margin: 0;
  font-size: 1.35rem;
}

.section-heading > p {
  max-width: 420px;
  margin: 0;
  color: var(--ink-500);
  line-height: 1.5;
  text-align: right;
}

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

.field {
  min-width: 0;
}

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

.field label:not(.file-dropzone) {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 750;
}

.field input:not([type="file"]),
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #c8d3d8;
  border-radius: 11px;
  color: var(--ink-900);
  background: #fff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:not([type="file"]),
.field select {
  min-height: 48px;
  padding: 0 13px;
}

.field textarea {
  min-height: 124px;
  padding: 13px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 4px rgba(36, 127, 168, 0.12);
}

.field input[readonly] {
  color: var(--ink-500);
  background: #f4f6f7;
}

.field small,
.field-meta {
  color: var(--ink-500);
  font-size: 0.78rem;
  line-height: 1.4;
}

.field > small {
  display: block;
  margin-top: 7px;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
}

.field-error {
  min-height: 18px;
  margin: 5px 0 0;
  color: var(--danger);
  font-size: 0.78rem;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.destinations-section {
  margin-top: 30px;
}

.destinations-heading {
  align-items: center;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
}

.destinations-list {
  display: grid;
  gap: 22px;
}

.destination-card {
  position: relative;
  overflow: hidden;
}

.destination-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(var(--brand-600), var(--accent-600));
  content: "";
}

.destination-index {
  margin: 0;
  color: var(--brand-700);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.destination-header > div {
  display: block;
}

.destination-header h3 {
  margin-top: 4px;
}

.remove-destination {
  border: 0;
  color: var(--danger);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 750;
}

.remove-destination:hover {
  text-decoration: underline;
}

.file-dropzone {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 16px;
  border: 1.5px dashed #aebfc7;
  border-radius: 12px;
  background: #f8fbfc;
  cursor: pointer;
}

.file-dropzone:hover {
  border-color: var(--brand-600);
  background: var(--brand-100);
}

.file-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.file-dropzone span:last-child {
  display: grid;
  gap: 4px;
}

.file-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--brand-700);
  font-size: 1.3rem;
  font-weight: 800;
}

.file-list {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  color: var(--ink-700);
  font-size: 0.82rem;
  list-style: none;
}

.file-list li {
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--brand-100);
}

.button {
  display: inline-flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 0 19px;
  border-radius: 12px;
  font-weight: 780;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

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

.button-primary {
  border: 1px solid var(--brand-700);
  color: #fff;
  background: var(--brand-700);
  box-shadow: 0 9px 20px rgba(28, 102, 137, 0.2);
}

.button-primary:hover {
  background: var(--brand-800);
}

.button-secondary {
  width: 100%;
  margin-top: 18px;
  border: 1.5px dashed var(--brand-600);
  color: var(--brand-700);
  background: rgba(255, 255, 255, 0.6);
}

.button-secondary:hover {
  background: var(--brand-100);
}

.button-ghost {
  border: 1px solid var(--line);
  color: var(--ink-700);
  background: #fff;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.form-status {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid #b6dfcf;
  border-radius: 12px;
  color: var(--success);
  background: var(--success-soft);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .page-content {
    padding-block: 30px 48px;
  }

  .intro,
  .section-heading,
  .destination-header {
    display: block;
  }

  .step-badge {
    display: none;
  }

  .section-heading > p {
    margin-top: 10px;
    text-align: left;
  }

  .destination-header .remove-destination {
    margin-top: 12px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .form-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
