/* Shared controls, validation, date picker and review. */
.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-bottom: 15px;
}
.field > label,
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}
.field label span,
.field label small {
  color: var(--muted);
  font-weight: 400;
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #bbbfb2;
  background: #fffefa;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  transition: border-color 0.15s;
}
.field select {
  padding-right: 28px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #72776b;
  opacity: 1;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #7b8274;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  outline: 2px solid #a78d63;
  outline-offset: 2px;
}
.field textarea {
  min-height: 86px;
  resize: vertical;
}
.field-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.field-hint,
.field small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 1px 0 19px;
  font-size: 12px;
  line-height: 1.6;
}
.check-field input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--ink);
}
.form-action,
.form-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 19px;
}
.form-action .button {
  width: 100%;
}
.form-actions .button:last-child {
  flex: 1;
}
.form-actions .button:first-child:not(:last-child) {
  padding-inline: 17px;
}
.form-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}
.field-error,
.error-message {
  margin-top: 5px;
  color: var(--error);
  font-size: 11px;
  line-height: 1.5;
}
[aria-invalid="true"] {
  border-color: var(--error) !important;
}
#form-errors:not(:empty) {
  margin-bottom: 17px;
  padding: 11px 13px;
  border-left: 3px solid var(--error);
  background: #fbefeb;
  color: #81271f;
  font-size: 12px;
  line-height: 1.65;
}
#form-errors ul {
  padding-left: 17px;
}
#form-errors a {
  text-decoration: underline;
}
.date-disclosure {
  margin-bottom: 17px;
  border: 1px solid var(--line);
}
.date-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
  color: #555e50;
  font-size: 11px;
  list-style: none;
}
.date-disclosure > summary::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
}
.date-disclosure[open] > summary::after {
  content: "−";
}
.date-disclosure > summary::-webkit-details-marker {
  display: none;
}
.calendar {
  padding: 0 12px 13px;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.calendar-header h4,
#calendar-month {
  font-family: var(--heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
}
.calendar-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
}
.calendar-header button:hover {
  background: var(--champagne-light);
}
.calendar-header button:disabled {
  color: #a4a79e;
  cursor: not-allowed;
}
.calendar-header svg {
  width: 13px;
  height: 13px;
}
.calendar-header > div {
  display: flex;
  gap: 5px;
}
#calendar-grid {
  table-layout: fixed;
  border-collapse: collapse;
  width: 100%;
}
#calendar-grid th {
  padding: 4px 0 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}
#calendar-grid td {
  padding: 2px;
  text-align: center;
}
.calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  padding: 5px;
  background: transparent;
  border: 1px solid transparent;
  font-size: 12px;
}
.calendar-day:hover:not(:disabled) {
  background: #eee9df;
  border-color: var(--champagne);
}
.calendar-day.is-today {
  border-color: #a2aa98;
}
.calendar-day.is-selected,
.calendar-day[aria-selected="true"] {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}
.calendar-day.is-selected:hover,
.calendar-day[aria-selected="true"]:hover {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}
.calendar-day:disabled {
  color: #8a8e82;
  opacity: 0.5;
  cursor: not-allowed;
}
.calendar-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}
.car-choices {
  min-width: 0;
  margin: 5px 0 16px;
  padding: 0;
  border: 0;
}
.car-choices legend {
  margin-bottom: 10px;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
}
.car-choice {
  position: relative;
  display: grid;
  grid-template-columns: 17px 78px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 66px;
  margin-bottom: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  cursor: pointer;
}
.car-choice:hover {
  border-color: #7c8574;
}
.car-choice:has(input:checked) {
  border-color: var(--ink);
  background: #eeece3;
}
.car-choice input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ink);
}
.car-choice img {
  width: 78px;
  height: 48px;
  object-fit: cover;
}
.car-choice > span {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  line-height: 1.55;
}
.car-choice strong {
  font-family: var(--heading);
  font-size: 12px;
  font-weight: 600;
}
.car-choice small {
  color: var(--muted);
  font-size: 9px;
}
.trip-review {
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #f2f0e9;
}
.trip-review > h4 {
  margin-bottom: 12px;
  font-size: 13px;
}
#trip-summary {
  margin: 0;
}
#trip-summary > div {
  display: grid;
  grid-template-columns: minmax(76px, 0.7fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 12px;
  padding-block: 8px;
  border-bottom: 1px solid #d9d9ce;
}
#trip-summary > div:last-child {
  border-bottom: 0;
}
#trip-summary dt {
  color: var(--muted);
  font-size: 10px;
}
#trip-summary dd {
  margin: 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.summary-edit,
.edit-summary,
.trip-review button {
  min-height: 36px;
  margin-top: 10px;
  padding: 5px 0;
  background: transparent;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.trip-review .price-pending {
  font-size: 13px;
  font-weight: 500;
}
.demo-notice {
  margin: 15px 0 0;
  padding: 12px 13px;
  background: #eee7d9;
  color: #55564c;
  font-size: 11px;
  line-height: 1.7;
}
.demo-notice strong {
  color: var(--ink);
  font-weight: 500;
}
.result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 12px 0 20px;
  border: 1px solid #929b86;
  border-radius: 50%;
  background: #e9eddf;
  color: #3e4a36;
  font-size: 24px;
}
.result-icon svg {
  width: 24px;
  height: 24px;
}
#form-result {
  max-width: 28ch;
  font-size: 25px;
}
[data-step="4"] > p {
  margin-top: 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
[data-step="4"] > .button {
  margin-top: 24px;
}
.check-field {
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.check-field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.check-field > span {
  color: var(--muted);
  font-size: 10px;
}
.check-field input {
  margin: 0;
}
.button-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
}
.button-back:hover {
  background: #eeece5;
  border-color: #b7bcad;
}
.panel-intro {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.optional {
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 400;
}
.return-label {
  margin: 5px 0 11px;
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 600;
}
#return-fields {
  margin-bottom: 18px;
  padding: 15px 12px;
  border: 1px solid var(--line);
  background: #f2f0e9;
}
#return-fields .field {
  margin-bottom: 7px;
}
.calendar-help {
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.date-disclosure > summary > span {
  display: none;
}
.review-heading {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.review-heading h4 {
  font-size: 15px;
}
.review-heading > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 15px;
}
.review-heading .edit-link {
  margin-top: 4px;
  text-align: left;
}
.trip-review .edit-link {
  font-size: 10px;
}
.result-panel {
  padding-bottom: 8px;
}
