.trip-enquiry [hidden] {
  display: none !important;
}

.trip-enquiry-page {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
}

.trip-enquiry-page > .portable-footer {
  flex: none;
  padding-block: 19px;
  padding-inline: max(18px, calc((100% - 1120px) / 2))
    max(88px, calc((100% - 1120px) / 2));
  background: #292217;
  color: #f0e7d8;
  line-height: 1.6;
}

.trip-enquiry {
  --ink: #30291f;
  --muted: #635747;
  --line: #e0d5c5;
  --accent: #146545;
  flex: 1;
  padding: clamp(28px, 5vw, 70px) 20px;
  background: #31281d
    linear-gradient(105deg, #211a13c9 0%, #211a1370 52%, #211a1361 100%)
    center / cover;
  background-image:
    linear-gradient(105deg, #211a13c9 0%, #211a1370 52%, #211a1361 100%),
    url("/assets/trip-enquiry-background.webp");
  background-position: 43% center;
  color: var(--ink);
}

.trip-enquiry-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 14px clamp(26px, 5vw, 72px);
  max-width: 1120px;
  margin: 0 auto;
}
.trip-enquiry-header {
  grid-row: 1 / span 2;
  padding-top: clamp(10px, 7vh, 82px);
  color: #fff8eb;
  text-shadow: 0 2px 16px #170f09c2;
}
.trip-enquiry-header h1 {
  margin: 0 0 8px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(2rem, 5.4vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
}
.trip-enquiry-header p {
  max-width: 38ch;
  margin: 0;
  color: #f5eadd;
  line-height: 1.6;
}

.trip-form {
  padding: clamp(16px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 12px 46px #1b120d45;
}
.trip-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 18px;
}
.trip-full {
  grid-column: 1 / -1;
}
.trip-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 700;
}
.trip-field input,
.trip-field textarea,
.trip-copy-box textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #b2a594;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.trip-field textarea,
.trip-copy-box textarea {
  display: block;
  min-height: 82px;
  resize: vertical;
}
.trip-field input:focus-visible,
.trip-field textarea:focus-visible,
.trip-copy-box textarea:focus-visible,
.trip-actions button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.trip-hint {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}
.trip-optional {
  font-weight: 400;
  color: var(--muted);
}
.trip-tour {
  margin: 0 0 18px;
  padding: 10px 13px;
  border-radius: 8px;
  background: #f7efe2;
}
.trip-tour span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}
.trip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 21px;
}
.trip-actions button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.trip-actions button.secondary {
  background: #fff;
  color: var(--accent);
}
.trip-actions button:hover {
  background: #104e36;
  color: #fff;
}
.trip-actions button:disabled {
  opacity: 0.65;
  cursor: default;
}
.trip-channel {
  margin-top: 10px;
}
.trip-channel a {
  color: var(--accent);
}
.trip-email {
  margin: 0;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.trip-email a {
  color: #fff4de;
  text-shadow: 0 1px 6px #211a13;
}
.trip-copy-box {
  margin-top: 10px;
}
#trip-copy-status:empty {
  margin: 0;
}
.trip-enquiry .wechat-contact {
  max-width: none;
  margin: 0;
}

@media (max-width: 820px) {
  .trip-enquiry {
    background-position: 38% center;
  }
  .trip-enquiry-shell {
    display: block;
    max-width: 620px;
  }
  .trip-enquiry-header {
    padding-top: 8px;
    margin-bottom: 22px;
  }
  .trip-email,
  .trip-enquiry .wechat-contact {
    margin-top: 14px;
  }
}

@media (max-width: 525px) {
  .trip-actions {
    display: grid;
  }
  .trip-actions button {
    width: 100%;
  }
}
@media (max-width: 370px) {
  .trip-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

.trip-date-control {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.trip-date-control > input[type="text"] {
  min-width: 0;
}
.trip-date-control .trip-native-calendar {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  min-height: 0;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.trip-open-calendar {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #b2a594;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.trip-open-calendar:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.trip-open-calendar:hover {
  background: #f7efe2;
}
.trip-open-calendar span {
  position: relative;
  width: 16px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}
.trip-open-calendar span::before {
  position: absolute;
  inset: 3px 0 auto;
  border-top: 1.5px solid currentColor;
  content: "";
}
.trip-error {
  margin: 5px 0 0;
  color: #a52824;
  font-size: 0.875rem;
  line-height: 1.4;
}
.trip-field [aria-invalid="true"] {
  border-color: #a52824;
}

.trip-contact-intro {
  margin: 0;
  padding: 12px 14px;
  border-radius: 9px;
  background: #f5efe4;
  color: #514333;
}
.trip-success {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #d7e7db;
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 12px 46px #1b120d45;
}
.trip-success h2 {
  margin: 16px 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.trip-success p {
  margin: 0;
  color: #514c42;
  line-height: 1.65;
}
.trip-success-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e3f1e7;
  color: #146545;
  font-size: 27px;
}
.trip-success:focus {
  outline: 2px solid #77b898;
  outline-offset: 3px;
}
#trip-submit-status:empty {
  display: none;
}
@media (max-width: 525px) {
  .trip-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
