:root {
  --pp-orange: #e87513;
  --pp-orange-dark: #c85f08;
  --pp-orange-soft: #fff1e4;
  --pp-ink: #151515;
  --pp-muted: #666666;
  --pp-line: #eadfd5;
  --pp-cream: #fffaf5;
  --pp-shadow: 0 22px 70px rgba(24, 20, 17, 0.12);
}

.pp-assessment-wrap * { box-sizing: border-box; }
.pp-assessment-wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 42px auto 82px;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--pp-ink);
}

.pp-alert {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 16px;
  font-weight: 800;
  line-height: 1.45;
}
.pp-success { background: #eaf8f0; color: #11613d; border: 1px solid #bee8ce; }
.pp-error { background: #fff0ed; color: #9c2b1c; border: 1px solid #f4c1b8; }

.pp-form-shell {
  background: #fff;
  border-radius: 34px;
  box-shadow: var(--pp-shadow);
  border: 1px solid rgba(232,117,19,.13);
  overflow: hidden;
}
.pp-form-head {
  background: linear-gradient(135deg, var(--pp-orange) 0%, #f49a3c 100%);
  padding: 30px 34px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.pp-form-head h2 {
  margin: 0 0 8px;
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: -1px;
  color: #fff;
}
.pp-form-head p {
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 15px;
  line-height: 1.5;
}
.pp-progress-card {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 18px;
  padding: 14px;
  min-width: 190px;
}
.pp-progress-card b { display:block; font-size: 13px; margin-bottom: 10px; }
.pp-progress-card div { height: 8px; background: rgba(255,255,255,.35); border-radius:999px; overflow:hidden; }
.pp-progress-card span { display:block; height:100%; width: 25%; background:#fff; border-radius:999px; }
.pp-form-body { padding: 34px; }

.pp-section-card {
  border: 1px solid var(--pp-line);
  border-radius: 26px;
  padding: 26px;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #fff 0%, #fffaf6 100%);
}
.pp-section-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.pp-section-title > div {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--pp-orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 1000;
  box-shadow: 0 10px 22px rgba(232,117,19,.22);
  flex: 0 0 auto;
}
.pp-section-title h3 {
  margin: 0 0 5px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.5px;
  color: var(--pp-ink);
}
.pp-section-title p {
  margin: 0;
  color: var(--pp-muted);
  font-size: 14px;
  line-height: 1.45;
}
.pp-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.pp-three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
.pp-full { grid-column: 1 / -1; }
.pp-mt { margin-top: 18px; }
.pp-assessment-wrap label:not(.pp-radio-card):not(.pp-consent-row) {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 900;
  color: #2d2927;
}
.pp-assessment-wrap label em {
  color: var(--pp-orange);
  font-style: normal;
  font-size: 11px;
  margin-left: 3px;
}
.pp-assessment-wrap input[type="text"],
.pp-assessment-wrap input[type="email"],
.pp-assessment-wrap input[type="tel"],
.pp-assessment-wrap input[type="date"],
.pp-assessment-wrap input[type="number"],
.pp-assessment-wrap select,
.pp-assessment-wrap textarea {
  width: 100%;
  border: 1px solid #dfd2c7;
  border-radius: 15px;
  min-height: 50px;
  padding: 0 14px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: .2s ease;
  color: var(--pp-ink);
}
.pp-assessment-wrap textarea {
  min-height: 150px;
  padding-top: 14px;
  resize: vertical;
  line-height: 1.5;
}
.pp-assessment-wrap input:focus,
.pp-assessment-wrap select:focus,
.pp-assessment-wrap textarea:focus {
  border-color: var(--pp-orange);
  box-shadow: 0 0 0 4px rgba(232,117,19,.12);
}
.pp-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pp-radio-card input { display: none; }
.pp-radio-card span {
  display: block;
  border: 1px solid #dfd2c7;
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  font-weight: 900;
  font-size: 14px;
  transition: .2s ease;
  cursor: pointer;
}
.pp-radio-card input:checked + span {
  border-color: var(--pp-orange);
  background: var(--pp-orange-soft);
  box-shadow: 0 8px 22px rgba(232,117,19,.1);
}
.pp-terms-box {
  max-height: 300px;
  overflow: auto;
  border: 1px solid var(--pp-line);
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  color: #51443c;
  line-height: 1.6;
  font-size: 14px;
}
.pp-terms-box h4 {
  margin: 22px 0 8px;
  color: var(--pp-ink);
  font-size: 17px;
}
.pp-terms-box h4:first-child { margin-top: 0; }
.pp-consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dfd2c7;
  border-radius: 18px;
  background: #fff;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
}
.pp-consent-row input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 1px;
  accent-color: var(--pp-orange);
}
.pp-submit-row {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 6px;
}
.pp-submit-btn {
  border: 0;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--pp-orange);
  color: #fff;
  font-weight: 1000;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(232,117,19,.28);
}
.pp-submit-btn:hover { background: var(--pp-orange-dark); }

@media (max-width: 760px) {
  .pp-assessment-wrap { width: min(100% - 22px, 1040px); margin: 24px auto 52px; }
  .pp-form-head { padding: 24px 20px; display: block; }
  .pp-progress-card { margin-top: 18px; }
  .pp-form-body { padding: 18px; }
  .pp-section-card { padding: 18px; border-radius: 22px; }
  .pp-field-grid, .pp-three, .pp-radio-grid { grid-template-columns: 1fr; }
  .pp-submit-row { display: grid; }
  .pp-submit-btn { width: 100%; }
}

/* Assessment information form additions */
.pp-actual-wrap .pp-form-head {
  background: radial-gradient(circle at 90% 20%, rgba(255,255,255,.24), transparent 22%), linear-gradient(135deg, var(--pp-orange) 0%, #f49a3c 100%);
}
.pp-head-badge span { width: 100%; }
.pp-help-text {
  color: #8a7a70;
  font-size: 11px;
  margin-top: 7px;
}
.pp-medical-notice {
  background: #fff;
  border: 1px solid rgba(232,117,19,.2);
  border-left: 5px solid var(--pp-orange);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
  color: #493d35;
  font-size: 14px;
  line-height: 1.65;
}
.pp-full-terms {
  max-height: 440px;
}
.pp-full-terms h3 {
  margin: 0 0 12px;
  color: var(--pp-ink);
  font-size: 22px;
  letter-spacing: -.5px;
}
.pp-full-terms h5 {
  margin: 18px 0 8px;
  color: var(--pp-ink);
  font-size: 15px;
}
.pp-full-terms ul {
  margin: 8px 0 0 18px;
  padding: 0;
}
.pp-full-terms li { margin-bottom: 6px; }
.pp-bank-card {
  margin: 14px 0;
  padding: 16px;
  background: var(--pp-orange-soft);
  border-radius: 16px;
  border: 1px solid rgba(232,117,19,.18);
  display: grid;
  gap: 5px;
  font-weight: 800;
}
.pp-important-consent {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(217,75,43,.22);
  background: #fff7f4;
  border-radius: 22px;
}
.pp-important-consent h3 {
  margin: 0 0 12px;
  color: #d94b2b;
  font-size: 19px;
  letter-spacing: -.3px;
}
.pp-submit-between {
  justify-content: space-between;
  align-items: center;
}
.pp-submit-note {
  color: var(--pp-muted);
  font-size: 13px;
  line-height: 1.45;
  max-width: 560px;
  margin: 0;
}
@media (max-width: 760px) {
  .pp-submit-note { max-width: none; }
}

/* Request information form additions */
.pp-request-wrap .pp-form-head {
  background: radial-gradient(circle at 90% 20%, rgba(255,255,255,.24), transparent 22%), linear-gradient(135deg, var(--pp-orange) 0%, #f49a3c 100%);
}
.pp-consent-box {
  border: 1px solid rgba(232,117,19,.18);
  border-radius: 22px;
  padding: 20px;
  background: #fff;
  margin-bottom: 24px;
}
.pp-request-consent {
  margin-top: 0;
  line-height: 1.65;
}
.pp-arrow-btn::after {
  content: "→";
  font-size: 22px;
  line-height: 1;
  margin-left: 12px;
}

.pp-permission-choice {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(232,117,19,.22);
  background: #fff;
  border-radius: 18px;
}
.pp-permission-choice h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--pp-ink);
}
.pp-permission-choice h4 em {
  font-style: normal;
  color: var(--pp-orange);
  font-size: 12px;
  margin-left: 4px;
}
.pp-permission-choice p {
  margin: 0 0 10px;
  color: var(--pp-muted);
  font-size: 14px;
  line-height: 1.5;
}
.pp-permission-choice .pp-consent-row {
  margin-top: 10px;
}

/* Validation scroll/error fixes */
.pp-validation-alert {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(220, 38, 38, .25);
  border-left: 5px solid #dc2626;
  border-radius: 16px;
  background: #fff5f5;
  color: #7f1d1d;
  padding: 14px 16px;
  margin: 0 0 18px;
  font-weight: 800;
}
.pp-validation-alert span {
  font-weight: 600;
  color: #991b1b;
}
.pp-field-invalid input,
.pp-field-invalid select,
.pp-field-invalid textarea,
.pp-field-invalid .pp-radio-card span,
.pp-field-invalid.pp-consent-row {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .10) !important;
}
.pp-field-invalid.pp-radio-grid {
  border: 1px solid rgba(220, 38, 38, .3);
  border-radius: 20px;
  padding: 8px;
  background: #fff5f5;
}

/* Keep custom radio cards visually hidden but still focusable for browser validation */
.pp-radio-card {
  position: relative;
}
.pp-radio-card input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
}
.pp-radio-card input:focus + span {
  border-color: var(--pp-orange);
  box-shadow: 0 0 0 4px rgba(232,117,19,.14);
}

/* Field-level validation tooltips */
.pp-assessment-wrap .pp-field-error {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
  margin: 9px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(220, 38, 38, .22);
  border-radius: 10px;
  background: #fff;
  color: #3b2622;
  box-shadow: 0 10px 26px rgba(17, 24, 39, .14);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  position: relative;
  z-index: 5;
}
.pp-assessment-wrap .pp-field-error::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid rgba(220, 38, 38, .22);
  border-top: 1px solid rgba(220, 38, 38, .22);
  transform: rotate(45deg);
}
.pp-assessment-wrap .pp-field-error span {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 5px;
  background: var(--pp-orange);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-weight: 1000;
  font-size: 15px;
}
.pp-assessment-wrap .pp-field-error strong {
  font-weight: 700;
}
.pp-field-invalid input,
.pp-field-invalid select,
.pp-field-invalid textarea {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .10) !important;
}
.pp-field-invalid.pp-consent-row,
.pp-field-invalid .pp-consent-row,
.pp-field-invalid.pp-radio-grid,
.pp-field-invalid .pp-radio-card span,
.pp-field-invalid.pp-permission-choice {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .10) !important;
}
.pp-assessment-wrap .pp-validation-alert {
  display: none !important;
}
