/* Contact page "Register your interest" form (lead-form/module.html). Ported from Charles Court's enquiry
 * thank-you (preview/src/index.css §6), in Grand View Reserve's navy. The form lifts away, then the
 * thank-you builds in: the seal settles and draws, the rule draws, the lines rise. Seen once, so it can
 * take its time. The 320ms leave matches FORM_LEAVE_MS in lead-form.js. */
.gvr-enquiry-form {
  --gvr-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  transition: opacity 320ms var(--gvr-ease-out), transform 320ms var(--gvr-ease-out);
}
/* The theme gives placeholders the same navy as typed text, so "Arthur" looked like a filled-in answer. */
.gvr-enquiry-form ::placeholder {
  color: rgba(18, 64, 113, 0.45);
  opacity: 1;
}
.gvr-enquiry-form[data-leaving="true"] {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.gvr-enquiry-thanks {
  --gvr-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gvr-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 20rem;
  text-align: center;
  outline: none;
}
.gvr-enquiry-thanks[hidden] {
  display: none;
}
.gvr-enquiry-seal {
  animation: gvr-plate-settle 900ms var(--gvr-ease-out) both;
}
/* pathLength="1" on both, so one dash is the whole stroke. */
.gvr-enquiry-seal-ring,
.gvr-enquiry-seal-check {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.gvr-enquiry-seal-ring {
  stroke: #7f97b5;
  animation: gvr-stroke-draw 1000ms var(--gvr-ease-in-out) 100ms forwards;
}
.gvr-enquiry-seal-check {
  stroke: #124071;
  animation: gvr-stroke-draw 450ms var(--gvr-ease-out) 800ms forwards;
}
.gvr-enquiry-thanks-eyebrow {
  margin: 2rem 0 0;
  font-family: Heebo, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #124071;
  animation: gvr-plate-rise 800ms var(--gvr-ease-out) 350ms both;
}
.gvr-enquiry-thanks-rule {
  display: block;
  width: 4rem;
  height: 1px;
  margin-top: 1.25rem;
  background: rgba(18, 64, 113, 0.45);
  animation: gvr-rule-draw 900ms var(--gvr-ease-in-out) 450ms both;
}
.gvr-enquiry-thanks-heading {
  margin: 1.5rem 0 0;
  overflow-wrap: anywhere;
  animation: gvr-reveal-rise 900ms var(--gvr-ease-out) 550ms both;
}
.gvr-enquiry-thanks-body {
  max-width: 28rem;
  margin: 1.25rem 0 0;
  animation: gvr-plate-rise 800ms var(--gvr-ease-out) 750ms both;
}

@keyframes gvr-plate-settle {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes gvr-plate-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes gvr-plate-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes gvr-rule-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes gvr-reveal-rise {
  from { opacity: 0; transform: translateY(26px); clip-path: inset(0 0 10% 0); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
}
@keyframes gvr-stroke-draw {
  to { stroke-dashoffset: 0; }
}

/* Same order and timing, but fades only: nothing moves or draws. */
@media (prefers-reduced-motion: reduce) {
  .gvr-enquiry-form {
    transition: opacity 200ms ease;
  }
  .gvr-enquiry-form[data-leaving="true"] {
    transform: none;
  }
  .gvr-enquiry-seal-ring,
  .gvr-enquiry-seal-check {
    stroke-dashoffset: 0;
    animation: none;
  }
  .gvr-enquiry-seal,
  .gvr-enquiry-thanks-eyebrow,
  .gvr-enquiry-thanks-rule,
  .gvr-enquiry-thanks-heading,
  .gvr-enquiry-thanks-body {
    animation-name: gvr-plate-fade;
    animation-timing-function: ease;
  }
}
