.apax-interest-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(2, 8, 18, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 160ms ease-out;
  pointer-events: none;
}

.apax-interest-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.apax-interest-modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  background: linear-gradient(160deg, #0a1828 0%, #0d2a3f 55%, #123652 100%);
  border: 1px solid rgba(153, 210, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  color: #e7f2fb;
  font-family: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.apax-interest-header {
  padding: 22px 26px 12px;
  border-bottom: 1px solid rgba(0, 190, 255, 0.18);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.apax-interest-title {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.4px;
  margin: 0 0 4px;
  color: #ffffff;
}

.apax-interest-subtitle {
  margin: 0;
  font-size: 13px;
  color: rgba(217, 242, 255, 0.72);
  line-height: 1.45;
}

.apax-interest-close {
  background: transparent;
  border: 1px solid rgba(217, 242, 255, 0.25);
  color: rgba(217, 242, 255, 0.85);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apax-interest-close:hover {
  background: rgba(0, 190, 255, 0.12);
  color: #ffffff;
}

.apax-interest-body {
  padding: 18px 26px 22px;
  overflow-y: auto;
}

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

.apax-interest-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.apax-interest-field.is-full {
  grid-column: 1 / -1;
}

.apax-interest-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(217, 242, 255, 0.78);
}

.apax-interest-field input,
.apax-interest-field textarea,
.apax-interest-field select {
  background: rgba(10, 22, 35, 0.85);
  border: 1px solid rgba(117, 166, 219, 0.4);
  border-radius: 8px;
  padding: 9px 11px;
  color: #f7fbff;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
}

.apax-interest-field input:focus,
.apax-interest-field textarea:focus,
.apax-interest-field select:focus {
  border-color: #20a8dd;
  box-shadow: 0 0 0 3px rgba(32, 168, 221, 0.16);
}

.apax-interest-field textarea {
  resize: vertical;
  min-height: 96px;
}

.apax-interest-turnstile {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.apax-interest-status {
  grid-column: 1 / -1;
  min-height: 18px;
  font-size: 13px;
  color: rgba(217, 242, 255, 0.78);
}

.apax-interest-status.is-error {
  color: #ff9aa6;
}

.apax-interest-status.is-success {
  color: #6df0c8;
}

.apax-interest-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}

.apax-interest-btn {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 10px 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  transition: transform 80ms, box-shadow 120ms, background 120ms;
}

.apax-interest-btn-primary {
  background: linear-gradient(135deg, #17a6d9 0%, #0c86b9 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(12, 134, 185, 0.35);
}

.apax-interest-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.apax-interest-btn-primary:disabled {
  opacity: 0.6;
  cursor: progress;
}

.apax-interest-btn-secondary {
  background: transparent;
  border-color: rgba(217, 242, 255, 0.3);
  color: rgba(217, 242, 255, 0.85);
}

.apax-interest-btn-secondary:hover {
  border-color: #ffffff;
  color: #ffffff;
}

@media (max-width: 560px) {
  .apax-interest-form {
    grid-template-columns: 1fr;
  }
  .apax-interest-header {
    padding: 18px 18px 10px;
  }
  .apax-interest-body {
    padding: 14px 18px 18px;
  }
  .apax-interest-title {
    font-size: 18px;
  }
}

/* Trigger button used by both the landing page and the KC login injection. */
.apax-interest-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 190, 255, 0.6);
  background: rgba(0, 190, 255, 0.08);
  color: #c8ebff;
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms, border-color 120ms, color 120ms, transform 80ms;
}

.apax-interest-trigger:hover,
.apax-interest-trigger:focus {
  background: rgba(0, 190, 255, 0.18);
  border-color: #00beff;
  color: #ffffff;
  transform: translateY(-1px);
}
