.aqpf {
  --aqpf-black: #050505;
  --aqpf-white: #f8f5f1;
  --aqpf-white-soft: rgba(248, 245, 241, 0.72);
  --aqpf-white-faint: rgba(248, 245, 241, 0.18);
  --aqpf-line: rgba(248, 245, 241, 0.28);
  --aqpf-accent: #d9cec0;
  --aqpf-shadow: 0 40px 80px rgba(0, 0, 0, 0.32);
  color: var(--aqpf-white);
}

.aqpf__eyebrow,
.aqpf__panel-kicker,
.aqpf__step-overline,
.aqpf__success-overline {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.aqpf__stage {
  position: relative;
  overflow: hidden;
  padding: 0 0 110px;
}

.aqpf__stage::before {
  position: absolute;
  inset: 0;
  content: '';
  background-image: linear-gradient(120deg, rgba(6, 6, 6, 0.72), rgba(6, 6, 6, 0.36)), var(--aqpf-stage-bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.02);
}

.aqpf__shell {
  position: relative;
  z-index: 1;
  padding: 54px;
}

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

.aqpf__panel {
  position: relative;
  margin-left: auto;
  max-width: 980px;
  padding: 54px;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.84), rgba(6, 6, 6, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--aqpf-shadow);
  backdrop-filter: blur(8px);
}

.aqpf__panel::before {
  position: absolute;
  inset: 14px;
  content: '';
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.aqpf__panel-header {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.aqpf__panel-header h3 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aqpf__panel-header p {
  max-width: 640px;
  margin: 0;
  color: var(--aqpf-white-soft);
  font-size: 16px;
  line-height: 1.8;
}

.aqpf__progress {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-bottom: 40px;
}

.aqpf__progress-meta {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.aqpf__progress-step {
  color: var(--aqpf-accent);
}

.aqpf__progress-track {
  position: relative;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
}

.aqpf__progress-fill {
  display: block;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, var(--aqpf-accent), var(--aqpf-white));
  transition: width 220ms ease;
}

.aqpf__status {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--aqpf-white);
  font-size: 14px;
  line-height: 1.6;
}

.aqpf__status.is-error {
  border-color: rgba(199, 92, 92, 0.75);
  color: #ffd7d7;
}

.aqpf__status.is-success {
  border-color: rgba(168, 213, 183, 0.75);
  color: #dff5e4;
}

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

.aqpf__step {
  display: none;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.aqpf__step.is-active {
  display: block;
}

.aqpf__step-copy {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
}

.aqpf__step-copy h4,
.aqpf__success h4 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 300;
  line-height: 1.05;
  text-transform: uppercase;
}

.aqpf__step-copy p,
.aqpf__success p {
  margin: 0;
  max-width: 560px;
  color: var(--aqpf-white-soft);
  font-size: 15px;
  line-height: 1.75;
}

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

.aqpf__segment-card {
  display: grid;
  gap: 16px;
  min-height: 158px;
  padding: 28px;
  border: 1px solid var(--aqpf-line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--aqpf-white);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.aqpf__segment-card:hover,
.aqpf__segment-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.aqpf__segment-card.is-selected {
  background: var(--aqpf-white);
  border-color: var(--aqpf-white);
  color: #070707;
}

.aqpf__segment-title {
  display: block;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.aqpf__segment-description {
  display: block;
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.82;
}

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

.aqpf__field {
  position: relative;
}

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

.aqpf__field label {
  display: block;
  margin-bottom: 12px;
  color: var(--aqpf-white-soft);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.aqpf__field input,
.aqpf__field textarea {
  width: 100%;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--aqpf-line);
  background: transparent;
  color: var(--aqpf-white);
  font: inherit;
  font-size: 20px;
  line-height: 1.4;
}

.aqpf__field input:focus,
.aqpf__field textarea:focus {
  border-color: var(--aqpf-white);
  outline: none;
}

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

.aqpf__checks {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.aqpf__check-row {
  display: grid;
  gap: 8px;
}

.aqpf__check {
  display: inline-flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--aqpf-white);
  font-size: 16px;
  line-height: 1.6;
  cursor: pointer;
}

.aqpf__check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

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

.aqpf__check-box[aria-hidden="true"] {
  visibility: visible !important;
}

.aqpf__check-box::after {
  position: absolute;
  top: 4px;
  left: 8px;
  width: 6px;
  height: 11px;
  content: '';
  border-right: 2px solid #050505;
  border-bottom: 2px solid #050505;
  opacity: 0;
  transform: rotate(45deg);
  transition: opacity 180ms ease;
}

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

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

.aqpf__check-copy a {
  color: var(--aqpf-white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.aqpf__recaptcha {
  margin-top: 26px;
}

.aqpf__recaptcha .g-recaptcha {
  transform-origin: left top;
}

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

.aqpf__button {
  min-width: 180px;
  padding: 18px 26px;
  border: 1px solid var(--aqpf-white);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.aqpf__button:hover,
.aqpf__button:focus-visible {
  outline: none;
}

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

.aqpf__button--primary:hover,
.aqpf__button--primary:focus-visible {
  background: transparent;
  color: var(--aqpf-white);
}

.aqpf__button--ghost {
  background: transparent;
  color: var(--aqpf-white);
  border-color: rgba(255, 255, 255, 0.54);
}

.aqpf__button--ghost:hover,
.aqpf__button--ghost:focus-visible {
  border-color: var(--aqpf-white);
}

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

.aqpf__error {
  min-height: 1.2em;
  margin: 8px 0 0;
  color: #ffb8b8;
  font-size: 13px;
  line-height: 1.45;
}

.aqpf__field.is-invalid input,
.aqpf__field.is-invalid textarea,
.aqpf__check-row.is-invalid .aqpf__check-box,
.aqpf__segments.is-invalid .aqpf__segment-card {
  border-color: rgba(255, 125, 125, 0.92);
}

.aqpf__success {
  display: grid;
  gap: 12px;
  padding: 36px 0 8px;
}

.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: 1199px) {
  .aqpf__shell {
    padding: 34px;
  }

  .aqpf__panel {
    padding: 42px;
  }
}

@media (max-width: 899px) {
  .aqpf__stage {
    padding-bottom: 72px;
  }

  .aqpf__shell {
    padding: 18px;
  }

  .aqpf__panel {
    padding: 28px 24px;
  }

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

  .aqpf__panel-header h3 {
    max-width: none;
  }

  .aqpf__actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .aqpf__button {
    width: 100%;
  }
}

@media (max-width: 599px) {
  .aqpf__segment-card {
    min-height: 0;
    padding: 24px 20px;
  }

  .aqpf__segment-title {
    font-size: 21px;
  }

  .aqpf__field input,
  .aqpf__field textarea {
    font-size: 18px;
  }

  .aqpf__recaptcha .g-recaptcha {
    transform: scale(0.88);
  }
}
