/*
 * "Ask the hotel" dialog (hotels round 1, 12 Nov 2026): resources/views/property/shared/hotel_enquiry.blade.php.
 * Sits on the property page's dialog system (css/property-themes/shared.css "7. Dialogs": .pp-overlays .pp-dialog,
 * a centred card on wide screens, a bottom sheet with a handle under 768 px) and its tokens (--sb-*), buttons
 * (.pp-btn) and stepper (.pp-stepper). Only what the form itself needs is here.
 */

.hq-host { position: static; }
.pp-overlays .pp-dialog--enquiry { --pp-dialog-w: 600px; }

.pp-dialog--enquiry .pp-dialog__title { flex-direction: column; align-items: flex-start; gap: 2px; }
.pp-dialog--enquiry .pp-dialog__count {
  font-size: var(--sb-t-small);
  color: var(--sb-muted);
  max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.hq-panel { margin: 0; }
.hq-form { display: flex; flex-direction: column; gap: var(--sb-4); }
.hq-lede { margin: 0; font-size: var(--sb-t-small); line-height: 1.55; color: var(--sb-text); }
.hq-lede strong { font-weight: var(--sb-w-medium); color: var(--sb-ink); }

.hq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sb-3) var(--sb-4); }
.hq-grid { align-items: start; }
.hq-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.hq-label {
  font-size: var(--sb-t-micro);
  font-weight: var(--sb-w-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sb-muted);
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.4;
}
.hq-optional { text-transform: none; letter-spacing: 0; font-weight: var(--sb-w-normal); }
.hq-help { margin: 0; font-family: var(--sb-font-meta); font-size: var(--sb-t-caption); color: var(--sb-muted); }
.hq-help i { margin-right: 6px; }

.hq-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--sb-border-strong);
  border-radius: 12px;
  background: var(--sb-surface);
  color: var(--sb-ink);
  font: inherit;
  font-size: var(--sb-t-body);
  color-scheme: light dark;
  transition: border-color var(--sb-dur-fast) var(--sb-ease), box-shadow var(--sb-dur-fast) var(--sb-ease);
}
.hq-input:hover { border-color: var(--sb-ink-soft, var(--sb-ink)); }
.hq-input:focus { outline: none; border-color: var(--sb-primary-strong); box-shadow: 0 0 0 3px var(--sb-primary-ring, rgba(200, 38, 43, 0.18)); }
.hq-input[aria-invalid="true"] { border-color: var(--sb-error, var(--sb-primary-strong)); }
.hq-textarea { min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; }

.hq-people { display: flex; align-items: center; min-height: 48px; }
.hq-people .pp-stepper { gap: var(--sb-2); }
.hq-people__value {
  width: 72px; min-height: 44px;
  border: 0; border-radius: 10px;
  background: transparent;
  color: var(--sb-ink);
  font: inherit; font-size: var(--sb-t-body); font-weight: var(--sb-w-medium);
  text-align: center;
  -moz-appearance: textfield;
}
.hq-people__value::-webkit-outer-spin-button,
.hq-people__value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hq-people__value:focus { outline: none; background: var(--sb-surface-2); }

.hq-kinds { margin: 0; padding: 0; border: 0; min-width: 0; }
.hq-kinds legend { margin-bottom: 8px; }
.hq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hq-chip { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.hq-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.hq-chip span {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--sb-border-strong);
  border-radius: var(--sb-r-pill);
  background: var(--sb-surface);
  color: var(--sb-ink);
  font-size: var(--sb-t-small); font-weight: var(--sb-w-medium);
  white-space: nowrap;
  transition: background-color var(--sb-dur-fast) var(--sb-ease), color var(--sb-dur-fast) var(--sb-ease), border-color var(--sb-dur-fast) var(--sb-ease);
}
.hq-chip:hover span { border-color: var(--sb-ink); }
.hq-chip input:checked + span { background: var(--sb-ink); border-color: var(--sb-ink); color: var(--sb-bg); }
.hq-chip input:focus-visible + span { outline: 2px solid var(--sb-focus, var(--sb-primary-strong)); outline-offset: 2px; }

.hq-safe {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0; padding: 12px 14px;
  border-radius: 12px;
  background: var(--sb-surface-2);
  font-size: var(--sb-t-caption); line-height: 1.5; color: var(--sb-text);
}
.hq-safe i { margin-top: 3px; color: var(--sb-success, var(--sb-ink)); }

.hq-error {
  margin: 0; padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--sb-error, var(--sb-primary-strong));
  color: var(--sb-error, var(--sb-primary-strong));
  font-size: var(--sb-t-small); line-height: 1.45;
}
.hq-error a { color: inherit; font-weight: var(--sb-w-medium); text-decoration: underline; }

.hq-actions {
  flex: none;
  display: flex; justify-content: flex-end; gap: var(--sb-3);
  padding: var(--sb-3) var(--sb-5);
  border-top: 1px solid var(--sb-border);
  background: inherit;
}
.hq-actions .pp-btn { min-width: 120px; }
.hq-panel[aria-busy="true"] [data-hq-send] { opacity: 0.7; cursor: progress; }

/* Phones: the sheet; one column, the buttons full width with Send first. */
@media (max-width: 767.98px) {
  .hq-grid:not([data-hq-times]) { grid-template-columns: minmax(0, 1fr); }
  .hq-actions { flex-direction: column-reverse; gap: var(--sb-2); padding: var(--sb-3) var(--sb-4) max(var(--sb-3), env(safe-area-inset-bottom)); }
  .hq-actions .pp-btn { width: 100%; }
  .pp-dialog--enquiry .hq-form { padding-bottom: var(--sb-4); }
}
