:root {
  --pp-bg: #f7d5e0;
  --pp-bg-soft: #efc2d2;
  --pp-paper: #fff;
  --pp-ink: #5d1016;
  --pp-muted: #8a4554;
  --pp-red: #b21e29;
  --pp-red-deep: #8e1620;
  --pp-gold: #e5a323;
  --pp-rose: #d37b9c;
  --pp-line: rgba(178, 30, 41, 0.18);
  --pp-shadow: 0 10px 28px rgba(93, 16, 22, 0.1);
  --pp-radius: 1.15rem;
  --pp-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--pp-ink);
  background:
    radial-gradient(900px 420px at 50% -8%, #fde8ef 0%, transparent 58%),
    var(--pp-bg);
  font-family: var(--pp-font);
}

.pp-container {
  width: min(100% - 2rem, 58rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  left: 0.5rem;
  top: -5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.5rem;
  color: #fff;
  background: var(--pp-red);
}

.skip-link:focus {
  top: 0.5rem;
}

.pp-topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(178, 30, 41, 0.12);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.pp-topbar-inner {
  min-height: 4.2rem;
  display: flex;
  align-items: center;
}

.pp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.pp-brand-logo {
  width: auto;
  height: 2.85rem;
  display: block;
  border-radius: 0.45rem;
}

.pp-brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.15;
}

.pp-brand-text strong {
  font-size: 1.08rem;
}

.pp-brand-text span {
  color: var(--pp-rose);
  font-size: 0.84rem;
  font-weight: 650;
}

.pp-main {
  flex: 1 0 auto;
  padding-block: clamp(2rem, 6vw, 4rem);
}

.pp-hero {
  max-width: 48rem;
  margin: 0 auto 1.4rem;
  text-align: center;
}

.pp-eyebrow {
  margin: 0 0 0.45rem;
  color: var(--pp-red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pp-hero h1,
.pp-thank-you h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.pp-lead {
  max-width: 43rem;
  margin: 1.1rem auto 0;
  color: var(--pp-muted);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  line-height: 1.6;
}

.pp-required-note {
  margin: 0.85rem 0 0;
  color: var(--pp-muted);
  font-size: 0.83rem;
}

.pp-required,
.pp-required-note span {
  color: var(--pp-red);
}

.pp-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 auto 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #df8d92;
  border-radius: 0.85rem;
  background: #fff6f6;
  color: var(--pp-red-deep);
  font-weight: 650;
}

.pp-survey {
  display: grid;
  gap: 1rem;
}

.pp-card,
.pp-thank-you {
  padding: clamp(1.15rem, 4vw, 2rem);
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  background: var(--pp-paper);
  box-shadow: var(--pp-shadow);
}

.pp-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.pp-section-number {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--pp-red);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.pp-section-heading h2 {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.pp-section-heading p {
  margin: 0.35rem 0 0;
  color: var(--pp-muted);
  line-height: 1.45;
}

.pp-rating-question,
.pp-choice-question {
  min-width: 0;
  margin: 0;
  padding: 1.2rem 0;
  border: 0;
  border-top: 1px solid var(--pp-line);
}

.pp-rating-question:last-child {
  padding-bottom: 0;
}

.pp-rating-question legend,
.pp-choice-question legend {
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 1.02rem;
  font-weight: 750;
}

.pp-rating-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.42rem;
}

.pp-rating-scale label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.pp-rating-scale input,
.pp-choice-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pp-rating-scale label > span {
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.pp-stars {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(178, 30, 41, 0.24);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--pp-gold);
  font-size: clamp(0.7rem, 2.3vw, 1.05rem);
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.pp-rating-number {
  display: block;
  margin-top: 0.25rem;
  color: var(--pp-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.pp-rating-scale label:hover .pp-stars {
  border-color: var(--pp-gold);
  background: #fff9e9;
  transform: translateY(-1px);
}

.pp-rating-scale input:checked + .pp-stars {
  border-color: var(--pp-red);
  background: var(--pp-red);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(178, 30, 41, 0.12);
}

.pp-rating-scale input:focus-visible + .pp-stars,
.pp-choice-options input:focus-visible + span {
  outline: 3px solid rgba(178, 30, 41, 0.3);
  outline-offset: 2px;
}

.pp-comment-label {
  display: block;
  margin: 0.8rem 0 0.35rem;
  color: var(--pp-muted);
  font-size: 0.86rem;
  font-weight: 650;
}

textarea,
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  border: 1px solid rgba(178, 30, 41, 0.25);
  border-radius: 0.8rem;
  background: #fff;
  color: var(--pp-ink);
  font: inherit;
  font-size: 1rem;
}

textarea {
  min-height: 5.4rem;
  padding: 0.7rem 0.8rem;
  resize: vertical;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  min-height: 3rem;
  padding: 0.55rem 0.8rem;
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  border-color: var(--pp-red);
  outline: 2px solid rgba(178, 30, 41, 0.22);
  outline-offset: 1px;
}

.pp-field {
  display: block;
  margin-bottom: 1.25rem;
}

.pp-field > span {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 750;
}

.pp-field small {
  display: block;
  margin: -0.2rem 0 0.45rem;
  color: var(--pp-muted);
  font-size: 0.84rem;
}

.pp-choice-question {
  padding-block: 1.15rem;
}

.pp-choice-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pp-choice-options label {
  position: relative;
  cursor: pointer;
}

.pp-choice-options span {
  min-width: 5.5rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(178, 30, 41, 0.25);
  border-radius: 999px;
  background: #fff;
  color: var(--pp-red);
  font-weight: 750;
}

.pp-choice-options input:checked + span {
  border-color: var(--pp-red);
  background: var(--pp-red);
  color: #fff;
}

.pp-contact-grid {
  display: grid;
  gap: 0.1rem 1rem;
}

.pp-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.15rem;
  padding: 0.85rem;
  border-radius: 0.8rem;
  background: #fde8ef;
  cursor: pointer;
  line-height: 1.45;
}

.pp-consent input {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  margin: 0.15rem 0 0;
  accent-color: var(--pp-red);
}

.pp-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.7rem 0 0;
  color: var(--pp-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.pp-submit-wrap {
  padding: 0.6rem 0 0.4rem;
  text-align: center;
}

.pp-submit {
  min-height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.55rem;
  border: 0;
  border-radius: 0.9rem;
  background: var(--pp-red);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(142, 22, 32, 0.2);
}

.pp-submit:hover {
  background: var(--pp-red-deep);
}

.pp-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.pp-submit-wrap p {
  margin: 0.75rem 0 0;
  color: var(--pp-muted);
  font-size: 0.88rem;
}

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

.pp-thank-you {
  max-width: 44rem;
  margin: clamp(1rem, 8vw, 5rem) auto;
  padding-block: clamp(2.5rem, 8vw, 4.5rem);
  text-align: center;
}

.pp-success-icon {
  width: 4.2rem;
  height: 4.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: var(--pp-red);
  color: #fff;
  font-size: 2rem;
}

.pp-thank-you h1 {
  font-size: clamp(1.85rem, 6vw, 2.8rem);
}

.pp-thank-you p {
  max-width: 35rem;
  margin: 1rem auto 0;
  color: var(--pp-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.pp-footer {
  margin-top: auto;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(178, 30, 41, 0.1);
  background: #fff;
  color: var(--pp-muted);
  text-align: center;
}

.pp-footer .pp-container {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pp-footer strong {
  color: var(--pp-ink);
}

.pp-footer span {
  font-size: 0.86rem;
}

@media (min-width: 700px) {
  .pp-contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pp-contact-grid .pp-field:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .pp-container {
    width: min(100% - 1.1rem, 58rem);
  }

  .pp-brand-text span {
    max-width: 15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pp-rating-scale {
    grid-template-columns: 1fr;
  }

  .pp-stars {
    justify-content: flex-start;
    padding-inline: 1rem;
    font-size: 1.05rem;
  }

  .pp-rating-number {
    position: absolute;
    right: 1rem;
    top: 0.95rem;
    margin: 0;
    color: var(--pp-muted);
  }

  .pp-rating-scale input:checked ~ .pp-rating-number {
    color: #fff;
  }

  .pp-choice-options label {
    flex: 1 1 5.5rem;
  }

  .pp-choice-options span {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
