@import url("https://fonts.googleapis.com/css2?family=Google+Sans:ital,wght@0,400;0,500;0,700;0,800;1,400;1,500;1,700&display=swap");

:root {
  --bg: #f4f4f3;
  --surface: #ffffff;
  --surface-soft: #f7f7fb;
  --text: #17171d;
  --muted: #6a6a78;
  --line: #e1e1e8;
  --brand-1: #7877e6;
  --brand-2: #5e5dd2;
  --accent: #7877e6;
  --accent-soft: #e9e9ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.trip-topbar,
.topbar {
  padding: 10px 0 18px;
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-width: 0 0 1px;
  box-shadow: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand-2);
  font-weight: 700;
  font-size: 0.95rem;
}

.trip-topbar-links {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero {
  margin-top: 28px;
  padding: 28px;
  border-radius: 36px;
  background: var(--brand-1);
  color: white;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 24px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.10);
}

.hero h1,
.legal-hero h1 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  font-weight: 900;
}

.hero p,
.legal-hero p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.6;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.button-primary {
  background: var(--brand-1);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(120, 119, 230, 0.18);
}

.button-secondary {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface);
}

.button-muted {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  opacity: 0.88;
  cursor: default;
}

.hero-note {
  margin-top: 12px;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.7);
}

.glass-card {
  padding: 20px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
}

.glass-card h3 {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.74);
}

.glass-card p {
  margin: 0 0 14px;
  color: white;
  font-weight: 700;
  line-height: 1.45;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.04);
}

.card h2,
.card h3 {
  margin: 0;
  font-weight: 800;
}

.card p {
  margin: 12px 0 0;
  line-height: 1.6;
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.bullet-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-1);
}

.footer-links {
  margin: 28px auto 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.footer-links a {
  font-weight: 700;
  color: var(--muted);
}

.legal-hero {
  margin-top: 24px;
  padding: 24px;
  border-radius: 32px;
  background: var(--brand-1);
  color: white;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.10);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.legal-top-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.legal-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.legal-link.active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-chip {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.lang-chip.active {
  background: var(--accent-soft);
  color: var(--brand-2);
}

.updated-at {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand-2);
  font-weight: 700;
}

.doc {
  margin-top: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.04);
}

.doc h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 800;
}

.doc p,
.doc li {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.03rem;
}

.doc ul {
  margin-top: 0;
  padding-left: 22px;
}

.doc[data-lang] {
  display: none;
}

.doc[data-lang].active {
  display: block;
}

.trip-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px;
}

.trip-topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.trip-hero {
  padding: 24px;
  border-radius: 32px;
  background: var(--brand-1);
  color: white;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.10);
}

.trip-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.trip-hero p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.trip-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.trip-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  font-weight: 700;
  font-size: 0.94rem;
}

.trip-details-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.trip-details-toggle-icon {
  transition: transform 160ms ease;
}

.trip-details-toggle[aria-expanded="true"] .trip-details-toggle-icon {
  transform: rotate(180deg);
}

.trip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

.trip-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.04);
}

.trip-section-highlight {
  background: white;
  border-color: var(--brand-1);
  box-shadow: 0 12px 24px rgba(120, 119, 230, 0.10);
}

.trip-section h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.trip-section > p {
  margin: 8px 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.trip-detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trip-detail-list-hero {
  margin-top: 14px;
}

.trip-detail-list-hero .trip-detail-row {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.trip-detail-list-hero .trip-detail-row span,
.trip-detail-list-hero .trip-detail-row strong,
.trip-detail-list-hero .trip-detail-row.multiline span {
  color: #ffffff;
}

.trip-detail-list-hero .trip-detail-row.multiline span {
  opacity: 0.82;
}

.trip-detail-row {
  background: var(--surface-soft);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.trip-detail-row strong {
  font-weight: 800;
}

.trip-detail-row span {
  text-align: right;
  color: var(--text);
  font-weight: 600;
}

.trip-detail-row.multiline {
  display: block;
}

.trip-detail-row.multiline span {
  display: block;
  text-align: left;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.65;
}

.trip-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trip-form label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

.trip-form input,
.trip-form textarea,
.trip-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
}

.phone-input-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px;
}

.trip-form textarea {
  min-height: 104px;
  resize: vertical;
}

.trust-note {
  background: var(--accent-soft);
  border-radius: 18px;
  padding: 16px;
  color: var(--muted);
  line-height: 1.55;
}

.direction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.direction-chip {
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.direction-chip.active {
  background: var(--accent-soft);
  border-color: var(--brand-1);
  color: var(--brand-2);
}

.checkbox-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.error-text {
  color: #b42318;
  font-size: 0.94rem;
}

.status-card {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.04);
}

.status-card.warning {
  background: var(--accent-soft);
  border-color: var(--line);
}

.status-card h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.status-card p {
  margin: 8px 0 0;
  line-height: 1.6;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hidden {
  display: none !important;
}

@media (max-width: 880px) {
  .legal-top-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .trip-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .phone-input-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .hero,
  .section-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
}
