.tr-page {
  --tr-sand: #e8dcc8;
  --tr-ink: #1a242e;
  --tr-muted: #5a6570;
  --tr-accent: #0d6e6e;
  --tr-accent-dark: #0a5555;
  --tr-wash: linear-gradient(165deg, #f7f1e6 0%, #ebe4d6 42%, #dfe8e6 100%);
  min-height: 100vh;
  background: var(--tr-wash);
  color: var(--tr-ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  padding-bottom: 5.5rem;
}

.tr-page .site-header {
  background: rgba(255, 252, 247, 0.92);
  border-bottom: 1px solid rgba(26, 36, 46, 0.08);
  backdrop-filter: blur(8px);
}

.tr-page .site-header-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  width: min(40rem, calc(100% - 2rem));
  margin-inline: auto;
  padding: 0.65rem 0;
}

.tr-page .site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  margin-inline-start: auto;
}

.tr-page .lang-switch-wrap {
  margin-inline-start: auto;
  order: 0;
}

.tr-page .lang-dropdown-toggle {
  background: rgba(13, 110, 110, 0.08);
  border-color: rgba(13, 110, 110, 0.2);
  color: var(--tr-ink);
}

.tr-page .site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Fraunces", "Source Serif 4", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: inherit;
}

.tr-shell {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.75rem 1.15rem 2rem;
}

.tr-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tr-accent);
}

.tr-shell > h1 {
  margin: 0 0 0.55rem;
  font-family: "Fraunces", "Source Serif 4", Georgia, serif;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.tr-lead {
  margin: 0 0 1.25rem;
  color: var(--tr-muted);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 36rem;
}

.tr-progress {
  margin: 0 0 1rem;
}

.tr-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(26, 36, 46, 0.08);
  overflow: hidden;
}

.tr-progress-bar span {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--tr-accent);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.tr-progress-label {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--tr-muted);
}

.tr-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  font-size: 0.78rem;
}

.tr-steps li button {
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--tr-muted);
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
}

.tr-steps li.is-active button {
  background: #fff;
  color: var(--tr-accent-dark);
  border-color: rgba(13, 110, 110, 0.35);
  font-weight: 700;
}

.tr-steps li.is-done button {
  color: var(--tr-accent);
}

.tr-steps li button:disabled {
  cursor: default;
  opacity: 0.7;
}

.tr-form {
  background: rgba(255, 252, 247, 0.85);
  border: 1px solid rgba(26, 36, 46, 0.08);
  border-radius: 12px;
  padding: 1.2rem 1.1rem 1.35rem;
}

.tr-panel h2 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  font-family: "Fraunces", Georgia, serif;
}

.tr-subh {
  margin: 1.25rem 0 0.55rem;
  font-size: 1rem;
  font-family: "Fraunces", Georgia, serif;
}

.tr-optional {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--tr-muted);
  font-family: "Source Sans 3", sans-serif;
}

.tr-hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--tr-muted);
  line-height: 1.45;
}

.tr-field-note {
  margin: -0.35rem 0 0.35rem;
  font-size: 0.82rem;
  color: var(--tr-muted);
}

.tr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

.tr-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.tr-span-2 { grid-column: 1 / -1; }

.tr-field input,
.tr-field select,
.tr-field textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.6rem 0.7rem;
  border: 1px solid #c5cdd6;
  border-radius: 8px;
  background: #fff;
  color: var(--tr-ink);
  min-height: 2.6rem;
}

.tr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tr-chip {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #c5cdd6;
  background: #fff;
  cursor: pointer;
  color: var(--tr-ink);
}

.tr-chip.is-on {
  background: rgba(13, 110, 110, 0.12);
  border-color: var(--tr-accent);
  color: var(--tr-accent-dark);
}

.tr-checks {
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.tr-checks-2 {
  grid-template-columns: 1fr 1fr;
}

.tr-checks label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: 400;
  padding: 0.35rem 0;
}

.tr-fieldset {
  border: 1px solid #d5dde5;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0;
}

.tr-fieldset legend {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0 0.25rem;
}

.tr-pkg-choice {
  margin-bottom: 1rem;
  background: rgba(13, 110, 110, 0.06);
  border-color: rgba(13, 110, 110, 0.28);
}

.tr-choice {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 500;
  padding: 0.55rem 0.15rem;
  cursor: pointer;
}

.tr-choice input {
  margin-top: 0.2rem;
}

.tr-flight-modes {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.tr-mode {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  background: #fff;
  border: 1px solid #d5dde5;
  border-radius: 10px;
  cursor: pointer;
}

.tr-mode input { margin-top: 0.2rem; }

.tr-mode strong {
  display: block;
  font-size: 0.95rem;
}

.tr-mode small {
  display: block;
  margin-top: 0.2rem;
  color: var(--tr-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.tr-mode:has(input:checked) {
  border-color: var(--tr-accent);
  box-shadow: inset 3px 0 0 var(--tr-accent);
}

.tr-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(26, 36, 46, 0.08);
}

.tr-nav-sticky {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 1rem -1.1rem -1.35rem;
  padding: 0.85rem 1.1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 252, 247, 0.96);
  border-top: 1px solid rgba(26, 36, 46, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 0 0 12px 12px;
}

.tr-nav-spacer { flex: 1; }

.tr-btn {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  min-height: 2.75rem;
}

.tr-btn-primary {
  background: var(--tr-accent);
  color: #fff;
}

.tr-btn-primary:hover { background: var(--tr-accent-dark); }
.tr-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.tr-btn-ghost {
  background: transparent;
  color: var(--tr-ink);
  border: 1px solid #b8c2cc;
}

.tr-review {
  font-size: 0.92rem;
  line-height: 1.5;
  background: #fff;
  border: 1px solid #dce3ea;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.tr-review dt {
  font-weight: 700;
  margin-top: 0.55rem;
  color: var(--tr-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tr-review dd { margin: 0.15rem 0 0; }

.tr-error {
  color: #9b1c1c;
  margin: 0.75rem 0 0;
  font-weight: 600;
}

.tr-success {
  color: #0a5555;
  margin: 0.75rem 0 0;
  line-height: 1.45;
  padding: 0.85rem 1rem;
  background: rgba(13, 110, 110, 0.08);
  border-radius: 8px;
}

.tr-success a { color: var(--tr-accent-dark); font-weight: 700; }

.tr-foot-help {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--tr-muted);
  text-align: center;
}

.tr-foot-help a { color: var(--tr-accent-dark); font-weight: 650; }

@media (max-width: 560px) {
  .tr-grid { grid-template-columns: 1fr; }
  .tr-span-2 { grid-column: auto; }
  .tr-checks-2 { grid-template-columns: 1fr; }
}
