/* Keep iOS date fields within their grid tracks and keep the form scrollable
   when the on-screen keyboard or browser controls shorten the viewport. */
#enquiry {
  width: min(calc(100% - 1.5rem), 34rem);
  max-width: none;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - max(1rem, env(safe-area-inset-top)) - max(1rem, env(safe-area-inset-bottom)));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.planner-panel {
  padding: clamp(1rem, 4vw, 1.75rem);
}
.planner-head {
  gap: .75rem;
  margin-bottom: 1.125rem;
}
.planner-head h2 {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  font-size: clamp(1.5rem, 6vw, 2.15rem);
}
.planner-close {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
}
.planner-form,
.planner-field,
.planner-finder {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
.planner-field > span {
  white-space: nowrap;
}
.planner-row {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: .75rem;
}
.planner-field input,
.planner-field select,
.planner-form textarea {
  display: block;
  min-inline-size: 0;
  max-inline-size: 100%;
  min-height: 2.75rem;
  font-size: max(1rem, 16px);
}
.planner-field input[type="date"] {
  line-height: normal;
  text-align: start;
}
.planner-field input[type="date"]::-webkit-date-and-time-value {
  text-align: start;
}
.planner-actions {
  gap: .5rem;
}
.planner-primary,
.planner-secondary {
  min-width: 0;
  min-height: 2.75rem;
  padding-inline: .875rem;
  white-space: nowrap;
}
.planner-primary {
  flex: 1.4 1 10rem;
}
.planner-secondary {
  flex: 1 1 8rem;
}
@media (max-width: 360px) {
  .planner-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .planner-actions > * {
    flex-basis: 100%;
  }
}
