@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap");

.ps-scope {
  --ps-font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
                    Helvetica, Arial, sans-serif;
  --ps-primary-blue: #2773FF;
  --ps-primary-blue-dark: #1B51B3;
  --ps-primary-blue-light: #689DFF;
  --ps-primary-blue-bg: #D4E3FF;
  --ps-dark: #0F2744;
  --ps-dark-2: #19315A;
  --ps-secondary: #829DC3;
  --ps-secondary-bg: #EFF2F6;
  --ps-text-muted: #728095;
  --ps-divider: #C6CAD0;
  --ps-status-success: #007D00;
  --ps-status-success-bg: #E8F9F5;
  --ps-status-warning: #C54600;
  --ps-status-warning-bg: #FEF3E8;
  --ps-status-danger: #EB2447;
  --ps-status-danger-bg: #FDE8EC;
  --ps-status-info: #2773FF;
  --ps-status-info-bg: #D4E3FF;
  --ps-white: #FFFFFF;
  --ps-bg-page: #FFFFFF;
  --ps-bg-subtle: #F7F8FA;
  --ps-bg-tinted: #F3F5F9;
  --ps-border-subtle: #E6EAEE;
  --ps-border-default: #C1C7CF;
  --ps-input-border: #C1C7CF;
  --ps-input-placeholder: #728095;
  --ps-focus-ring: rgba(39, 115, 255, 0.30);
  --ps-hover-overlay: rgba(15, 39, 68, 0.04);
  --ps-shadow-xs: 0 1px 2px rgba(15, 39, 68, 0.06);
  --ps-shadow-sm: 0 2px 6px rgba(15, 39, 68, 0.08);
  --ps-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
  --ps-shadow-focus: 0 0 0 3px var(--ps-focus-ring);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #0F2744;
  background: #FFFFFF;
}

.ps-scope {
  font-family: var(--ps-font-family);
  color: var(--ps-dark);
  background: var(--ps-bg-page);
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.kicker {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ps-primary-blue);
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
}

.brand-row .kicker { margin: 0; }
.brand-mark { flex-shrink: 0; display: block; }

h1 { font-family: var(--ps-font-family); font-weight: 700; color: var(--ps-dark); font-size: 2rem; line-height: 2.5rem; margin: 0 0 0.5rem; }
h1.big { font-size: 2rem; line-height: 2.5rem; }
h2 { font-family: var(--ps-font-family); font-weight: 700; color: var(--ps-dark); font-size: 1.75rem; line-height: 2.25rem; margin: 0 0 0.5rem; }
h3 { font-family: var(--ps-font-family); font-weight: 700; color: var(--ps-dark); font-size: 1.5rem; line-height: 2rem; margin: 0 0 0.5rem; }
h4 { font-family: var(--ps-font-family); font-weight: 700; color: var(--ps-dark); font-size: 1.25rem; line-height: 1.75rem; margin: 0 0 0.5rem; }
h5 { font-family: var(--ps-font-family); font-weight: 700; color: var(--ps-dark); font-size: 1rem; line-height: 1.5rem; margin: 0 0 0.5rem; }

.subtitle { color: var(--ps-text-muted); font-size: 1rem; line-height: 1.5rem; margin: 0 0 1.75rem; max-width: 640px; }

.card { background: var(--ps-bg-subtle); border-radius: 8px; padding: 1.5rem; box-shadow: var(--ps-shadow-xs); }

label { display: block; font-weight: 700; font-size: 0.875rem; line-height: 1.25rem; margin-bottom: 0.5rem; color: var(--ps-dark); }

input[type="text"], input[type="email"], select {
  width: 100%; padding: 0.75rem 0.9rem; font-size: 1rem; border: 1.5px solid var(--ps-input-border);
  border-radius: 4px; margin-bottom: 1rem; font-family: inherit; color: var(--ps-dark); background: var(--ps-white);
}
input[type="text"]::placeholder, input[type="email"]::placeholder { color: var(--ps-input-placeholder); }
input[type="text"]:focus, input[type="email"]:focus, select:focus { outline: none; border-color: var(--ps-primary-blue); box-shadow: var(--ps-shadow-focus); }

textarea { width: 100%; padding: 0.75rem 0.9rem; font-size: 0.95rem; border: 1.5px solid var(--ps-input-border); border-radius: 4px; margin-bottom: 1rem; font-family: inherit; color: var(--ps-dark); background: var(--ps-white); resize: vertical; }
textarea::placeholder { color: var(--ps-input-placeholder); }
textarea:focus { outline: none; border-color: var(--ps-primary-blue); box-shadow: var(--ps-shadow-focus); }

button, .btn { display: inline-block; background: var(--ps-primary-blue); color: var(--ps-white); border: none; padding: 0.75rem 1.5rem; font-size: 0.9375rem; line-height: 1.125rem; letter-spacing: 0.05em; font-weight: 700; border-radius: 4px; cursor: pointer; text-decoration: none; font-family: inherit; box-shadow: var(--ps-shadow-xs); }
button:hover, .btn:hover { background: var(--ps-primary-blue-dark); }
button:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.note { font-size: 0.8125rem; line-height: 1.125rem; color: var(--ps-text-muted); margin-top: 1.5rem; max-width: 640px; }

.error-box { background: var(--ps-status-danger-bg); border: 1px solid var(--ps-status-danger); color: var(--ps-status-danger); padding: 0.75rem 1rem; border-radius: 4px; font-size: 0.9375rem; }

footer.page-footer { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--ps-border-subtle); color: var(--ps-text-muted); font-size: 0.8125rem; }

.holding-screen { text-align: center; padding: 3rem 1.5rem; }
.holding-screen .pulse { width: 64px; height: 64px; border-radius: 50%; background: var(--ps-bg-subtle); color: var(--ps-primary-blue); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.6rem; }
.holding-screen h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.holding-screen p { color: var(--ps-text-muted); }
.holding-screen .seal { width: 4rem; height: 4rem; border-radius: 50%; background: var(--ps-status-success); color: var(--ps-white); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.6rem; font-weight: 700; }

/* --- Feedback form additions --- */

.field-block { margin-bottom: 1.75rem; }
.field-block:last-child { margin-bottom: 0; }
.field-hint { font-weight: 400; font-size: 0.8125rem; color: var(--ps-text-muted); margin: -0.35rem 0 0.75rem; }
.required-mark { color: var(--ps-status-danger); font-weight: 700; }

.scale-block { display: inline-flex; flex-direction: column; max-width: 100%; }
.scale-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.35rem; }
.scale-opt { flex: 0 0 auto; }
.scale-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale-opt label {
  display: flex; align-items: center; justify-content: center;
  min-width: 2.75rem; height: 2.75rem; padding: 0 0.5rem;
  border: 1.5px solid var(--ps-input-border); border-radius: 999px;
  font-weight: 700; font-size: 0.9375rem; color: var(--ps-dark);
  background: var(--ps-white); cursor: pointer; margin: 0;
}
.scale-opt input:checked + label { background: var(--ps-primary-blue); border-color: var(--ps-primary-blue); color: var(--ps-white); }
.scale-opt input:focus-visible + label { box-shadow: var(--ps-shadow-focus); }
.scale-labels { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.75rem; color: var(--ps-text-muted); }

.toggle-row { display: flex; gap: 0.75rem; margin-bottom: 0.25rem; }
.toggle-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-opt label {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.5rem; border: 1.5px solid var(--ps-input-border); border-radius: 4px;
  font-weight: 700; font-size: 0.9375rem; color: var(--ps-dark); background: var(--ps-white); cursor: pointer; margin: 0;
}
.toggle-opt input:checked + label { background: var(--ps-primary-blue); border-color: var(--ps-primary-blue); color: var(--ps-white); }
.toggle-opt input:focus-visible + label { box-shadow: var(--ps-shadow-focus); }

.matrix-table { width: 100%; border-collapse: collapse; }
.matrix-table tr { border-bottom: 1px solid var(--ps-border-subtle); }
.matrix-table tr:last-child { border-bottom: none; }
.matrix-table td { padding: 0.75rem 0; vertical-align: middle; }
.matrix-table td.matrix-label { font-weight: 700; font-size: 0.9375rem; padding-right: 1rem; width: 38%; }
@media (max-width: 560px) {
  .matrix-table, .matrix-table tbody, .matrix-table tr, .matrix-table td { display: block; width: 100%; }
  .matrix-table td.matrix-label { padding: 0.75rem 0 0.25rem; }
  .matrix-table td.matrix-control { padding-bottom: 0.75rem; }
}

.matrix-options { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.matrix-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.matrix-opt label {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.45rem 0.75rem; border: 1.5px solid var(--ps-input-border); border-radius: 999px;
  font-weight: 600; font-size: 0.8125rem; color: var(--ps-dark); background: var(--ps-white);
  cursor: pointer; margin: 0; white-space: nowrap;
}
.matrix-opt input:checked + label { background: var(--ps-primary-blue); border-color: var(--ps-primary-blue); color: var(--ps-white); }
.matrix-opt input:focus-visible + label { box-shadow: var(--ps-shadow-focus); }

.context-fields { margin: 1.5rem 0 0.5rem; padding-top: 1rem; border-top: 1px dashed var(--ps-border-subtle); opacity: 0.7; }
.context-fields-note { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ps-text-muted); margin: 0 0 0.5rem; }
.context-fields-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.context-field-label { display: block; font-size: 0.6875rem; font-weight: 400; color: var(--ps-text-muted); margin-bottom: 0.2rem; }
.context-fields-grid input[readonly] {
  background: transparent; color: var(--ps-text-muted); border: none; border-bottom: 1px dashed var(--ps-border-default);
  border-radius: 0; cursor: default; margin-bottom: 0; padding: 0.2rem 0; font-size: 0.8125rem;
}
.context-fields-grid input[readonly]:focus { outline: none; box-shadow: none; }
@media (max-width: 640px) {
  .context-fields-grid { grid-template-columns: 1fr; }
}

.progress-note { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.progress-note .brand-mark { width: 20px; height: 20px; }
