.partner-page {
  min-height: 100vh;
  padding-top: 104px;
}

.partner-shell {
  width: min(100% - 36px, 1100px);
  margin-inline: auto;
}

.partner-hero {
  display: grid;
  padding: clamp(46px, 8vw, 92px) 0 clamp(34px, 6vw, 70px);
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}

.partner-hero h1,
.survey-intro h1 {
  margin: 8px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.partner-lead {
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
}

.partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.partner-actions .secondary-btn,
.survey-actions .secondary-btn,
.form-actions .secondary-btn {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.partner-hero-card,
.partner-card,
.survey-card,
.interest-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.partner-hero-card {
  padding: 28px;
}

.partner-hero-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--brand-dark);
  font-size: 21px;
}

.partner-checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner-checks li {
  position: relative;
  padding-left: 28px;
  color: #334155;
  line-height: 1.55;
}

.partner-checks li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #ddf6ed;
  color: var(--brand-dark);
  content: "✓";
  font-size: 12px;
  font-weight: 900;
}

.partner-section {
  padding: 44px 0 72px;
}

.partner-section-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.partner-section-heading p {
  color: var(--muted);
  line-height: 1.65;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.partner-card {
  padding: 25px;
}

.partner-card .step-number {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  background: #e3f6ef;
  color: var(--brand-dark);
  font-weight: 900;
}

.partner-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.privacy-callout {
  margin: 0 0 70px;
  padding: 24px 26px;
  border: 1px solid #b9dfd1;
  border-left: 5px solid var(--brand);
  border-radius: 20px;
  background: #edf8f4;
}

.privacy-callout p,
.privacy-callout ul {
  color: #334155;
  line-height: 1.65;
}

.privacy-callout p:last-child {
  margin-bottom: 0;
}

.privacy-callout a,
.partner-form a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.survey-layout,
.interest-layout {
  width: min(100% - 32px, 860px);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 74px) 0 80px;
}

.survey-intro {
  text-align: center;
}

.survey-intro .partner-lead {
  margin-inline: auto;
}

.survey-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 22px 0;
}

.survey-meta span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.survey-intro .primary-btn {
  min-width: 210px;
}

.survey-card,
.interest-card {
  overflow: hidden;
  padding: clamp(22px, 5vw, 46px);
}

.survey-card[hidden],
.survey-step[hidden],
.conditional-panel[hidden],
.success-panel[hidden] {
  display: none;
}

.survey-progress-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.survey-progress {
  width: 100%;
  height: 8px;
  margin-bottom: 34px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ece9;
}

.survey-progress span {
  display: block;
  width: 12.5%;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 180ms ease;
}

.survey-step h2 {
  max-width: 760px;
  font-size: clamp(27px, 4vw, 38px);
}

.question-help,
.form-help {
  color: var(--muted);
  line-height: 1.6;
}

.option-grid {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.option-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
  position: relative;
  display: flex;
  min-height: 54px;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  line-height: 1.45;
}

.choice-card:hover,
.choice-card:focus-within {
  border-color: var(--brand);
  background: #f3fbf8;
}

.choice-card:has(input:checked) {
  border-color: var(--brand);
  background: #e8f8f2;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.choice-card input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--brand-dark);
}

.conditional-panel {
  margin-top: 22px;
  padding: 20px;
  border-radius: 18px;
  background: #f7faf9;
}

.city-fieldset {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7faf9;
}

.city-fieldset legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 900;
}

.city-fieldset .question-help {
  margin: 0;
}

.city-picker {
  position: relative;
  display: grid;
  gap: 8px;
}

.city-combobox {
  position: relative;
}

.partner-form .city-combobox input {
  padding-right: 54px;
}

.city-toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: #eef5f2;
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.city-toggle span {
  transform: translateY(-2px);
  transition: transform 140ms ease;
}

.city-toggle[aria-expanded="true"] span {
  transform: translateY(2px) rotate(180deg);
}

.city-toggle:hover,
.city-toggle:focus-visible {
  background: #dcece6;
  outline: 3px solid rgba(0, 166, 118, 0.14);
}

.city-toggle:disabled {
  cursor: default;
  opacity: 0.55;
}

.city-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  max-height: min(320px, 46vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #b9cac4;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.city-options[hidden] {
  display: none;
}

.city-option {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #e6eeeb;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-align: left;
}

.city-option:last-child {
  border-bottom: 0;
}

.city-option:hover,
.city-option[data-active="true"] {
  background: #e8f8f2;
  color: var(--brand-dark);
}

.city-option:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(0, 166, 118, 0.22);
  outline-offset: -3px;
}

.city-empty {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  font-size: 14px;
}

.city-chips {
  display: flex;
  min-height: 36px;
  flex-wrap: wrap;
  gap: 8px;
}

.city-count {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px 7px 12px;
  border: 1px solid #a7d8c6;
  border-radius: 999px;
  background: #e8f8f2;
  color: #135c45;
  font-size: 14px;
  font-weight: 800;
}

.city-chip button {
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.city-chip button:hover,
.city-chip button:focus-visible {
  background: #ccecdf;
  outline: none;
}

.city-message {
  min-height: 21px;
  margin: 0;
  color: #a21d32;
  font-size: 13px;
  font-weight: 800;
}

.city-message[data-kind="success"] {
  color: var(--brand-dark);
}

.partner-form label:not(.choice-card) {
  display: grid;
  gap: 8px;
  color: #263746;
  font-weight: 800;
}

.partner-form input[type="text"],
.partner-form input[type="email"],
.partner-form input[type="tel"],
.partner-form select,
.partner-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #c8d6d1;
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
}

.partner-form textarea {
  min-height: 116px;
  resize: vertical;
}

.partner-form input:focus,
.partner-form select:focus,
.partner-form textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(0, 166, 118, 0.14);
}

.character-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.survey-actions,
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}

.survey-actions .primary-btn,
.survey-actions .secondary-btn,
.form-actions .primary-btn {
  min-width: 128px;
}

.survey-actions button[hidden] {
  display: none;
}

.survey-actions #surveyNextButton:disabled {
  background: #d8e0dd;
  color: #5f6f69;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.survey-error,
.form-status {
  min-height: 24px;
  margin: 18px 0 0;
  color: #a21d32;
  font-weight: 800;
  line-height: 1.5;
}

.survey-error[data-kind="success"],
.form-status[data-kind="success"] {
  color: var(--brand-dark);
}

.review-list {
  display: grid;
  gap: 0;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f9fbfa;
}

.review-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr);
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.review-list div:last-child {
  border-bottom: 0;
}

.review-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.review-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.turnstile-container {
  min-height: 70px;
  margin: 20px 0 6px;
}

.success-panel {
  padding: 20px 0;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  background: #ddf6ed;
  color: var(--brand-dark);
  font-size: 30px;
  font-weight: 900;
}

.repeat-notice,
.closed-notice {
  margin: 18px auto 0;
  padding: 14px 16px;
  border: 1px solid #e7c778;
  border-radius: 14px;
  background: #fff9e8;
  color: #6f5310;
  line-height: 1.55;
}

.closed-notice {
  border-color: #e7aab3;
  background: #fff1f3;
  color: #8f1e30;
}

.interest-header {
  margin-bottom: 26px;
}

.interest-header h1 {
  margin: 7px 0 14px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.interest-grid .full {
  grid-column: 1 / -1;
}

.consent-field {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 500 !important;
  line-height: 1.55;
}

.consent-field input {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--brand-dark);
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.privacy-details {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.privacy-details summary {
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 800;
}

.privacy-details p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 780px) {
  .partner-page {
    padding-top: 82px;
  }

  .partner-hero,
  .partner-grid,
  .interest-grid {
    grid-template-columns: 1fr;
  }

  .partner-hero {
    padding-top: 46px;
  }

  .interest-grid .full {
    grid-column: auto;
  }

  .option-grid.two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .partner-shell,
  .survey-layout,
  .interest-layout {
    width: min(100% - 22px, 1100px);
  }

  .survey-card,
  .interest-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .survey-actions,
  .form-actions {
    flex-direction: column-reverse;
  }

  .survey-actions button,
  .form-actions button {
    width: 100%;
  }

  .review-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .city-options {
    max-height: min(280px, 44vh);
  }
}

@media (prefers-reduced-motion: reduce) {
  .survey-progress span {
    transition: none;
  }
}
