/* Apply as peer supporter — page frame, typography, breathing room */

body.apply-peer-page {
  --adm-txt-muted: #4a5568;
  --adm-txt-body: #2d3748;
  --adm-txt-faint: #7b8794;
  background: linear-gradient(165deg, #e8eef5 0%, #f1f4f8 28%, #f5f7fa 55%, #eef1f6 100%);
  background-attachment: fixed;
}

body.apply-peer-page.lw-public-shell .lw-public-main {
  padding: clamp(40px, 5vw, 56px) clamp(16px, 4vw, 40px) 64px;
  width: 100%;
  box-sizing: border-box;
}

/* Main card: same max width on every apply step */
body.apply-peer-page .ob-card.apply-peer-wide {
  width: 100%;
  max-width: min(1140px, calc(100vw - 32px));
  margin-left: auto;
  margin-right: auto;
  border-radius: 20px;
  border: 1px solid rgba(23, 93, 146, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 24px rgba(15, 49, 84, 0.06),
    0 12px 48px rgba(15, 49, 84, 0.04);
}

/* Page header */
body.apply-peer-page .apply-peer-hero {
  padding: clamp(20px, 3vw, 28px) clamp(24px, 4vw, 40px) clamp(18px, 2.5vw, 24px);
  margin-bottom: 0;
  border-bottom: 1px solid rgba(12, 25, 41, 0.07);
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

body.apply-peer-page .apply-peer-hero h1 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--adm-txt-head);
  margin-bottom: 12px;
}

body.apply-peer-page .apply-peer-hero p {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--adm-txt-muted);
  max-width: 62ch;
  margin: 0;
}

body.apply-peer-page .apply-peer-inner {
  padding: clamp(16px, 2.5vw, 24px) clamp(24px, 4vw, 40px) clamp(28px, 3vw, 44px);
}

/* Step titles inside form card */
body.apply-peer-page .step-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

body.apply-peer-page .step-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--adm-txt-muted);
  margin-bottom: 28px;
}

body.apply-peer-page .form-section-title {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--adm-txt-body);
  opacity: 0.85;
}

/* Form controls — slightly larger for readability */
body.apply-peer-page .form-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

body.apply-peer-page .form-input,
body.apply-peer-page .form-select,
body.apply-peer-page textarea.form-input {
  font-size: 15px;
  line-height: 1.45;
  padding: 12px 14px;
  border-radius: 11px;
}

/* Taller selects to match apply flow inputs (12px vertical padding — amb-add-wizard.css base uses 10px) */
body.apply-peer-page .form-select {
  min-height: calc(1.45em + 24px + 2px);
  padding-right: 2.75rem;
  background-position: right 14px center;
}

body.apply-peer-page .form-group {
  margin-bottom: 20px;
}

body.apply-peer-page .form-grid-2 {
  gap: 20px 22px;
}

body.apply-peer-page .photo-upload-note {
  font-size: 12px;
  color: var(--adm-txt-muted);
}

body.apply-peer-page .photo-upload-area {
  gap: 24px;
  margin-bottom: 24px;
}

/* Card body padding (replaces tight inline styles) */
body.apply-peer-page .apply-peer-card-body {
  padding: clamp(28px, 3.5vw, 40px) clamp(24px, 3.5vw, 40px) clamp(32px, 3.5vw, 48px) !important;
}

body.apply-peer-page .form-section {
  margin-bottom: 36px;
}

/* Form card: section rhythm, chips, footer (all steps, single column) */
body.apply-peer-page .apply-peer-card-body .form-section-title {
  margin-bottom: 18px;
  padding-bottom: 12px;
}

body.apply-peer-page .apply-peer-card-body .form-section:not(:first-of-type) {
  padding-top: 4px;
}

body.apply-peer-page .apply-peer-card-body .form-grid-2 {
  gap: 22px 26px;
}

body.apply-peer-page .apply-peer-card-body .skill-chips {
  gap: 10px 12px;
  margin-top: 2px;
}

body.apply-peer-page .apply-peer-card-body .form-group:has(.skill-chips) .form-label {
  margin-bottom: 12px;
}

body.apply-peer-page .apply-peer-card-body .step-nav {
  padding-top: 24px;
  margin-top: 40px;
}

/* Optional reflection block above the form (step 1) */
body.apply-peer-page .apply-split__scribe {
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid var(--adm-border, rgba(12, 25, 41, 0.1));
  background: linear-gradient(
    165deg,
    var(--adm-blue-xlt, #f4faf7) 0%,
    var(--adm-surface, #fff) 55%
  );
  box-shadow: 0 1px 3px rgba(12, 25, 41, 0.04);
  margin-bottom: 24px;
}

body.apply-peer-page .apply-scribe__lead {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 16px;
}

body.apply-peer-page .apply-split__scribe textarea.form-input {
  min-height: 112px;
  font-size: 15px;
}

body.apply-peer-page .apply-peer-inner .step-indicator {
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  body.apply-peer-page .apply-peer-inner .step-indicator {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin-bottom: 18px;
    scrollbar-width: thin;
  }

  body.apply-peer-page .apply-peer-inner .step-connector {
    width: 36px;
    flex-shrink: 0;
  }
}

@media (max-width: 520px) {
  body.apply-peer-page .ob-card.apply-peer-wide {
    max-width: 100%;
  }

  body.apply-peer-page .apply-split__scribe {
    padding: 16px 14px;
  }

  body.apply-peer-page .apply-scribe__lead {
    font-size: 13px;
  }
}

/* Thanks page */
body.apply-peer-page .apply-peer-thanks-inner {
  padding-top: 8px;
  padding-bottom: 40px;
}

body.apply-peer-page .apply-peer-thanks-footnote {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--adm-txt-muted);
}

body.apply-peer-page .apply-peer-thanks-footnote a {
  color: #175d92;
  font-weight: 600;
  text-decoration: none;
}

body.apply-peer-page .apply-peer-thanks-footnote a:hover {
  text-decoration: underline;
}
