.pk-contact-form-wrap,
.pk-partner-gate {
  --pk-navy: #0d2340;
  --pk-gold: #bd9148;
  --pk-border: #d8dee7;
  --pk-muted: #5b6675;
  --pk-error: #8e1b1b;
  --pk-success: #146235;
  color: var(--pk-navy);
}

.pk-contact-form {
  max-width: 760px;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--pk-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(13, 35, 64, 0.08);
}

.pk-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pk-field--wide {
  grid-column: 1 / -1;
}

.pk-field label,
.pk-contact-form label {
  font-weight: 700;
}

.pk-field input,
.pk-field textarea {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid #aeb8c6;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font: inherit;
}

.pk-field input:focus,
.pk-field textarea:focus,
.pk-submit:focus-visible,
.pk-partner-button:focus-visible,
.pk-partner-close:focus-visible,
.pk-dialog-close:focus-visible,
.pk-consent-choice:focus-visible,
.pk-consent-settings:focus-visible,
.pk-consent-links a:focus-visible,
.pk-consent-switch input:focus-visible {
  outline: 3px solid rgba(189, 145, 72, 0.45);
  outline-offset: 2px;
}

.pk-field-note,
.pk-sensitive-note {
  color: var(--pk-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pk-sensitive-note {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--pk-gold);
  background: #faf7f0;
}

.pk-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1rem 0;
  font-weight: 400 !important;
  line-height: 1.5;
}

.pk-checkbox input {
  flex: 0 0 auto;
  margin-top: 0.25rem;
}

.pk-submit,
.pk-partner-button,
.pk-partner-close,
.pk-dialog-close,
.pk-consent-choice {
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 1px solid var(--pk-navy);
  border-radius: 999px;
  background: var(--pk-navy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pk-submit:hover,
.pk-partner-button:hover,
.pk-dialog-close:hover,
.pk-consent-choice:hover {
  background: #17385f;
}

.pk-partner-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.pk-form-message {
  max-width: 760px;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid currentColor;
  border-radius: 10px;
  background: #fff;
  font-weight: 700;
}

.pk-form-message--success {
  color: var(--pk-success);
  background: #f0faf4;
}

.pk-form-message--error {
  color: var(--pk-error);
  background: #fff5f5;
}

.pk-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.pk-partner-gate {
  max-width: 920px;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--pk-border);
  border-radius: 18px;
  background: #fff;
}

.pk-partner-gate--inactive {
  border-style: dashed;
  background: #f7f8fa;
}

.pk-partner-label {
  color: var(--pk-gold);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pk-partner-privacy {
  display: inline-block;
  margin-left: 0.75rem;
}

.pk-partner-frame {
  margin-top: 1.25rem;
}

.pk-partner-frame iframe {
  display: block;
  width: 100%;
  min-height: 680px;
  margin-top: 0.75rem;
  border: 1px solid var(--pk-border);
  border-radius: 12px;
  background: #fff;
}

.pk-partner-close {
  border-color: #8e1b1b;
  background: #fff;
  color: #8e1b1b;
}

.pk-consent-banner[hidden],
.pk-calculator__consent[hidden] {
  display: none !important;
}

.pk-consent-banner {
  position: fixed;
  z-index: 2147483000;
  right: 16px;
  bottom: 16px;
  left: 16px;
  width: min(calc(100% - 32px), 720px);
  margin: 0 auto;
  color: #0d2340;
  background: #fff;
  border: 1px solid #d8dee7;
  border-radius: 16px;
  box-shadow: 0 18px 54px rgba(6, 20, 38, 0.2);
}

.pk-consent-banner__inner {
  padding: clamp(1rem, 2.4vw, 1.35rem);
}

.pk-consent-banner h2,
.pk-privacy-dialog h2,
.pk-consent-category h3 {
  color: #0d2340;
}

.pk-consent-banner h2,
.pk-privacy-dialog h2 {
  margin: 0.25rem 0 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.16;
}

.pk-consent-banner h2 {
  margin: 0.15rem 0 0.45rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.pk-consent-banner p,
.pk-privacy-dialog p {
  line-height: 1.55;
}

.pk-consent-banner p {
  margin-top: 0.45rem;
  margin-bottom: 0.45rem;
  line-height: 1.45;
}

.pk-consent-kicker {
  margin: 0;
  color: #8a6324;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pk-consent-note {
  color: #5b6675;
  font-size: 0.86rem;
}

.pk-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.8rem;
}

.pk-consent-choice {
  flex: 1 1 210px;
  border-color: #0d2340;
  background: #0d2340;
}

.pk-consent-settings {
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 0;
  color: #0d5791;
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.pk-consent-settings:hover {
  color: #0d2340;
}

.pk-consent-links {
  display: flex;
  gap: 0.38rem;
  align-items: center;
  margin: 0.7rem 0 0;
  font-size: 0.84rem;
}

.pk-consent-links a {
  color: #0d5791;
}

.pk-consent-links .pk-consent-settings {
  width: auto;
  min-height: auto;
  padding: 0;
  font-size: inherit;
}

.pk-privacy-dialog {
  width: min(94vw, 760px);
  max-height: min(88vh, 820px);
  padding: 0;
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: #0d2340;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.pk-privacy-dialog::backdrop {
  background: rgba(6, 20, 38, 0.68);
}

.pk-privacy-dialog__inner {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.pk-consent-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #d8dee7;
  border-radius: 14px;
  background: #f8fafc;
}

.pk-consent-category h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.pk-consent-category p {
  margin: 0;
  color: #5b6675;
  font-size: 0.9rem;
}

.pk-consent-switch {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  color: #0d2340;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.pk-consent-switch input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #0d2340;
}

@media (max-width: 640px) {
  .pk-form-grid {
    grid-template-columns: 1fr;
  }

  .pk-field--wide {
    grid-column: auto;
  }

  .pk-submit,
  .pk-partner-button,
  .pk-partner-close,
  .pk-consent-choice,
  .pk-consent-settings {
    width: 100%;
  }

  .pk-consent-banner {
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: calc(100% - 16px);
    border-radius: 15px;
  }

  .pk-consent-banner__inner {
    max-height: min(78vh, 600px);
    overflow: auto;
  }

  .pk-consent-links .pk-consent-settings {
    width: auto;
  }

  .pk-consent-category {
    grid-template-columns: 1fr;
  }

  .pk-consent-switch {
    flex-direction: row;
    justify-content: space-between;
  }

  .pk-partner-privacy {
    display: block;
    margin: 0.9rem 0 0;
  }

  .pk-partner-frame iframe {
    min-height: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pk-contact-form *,
  .pk-partner-gate *,
  .pk-privacy-dialog * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
