/* Aquamarine project inquiry form module */
.aqpf {
  --aqpf-gold: #9c8668;
  --aqpf-gold-dark: #78664f;
  --aqpf-gold-text: #826e54;
  --aqpf-gold-soft: #cfc0aa;
  --aqpf-gold-faint: #eee8df;
  --aqpf-white: #ffffff;
  --aqpf-error: #a53d3d;
  color: var(--aqpf-gold-text);
  font-family: "Barlow", sans-serif;
}

.aqpf,
.aqpf * {
  box-sizing: border-box;
}

.aqpf,
.aqpf .aqpf__step {
  padding-top: 0;
  padding-bottom: 0;
}

.aqpf__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 36px 0 clamp(52px, 8vw, 120px);
  background:
    radial-gradient(circle at 9% 14%, rgba(255, 255, 255, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 78%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px),
    linear-gradient(135deg, #a79173 0%, var(--aqpf-gold) 45%, #8e785d 100%);
  background-size: 42px 42px, 54px 54px, auto;
}

.aqpf__stage::before,
.aqpf__stage::after {
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.22);
  transform: rotate(35deg);
}

.aqpf__stage::before {
  top: -280px;
  right: -110px;
}

.aqpf__stage::after {
  bottom: -310px;
  left: -90px;
}

.aqpf__shell {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(14px, 3vw, 34px);
  padding-top: clamp(10px, 1.2vw, 18px);
}

.aqpf__shell-outline {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  pointer-events: none;
}

.aqpf__panel {
  position: relative;
  padding: clamp(32px, 5.4vw, 74px);
  padding-top: clamp(28px, 4vw, 54px);
  background: var(--aqpf-white);
  box-shadow: 0 30px 75px rgba(71, 54, 35, 0.28);
}

.aqpf__panel::before {
  position: absolute;
  inset: 14px;
  content: "";
  border: 1px solid var(--aqpf-gold-faint);
  pointer-events: none;
}

.aqpf__status,
.aqpf__form {
  position: relative;
  z-index: 1;
}

.aqpf__step-overline,
.aqpf__success-overline {
  margin: 0 0 13px;
  color: var(--aqpf-gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.aqpf__step-copy h3,
.aqpf__success h3 {
  margin: 0;
  color: var(--aqpf-gold);
  font-family: inherit;
  font-weight: 300;
  letter-spacing: -0.02em;
  text-transform: none;
}

.aqpf__step-copy > p:last-child,
.aqpf__success > p:last-child {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--aqpf-gold-text);
  font-size: 17px;
  line-height: 1.65;
}

.aqpf__status {
  margin: 0 0 26px;
  padding: 14px 17px;
  border: 1px solid var(--aqpf-gold-soft);
  background: #fbf8f3;
  color: var(--aqpf-gold-dark);
  font-size: 15px;
  line-height: 1.5;
}

.aqpf__status.is-error {
  border-color: rgba(165, 61, 61, 0.42);
  background: #fff7f7;
  color: var(--aqpf-error);
}

.aqpf__step-copy {
  margin-bottom: 32px;
}

.aqpf__form-title {
  margin: 0 0 clamp(58px, 7vw, 84px);
  color: var(--aqpf-gold);
  font-family: inherit;
  font-size: clamp(29px, calc(3vw + 2px), 42px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: none;
}

.aqpf__step-copy h3,
.aqpf__success h3 {
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.15;
}

.aqpf__segments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.aqpf__segment-card {
  min-height: 148px;
  padding: 26px;
  border: 1px solid var(--aqpf-gold-soft);
  border-radius: 0;
  background: var(--aqpf-white);
  color: var(--aqpf-gold-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.aqpf__segment-card:hover,
.aqpf__segment-card:focus-visible {
  border-color: var(--aqpf-gold);
  outline: none;
  box-shadow: 0 10px 28px rgba(127, 104, 77, 0.12);
  transform: translateY(-2px);
}

.aqpf__segment-card.is-selected,
.aqpf__segment-card[aria-pressed="true"] {
  border-color: var(--aqpf-gold);
  background: var(--aqpf-gold);
  color: var(--aqpf-white);
}

.aqpf__segment-title,
.aqpf__segment-description {
  display: block;
}

.aqpf__segment-title {
  margin-bottom: 10px;
  color: inherit;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
}

.aqpf__segment-description {
  color: inherit;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.9;
}

.aqpf__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 34px;
}

.aqpf__fields--single {
  grid-template-columns: 1fr;
}

.aqpf__field {
  min-width: 0;
}

.aqpf__field--full {
  grid-column: 1 / -1;
}

.aqpf__field > label,
.aqpf__file > label {
  display: block;
  margin: 0 0 8px;
  color: var(--aqpf-gold-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.aqpf__field input:not([type="file"]),
.aqpf__field textarea,
.aqpf__field select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--aqpf-gold-soft);
  border-radius: 0;
  outline: 0;
  background-color: transparent;
  box-shadow: none;
  color: var(--aqpf-gold-dark);
  font: inherit;
  font-size: 18px;
  line-height: 1.45;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.aqpf__field textarea {
  min-height: 128px;
  resize: vertical;
}

.aqpf__field select {
  padding-right: 34px;
  cursor: pointer;
}

.aqpf__field input:not([type="file"]):focus,
.aqpf__field textarea:focus,
.aqpf__field select:focus {
  border-color: var(--aqpf-gold);
  box-shadow: 0 1px 0 var(--aqpf-gold);
}

.aqpf__phone-control {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
}

.aqpf__file input[type="file"] {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 10px;
  border: 1px solid var(--aqpf-gold-soft);
  background: #fcfaf7;
  color: var(--aqpf-gold-dark);
  font: inherit;
  font-size: 15px;
}

.aqpf__file input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 9px 13px;
  border: 1px solid var(--aqpf-gold);
  background: var(--aqpf-white);
  color: var(--aqpf-gold-dark);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.aqpf__file-note {
  margin: 8px 0 0;
  color: var(--aqpf-gold-text);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.82;
}

.aqpf__checks {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.aqpf__check-row {
  display: grid;
}

.aqpf__check {
  display: inline-flex;
  align-items: flex-start;
  gap: 13px;
  color: var(--aqpf-gold-text);
  font-size: 15px;
  line-height: 1.55;
  cursor: pointer;
}

.aqpf__check input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.aqpf__check-box {
  position: relative;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  margin-top: 1px;
  border: 1px solid var(--aqpf-gold-soft);
  background: var(--aqpf-white);
  visibility: visible !important;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.aqpf__check-box::after {
  position: absolute;
  top: 4px;
  left: 8px;
  width: 6px;
  height: 11px;
  content: "";
  border-right: 2px solid var(--aqpf-white);
  border-bottom: 2px solid var(--aqpf-white);
  opacity: 0;
  transform: rotate(45deg);
}

.aqpf__check input:focus-visible + .aqpf__check-box {
  outline: 2px solid var(--aqpf-gold);
  outline-offset: 3px;
}

.aqpf__check input:checked + .aqpf__check-box {
  border-color: var(--aqpf-gold);
  background: var(--aqpf-gold);
}

.aqpf__check input:checked + .aqpf__check-box::after {
  opacity: 1;
}

.aqpf__check a {
  color: var(--aqpf-gold-dark);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.aqpf__recaptcha {
  margin-top: 28px;
}

.aqpf__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 38px;
}

.aqpf__button {
  min-width: 178px;
  padding: 16px 24px;
  border: 1px solid var(--aqpf-gold);
  border-radius: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.aqpf__button:focus-visible {
  outline: 2px solid var(--aqpf-gold-dark);
  outline-offset: 3px;
}

.aqpf__button--primary {
  background: var(--aqpf-gold);
  color: var(--aqpf-white);
}

.aqpf__button--primary:hover {
  background: var(--aqpf-gold-dark);
  box-shadow: 0 10px 24px rgba(120, 102, 79, 0.2);
}

.aqpf__button--ghost {
  background: var(--aqpf-white);
  color: var(--aqpf-gold-dark);
}

.aqpf__button--ghost:hover {
  background: var(--aqpf-gold-faint);
}

.aqpf__button[disabled] {
  cursor: wait;
  opacity: 0.58;
}

.aqpf__error {
  min-height: 18px;
  margin: 7px 0 0;
  color: var(--aqpf-error);
  font-size: 13px;
  line-height: 1.35;
}

.aqpf__field.is-invalid input,
.aqpf__field.is-invalid textarea,
.aqpf__field.is-invalid select,
.aqpf__segments.is-invalid .aqpf__segment-card,
.aqpf__check-row.is-invalid .aqpf__check-box,
.aqpf__recaptcha.is-invalid {
  border-color: var(--aqpf-error);
}

.aqpf__success {
  display: grid;
  place-content: center;
  min-height: 340px;
  text-align: center;
}

.aqpf__success > p:last-child {
  margin-right: auto;
  margin-left: auto;
}

.aqpf__step[hidden],
.aqpf__status[hidden],
.aqpf__success[hidden] {
  display: none !important;
}

.aqpf__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 899px) {
  .aqpf__segments,
  .aqpf__fields {
    grid-template-columns: 1fr;
  }

  .aqpf__segment-card {
    min-height: 0;
  }

  .aqpf__actions {
    flex-direction: column-reverse;
  }

  .aqpf__button {
    width: 100%;
  }
}

@media (max-width: 599px) {
  .aqpf__stage {
    padding: 32px 0;
  }

  .aqpf__shell {
    padding: 10px;
  }

  .aqpf__panel {
    padding: 24px;
  }

  .aqpf__panel::before {
    inset: 8px;
  }

  .aqpf__segment-card {
    padding: 22px 18px;
  }

  .aqpf__phone-control {
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 12px;
  }

  .aqpf__field input:not([type="file"]),
  .aqpf__field textarea,
  .aqpf__field select {
    font-size: 16px;
  }

  .aqpf__recaptcha .g-recaptcha {
    transform: scale(0.84);
    transform-origin: left top;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aqpf *,
  .aqpf *::before,
  .aqpf *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
