/* ==========================================================================
   ElevatteLife — enquiry.css
   Report enquiry page only (report/enquiry.php), scoped under
   body.page-enquiry. Visual/layout layer only: same fields, same copy.
   Brand palette only: white, mint, deep green, small orange accent.
   The hero is the home hero component (home.css .hm-hero); the report-type
   selector and map picker base styles stay in report-enquiry.css.
   ========================================================================== */

/* --------------------------------------------------- Spacing system ------ */
/* Section padding: desktop 96 / tablet 72 / mobile 56. */
body.page-enquiry {
  --section-y: 96px;
}

@media (max-width: 1024px) {
  body.page-enquiry { --section-y: 72px; }
}

@media (max-width: 640px) {
  body.page-enquiry { --section-y: 56px; }
}

/* The floating WhatsApp button hides (at every width on this page) while the
   hero or the form is on screen, so it never covers a field or the submit
   button; main.js toggles .is-tucked. The form card has its own contacts. */
.page-enquiry .wa-float {
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s,
    background-color var(--dur) var(--ease);
}

.page-enquiry .wa-float.is-tucked {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

/* ----------------------------------------------------------- Hero -------- */
/* Compact: only as tall as its content. */
.page-enquiry .en-hero {
  min-height: 0;
  padding-block: 32px 40px;
}

.page-enquiry .en-hero__crumb {
  margin-bottom: 14px;
}

.page-enquiry .en-hero__lead {
  max-width: 560px;
}

/* Decoration (same as Contact): rotating compass in the right column. */
.page-enquiry .en-hero__deco {
  position: relative;
  align-self: stretch;
  min-height: 280px;
}

.page-enquiry .en-hero__yantra {
  width: min(440px, 120%);
  opacity: 0.1;
  animation-duration: 120s;
}

/* ------------------------------------------------------ Form card -------- */
.page-enquiry .en-section {
  background: var(--bg-warm);   /* very light mint, so the white cards stand out */
}

.page-enquiry .en-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
}

/* One card: same radius, border and padding as the cards beside it. */
.page-enquiry .en-card,
.page-enquiry .en-support,
.page-enquiry .en-next {
  padding: 32px;
  border: 1px solid var(--line-brand);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.page-enquiry .en-card {
  max-width: none;   /* .split__body caps text columns at 34rem; the form card fills its column */
  padding: 36px;
}

/* Numbered group headings with a thin divider before each new group. */
.page-enquiry .en-group__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: var(--fw-semibold);
  color: var(--brand);
}

.page-enquiry .form .en-group__head {
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line-brand);
}

.page-enquiry .en-group__num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8125rem;
}

.page-enquiry .report-type {
  margin: 14px 0 0;
}

.page-enquiry .report-type__options {
  margin-top: 0;
}

/* Report-type cards: equal height, centred text, one line where possible. */
.page-enquiry .report-type__option {
  height: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9375rem;
  line-height: 1.3;
}

/* Every control: 48px, deep green border + soft mint glow on focus. */
.page-enquiry .en-card .input,
.page-enquiry .en-card .select {
  height: 48px;
  min-height: 48px;
}

.page-enquiry .en-card .input:focus,
.page-enquiry .en-card .select:focus,
.page-enquiry .en-card .textarea:focus,
.page-enquiry .en-card .input:focus-visible,
.page-enquiry .en-card .select:focus-visible,
.page-enquiry .en-card .textarea:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(14, 124, 64, 0.14);
}

/* Property type + Facing: labels on one line, controls aligned; the hint
   under Facing sits below without shifting either control. */
.page-enquiry .en-card .form-row {
  align-items: start;
}

.page-enquiry .en-card .form-row > .field > label {
  min-height: 1.5em;
}

.page-enquiry .en-card .field__hint,
.page-enquiry .en-card .caption {
  color: var(--ink-2);
}

/* Map: rounded, soft; deep green pin. Hint sits right under the map.
   The OpenStreetMap tiles are muted with a filter (free light tile styles
   now need an API key), so the map matches the soft palette. */
.page-enquiry .map-picker__map {
  border-radius: 16px;
  border-color: var(--line-brand);
}

.page-enquiry .map-picker__map .leaflet-tile-pane {
  filter: grayscale(0.75) sepia(0.12) hue-rotate(70deg) saturate(0.9) brightness(1.04) contrast(0.92);
}

.page-enquiry .map-pin {
  background: var(--brand);
}

.page-enquiry .en-map-hint {
  margin-top: -8px;
}

/* Floor-plan drop zone (the file input covers the box). */
.page-enquiry .en-drop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 28px 20px;
  border: 1.5px dashed rgba(14, 124, 64, 0.45);
  border-radius: 16px;
  background: var(--bg);
  text-align: center;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.page-enquiry .en-drop__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.page-enquiry .en-drop:hover,
.page-enquiry .en-drop.is-dragging {
  border-color: var(--brand);
  background: #DCEDE2;
}

.page-enquiry .en-drop:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(14, 124, 64, 0.14);
}

.page-enquiry .en-drop__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
}

.page-enquiry .en-drop__icon svg {
  width: 20px;
  height: 20px;
}

.page-enquiry .en-drop__text {
  font-weight: var(--fw-semibold);
  color: var(--brand);
  overflow-wrap: anywhere;
}

.page-enquiry .en-drop__meta {
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.page-enquiry .field.has-error .en-drop {
  border-color: var(--danger, #B42318);
}

/* ---------------------------------------------------- Right column ------- */
@media (min-width: 1025px) {
  .page-enquiry .en-aside {
    position: sticky;
    top: 100px;
  }
}

/* "Prefer to talk first?": icons in mint circles, like Contact. */
.page-enquiry .en-support h3 {
  margin: 0 0 18px;
  color: var(--brand);
}

.page-enquiry .en-support ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-enquiry .en-support li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.page-enquiry .en-support li::before {
  content: none;
}

.page-enquiry .en-support__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--brand-mid);
}

.page-enquiry .en-support__icon svg {
  width: 18px;
  height: 18px;
}

.page-enquiry .en-support a {
  color: var(--brand);
  font-weight: var(--fw-semibold);
}

/* "What happens next": white with a deep green left border. */
.page-enquiry .en-next {
  padding: 22px 24px;
  border-left: 4px solid var(--brand);
  color: var(--ink-2);
}

.page-enquiry .en-next strong {
  color: var(--brand);
}

.page-enquiry .en-next svg {
  color: var(--brand);
}

/* -------------------------------------------------------- Responsive ----- */
@media (max-width: 1024px) {
  .page-enquiry .en-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .page-enquiry .en-hero {
    padding-block: 32px 40px;
  }

  .page-enquiry .en-hero__deco {
    display: none;
  }

  .page-enquiry .en-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .page-enquiry .en-card {
    padding: 22px 18px;
  }

  .page-enquiry .en-support,
  .page-enquiry .en-next {
    padding: 20px 18px;
  }

  .page-enquiry .map-picker__map {
    height: 240px;
  }

  .page-enquiry .en-card .btn-group .btn {
    width: 100%;
    justify-content: center;
  }
}
