/* Client enquiry form (index.html and Inquire.html): raw Flodesk markup that
   posts natively, with no provider runtime. Keeps the look of the embedded
   form it replaces: centred title, boxed fields, trip-type checklist and a
   bronze "Begin my journey" button, in the right-hand panel of .home-planning. */

.enquiry-raw {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(96px, 13vh, 152px) clamp(24px, 7%, 80px);
}

.enquiry-raw__form {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 560px;
  color: var(--espresso, #231a10);
  text-align: left;
}

.enquiry-raw__title {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 2.7vw, 2.5rem);
  font-weight: var(--weight-heading, 400);
  line-height: var(--leading-heading-sm, 1.08);
  letter-spacing: var(--tracking-heading-sm, -0.01em);
  text-align: center;
  text-wrap: balance;
}

.enquiry-raw__intro {
  max-width: 44ch;
  margin: 0 auto 10px;
  font-size: var(--text-body);
  line-height: var(--leading-body-sm);
  text-align: center;
  text-wrap: pretty;
}

.enquiry-raw__fields {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.enquiry-raw .fd-form-group { min-width: 0; }
.enquiry-raw .fd-form-label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  font-weight: 400;
}
.enquiry-raw .fd-form-control {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 12px 14px;
  color: var(--espresso, #231a10);
  border: 1px solid var(--espresso, #231a10);
  border-radius: 4px;
  background: transparent;
  font: inherit;
  font-size: var(--text-body-sm);
  line-height: var(--leading-body-sm);
}
.enquiry-raw input[aria-invalid="true"] { border-color: #963c32; }

.enquiry-raw__trip {
  min-width: 0;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
}
.enquiry-raw__trip legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: var(--text-body-sm);
  line-height: var(--leading-body-sm);
}
.enquiry-raw__trip label {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: var(--text-body-sm);
  line-height: 1.3;
  text-wrap: pretty;
  cursor: pointer;
}
.enquiry-raw__trip input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  /* Inquire.html gives every input a 52px minimum; not these. */
  min-height: 0;
  padding: 0;
  margin: 0;
  accent-color: var(--espresso, #231a10);
  cursor: pointer;
}
/* A mouse does not need 44px rows; touch keeps them. */
@media (hover: hover) and (pointer: fine) {
  .enquiry-raw__trip label { min-height: 32px; }
}

.enquiry-raw__action {
  display: grid;
  justify-items: center;
  margin-top: 12px;
}
.enquiry-raw .fd-btn {
  color: var(--warm-ivory, #f3ede0);
  background: var(--bronze, #8c6240);
  border: 0;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.enquiry-raw .fd-btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .enquiry-raw .fd-btn:hover { background: var(--espresso, #231a10); }
}

.enquiry-raw__privacy {
  margin: 0;
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  text-align: center;
}
.enquiry-raw__privacy a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--text-tertiary, rgba(35, 26, 16, 0.66));
  text-decoration: underline;
  text-underline-offset: .15em;
}

.enquiry-raw :is(.fd-form-control, input[type="checkbox"], a, .fd-btn):focus-visible {
  outline: 2px solid var(--bronze, #8c6240);
  outline-offset: 2px;
}

/* The shared validation message (public-refinements.js) sits under the
   button. It stays available to screen readers but takes no room until it
   has something to say. */
.enquiry-raw .public-form-status {
  min-height: 0;
  margin: 0;
  text-align: center;
}
.enquiry-raw .public-form-status:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .enquiry-raw .fd-btn:active { transform: none; }
}

@media (max-width: 1100px) {
  .enquiry-raw { padding-inline: clamp(20px, 6%, 56px); }
  .enquiry-raw__form { max-width: 540px; }
}

@media (max-width: 760px) {
  .enquiry-raw {
    min-height: 0;
    padding: clamp(56px, 9vw, 76px) clamp(20px, 6vw, 32px) clamp(64px, 11vw, 88px);
  }
  .enquiry-raw__form { max-width: 520px; }
}


/* ---- Post-enquiry confirmation, mirroring the sign-up confirmations ---- */
.enquiry-return-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 24px;
  box-sizing: border-box;
  background: var(--warm-ivory, #f3ede0);
}

.enquiry-confirmation {
  box-sizing: border-box;
  padding: clamp(28px, 5vw, 52px);
  color: var(--espresso, #231a10);
  background: var(--warm-ivory, #f3ede0);
  font-family: var(--font-body, "Cormorant Garamond", Georgia, serif);
  text-align: center;
}

.enquiry-confirmation--page {
  width: min(100%, 560px);
}

dialog.enquiry-confirmation {
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  height: fit-content; /* Safari: size to content, never to the viewport */
  margin: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--limestone, #e9e2d6);
  border-radius: 4px;
  box-shadow: 0 20px 70px rgb(35 26 16 / 18%);
}

dialog.enquiry-confirmation:not([open]) {
  display: none;
}

dialog.enquiry-confirmation::backdrop {
  background: rgb(35 26 16 / 44%);
}

html.enquiry-confirmation-open,
html.enquiry-confirmation-open body {
  overflow: hidden;
}

.enquiry-confirmation .enquiry-confirmation__mark {
  display: block;
  position: relative;
  width: 80px;
  height: 44px;
  overflow: hidden;
  margin: 0 auto 24px;
}

/* The shared PNG has a transparent canvas around the artwork, whose
   vertical centre is at 44%. Frame the existing asset, without editing it. */
.enquiry-confirmation__mark img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 224px;
  max-width: none;
  height: auto;
  transform: translate(-50%, -44%);
}

.enquiry-confirmation .enquiry-confirmation__eyebrow {
  margin: 0 0 16px;
  color: var(--bronze, #8c6240);
  font-size: var(--text-label, .9rem);
  font-weight: var(--weight-label, 600);
  line-height: 1.5;
  letter-spacing: var(--tracking-label, .18em);
  text-transform: uppercase;
}

.enquiry-confirmation .enquiry-confirmation__title {
  max-width: 15ch;
  margin: 0 auto 20px;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: var(--text-heading-3, 2.6rem);
  font-weight: var(--weight-heading, 400);
  line-height: 1.1;
  letter-spacing: var(--tracking-heading, -.015em);
  text-wrap: balance;
}

.enquiry-confirmation .enquiry-confirmation__message {
  max-width: 36ch;
  margin: 0 auto 28px;
  color: var(--text-secondary, rgb(35 26 16 / 74%));
  font-size: var(--text-body, 1.2rem);
  line-height: var(--leading-body, 1.5);
  text-wrap: pretty;
}

.enquiry-confirmation .enquiry-confirmation__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--content-button-width, 276px);
  max-width: 100%;
  min-height: var(--content-button-height, 46px);
  padding: 8px 16px;
  border: 0;
  border-radius: var(--btn-radius, 999px);
  background: var(--espresso, #231a10);
  color: var(--warm-ivory, #f3ede0);
  font: var(--weight-label, 600) var(--content-button-font, .75rem) / 1.5 var(--font-body, "Cormorant Garamond", Georgia, serif);
  letter-spacing: var(--content-button-tracking, .16em);
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.enquiry-confirmation .enquiry-confirmation__button:focus-visible {
  outline: 2px solid var(--espresso, #231a10);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .enquiry-confirmation .enquiry-confirmation__button:hover {
    background: var(--bronze, #8c6240);
  }
}
