/**
 * galv-ari.css — Admissions Readiness Score (ARI) form skin.
 * Ported VERBATIM from Subash's ari_v3_subash_2026-06-30.html <style> block
 * (design tokens lifted 1:1 from bricks_form_mockup_v4_subash_2026-05-20).
 * Transform (scripted, declarations untouched): every selector scoped under
 * .galv-ari-root; :root tokens moved onto .galv-ari-root; keyframes
 * shake/spin -> galvari-shake/galvari-spin; review-only scaffolding dropped.
 * Fonts: NOT enqueued here — Inter/Poppins are self-hosted sitewide by
 * galvanize-core (the site strips fonts.googleapis.com).
 */

.galv-ari-root {
  --bg-navy: #13217c;
  --bg-navy-deep: #13217c;
  --primary-blue: #3b5bff;
  --primary-blue-hover: #2a4adb;
  --primary-blue-active: #1f3bbf;
  --accent-blue: #e6ebff;
  --accent-blue-soft: #f1f4ff;
  --text-white: #fffdfe;
  --text-dark: #333333;
  --text-muted: #6b7280;
  --text-label: #333333;
  --border: #808080;
  --border-hover: #3b5bff;
  --border-focus: #3b5bff;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --success: #10b981;
  --magenta: #cc00cc;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-input: 10px;
  --radius-form: 16px;
  --radius-pill: 100px;
  --shadow-form: 0 20px 60px rgba(13, 23, 89, 0.18);
  --shadow-card: 0 12px 40px rgba(19, 33, 124, 0.10);
  --shadow-card-hover: 0 16px 48px rgba(19, 33, 124, 0.16);
  --focus-ring: 0 0 0 4px rgba(59, 91, 255, 0.12);
  --transition-fast: 0.15s ease;
  --transition-med: 0.25s ease;
}
.galv-ari-root * { box-sizing: border-box; margin: 0; padding: 0; }
.galv-ari-root {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #f5f5f7;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.galv-ari-root .fieldrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.galv-ari-root .fieldrow.single { grid-template-columns: 1fr; }
.galv-ari-root .field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.galv-ari-root .field label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-label);
  letter-spacing: 0.01em;
}
.galv-ari-root .field label .req { color: var(--error); margin-left: 2px; }
.galv-ari-root .field label .optional { color: var(--text-muted); font-weight: 400; margin-left: 2px; font-size: 11px; }
.galv-ari-root .field input, .galv-ari-root .field select, .galv-ari-root .field textarea {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  background: #fff;
  color: var(--text-dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  width: 100%;
}
.galv-ari-root .field input::placeholder, .galv-ari-root .field textarea::placeholder {
  color: #aab0bd;
  font-weight: 400;
}
.galv-ari-root .field input:hover, .galv-ari-root .field select:hover, .galv-ari-root .field textarea:hover { border-color: var(--border-hover); }
.galv-ari-root .field input:focus, .galv-ari-root .field select:focus, .galv-ari-root .field textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  background-color: #fdfdff;
}
.galv-ari-root .field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23333333' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.galv-ari-root .field.error input, .galv-ari-root .field.error select, .galv-ari-root .field.error .multiselect-trigger {
  border-color: var(--error);
  background-color: var(--error-bg);
}
.galv-ari-root .field.error .errmsg {
  font-size: 12px;
  color: var(--error);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.galv-ari-root .field.error .errmsg::before { content: "⚠"; }
@keyframes galvari-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.galv-ari-root form.has-errors { animation: galvari-shake 0.4s ease-in-out; }
.galv-ari-root .ari-wrapper .field label { font-size: 16px; }
.galv-ari-root .ari-wrapper .field input, .galv-ari-root .ari-wrapper .field select { font-size: 16px; }
.galv-ari-root .ari-wrapper .field input::placeholder { font-size: 16px; }
/* Subash ARI feedback v1 (2026-07-06) #2 + #4 — standardise every control (native selects, text
   inputs, and the destinations multiselect button) to a uniform 44px height across the assessment
   AND identity forms; neutralise the shorthand's vertical padding so height is exact (box-sizing
   is border-box; horizontal padding + flex/native centring keep the text centred). */
.galv-ari-root .ari-wrapper .field input,
.galv-ari-root .ari-wrapper .field select,
.galv-ari-root .ari-wrapper .multiselect-trigger { height: 44px; padding-top: 0; padding-bottom: 0; }
.galv-ari-root .btn-submit {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-input);
  background: var(--primary-blue);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}
.galv-ari-root .btn-submit:hover {
  background: var(--bg-navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(19, 33, 124, 0.32);
}
.galv-ari-root .btn-submit:active {
  background: var(--bg-navy);
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(19, 33, 124, 0.20);
}
.galv-ari-root .btn-submit:disabled, .galv-ari-root .btn-submit.loading {
  background: #9aa3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.galv-ari-root .btn-submit.loading .btn-text { opacity: 0; }
.galv-ari-root .btn-submit.loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: galvari-spin 0.7s linear infinite;
}
@keyframes galvari-spin { to { transform: rotate(360deg); } }
.galv-ari-root .btn-secondary {
  padding: 14px 24px;
  background: transparent;
  color: var(--primary-blue);
  border: 1.5px solid var(--primary-blue);
  border-radius: var(--radius-input);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.galv-ari-root .btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--text-white);
  border-color: var(--primary-blue);
}
.galv-ari-root .multiselect {
  position: relative;
  width: 100%;
}
.galv-ari-root .multiselect-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  padding: 12px 40px 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  background: #fff
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23333333' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    no-repeat right 16px center;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  line-height: 1.3;
}
.galv-ari-root .multiselect-trigger:hover { border-color: var(--border-hover); }
.galv-ari-root .multiselect-trigger:focus {
  outline: none;
  border-color: var(--border-focus);
  background-color: #fdfdff;
}
.galv-ari-root .multiselect.is-open .multiselect-trigger {
  border-color: var(--border-focus);
  background-color: #fdfdff;
}
.galv-ari-root .multiselect-trigger-text.is-placeholder { color: #aab0bd; }
.galv-ari-root .multiselect-trigger-count {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-blue);
  background: var(--accent-blue);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.galv-ari-root .multiselect-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(20, 30, 80, 0.12);
  max-height: 280px;
  overflow-y: auto;
}
.galv-ari-root .multiselect.is-open .multiselect-panel { display: flex; }
.galv-ari-root .multiselect-group-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 10px 2px;
}
.galv-ari-root .multiselect-group-label:first-child { padding-top: 2px; }
.galv-ari-root .multiselect-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-size: 14px;
  color: var(--text-dark);
}
.galv-ari-root .multiselect-option:hover { background: var(--accent-blue-soft); }
.galv-ari-root .multiselect-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-blue);
  flex-shrink: 0;
  margin: 0;
}
.galv-ari-root .multiselect-option-label {
  flex: 1;
  font-weight: 500;
  line-height: 1.35;
}
.galv-ari-root .multiselect-option:has(input:checked) {
  background: var(--accent-blue);
  border-color: var(--primary-blue);
}
.galv-ari-root .multiselect-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}
.galv-ari-root .dest-other-input {
  margin-top: 10px;
  display: none;
}
.galv-ari-root .dest-other-input.is-visible { display: block; }
.galv-ari-root .ari-section {
  background: linear-gradient(180deg, var(--bg-navy) 0%, var(--bg-navy-deep) 100%);
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}
.galv-ari-root .ari-section::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(59, 91, 255, 0.30) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.galv-ari-root .ari-wrapper {
  max-width: 560px;
  margin: 0 auto;
  background: var(--accent-blue);
  border-radius: 20px;
  padding: 24px 24px;
  box-shadow: var(--shadow-form);
  position: relative;
  z-index: 1;
}
.galv-ari-root .ari-step-header { margin-bottom: 28px; }
.galv-ari-root .ari-step-header h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 36px;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 8px;
}
.galv-ari-root .ari-step-header p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
.galv-ari-root .ari-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}
.galv-ari-root .ari-stepper-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(59, 91, 255, 0.20);
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.galv-ari-root .ari-stepper-dot.is-active {
  background: var(--primary-blue);
  transform: scale(1.15);
}
.galv-ari-root .ari-stepper-dot.is-complete {
  background: var(--primary-blue);
}
.galv-ari-root .ari-stepper-text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-left: 6px;
}
.galv-ari-root .ari-step { display: none; }
.galv-ari-root .ari-step.active { display: block; }
.galv-ari-root .ari-nav {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  padding-top: 0;
}
.galv-ari-root .ari-nav .btn-submit { flex: 1; width: auto; }
.galv-ari-root .ari-nav .btn-secondary { flex: 0 0 auto; }
.galv-ari-root .ari-nav:has(.btn-secondary) { justify-content: space-between; gap: 24px; }
.galv-ari-root .ari-nav:has(.btn-secondary) .btn-secondary { flex: 0 0 auto; min-width: 100px; }
.galv-ari-root .ari-nav:has(.btn-secondary) .btn-submit { flex: 0 0 auto; width: auto; min-width: 260px; }
.galv-ari-root .ari-result-section {
  background: linear-gradient(180deg, var(--bg-navy) 0%, var(--bg-navy-deep) 100%);
  padding: 64px 24px;
}
.galv-ari-root .ari-result-card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 24px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.galv-ari-root .ari-result-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.30);
}
.galv-ari-root .ari-result-icon svg { width: 36px; height: 36px; }
.galv-ari-root .ari-result-card h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 36px;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 14px;
}
.galv-ari-root .ari-result-card p.narrative {
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 28px;
  text-align: left;
}
.galv-ari-root .ari-result-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.galv-ari-root .ari-result-ctas .btn-submit { width: 100%; }
.galv-ari-root .ari-result-ctas .btn-secondary { width: 100%; text-align: center; }
.galv-ari-root .ari-result-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 32px 0 24px;
}
.galv-ari-root .ari-result-unlock {
  background: var(--accent-blue-soft);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
}
.galv-ari-root .ari-result-unlock h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 6px;
}
.galv-ari-root .ari-result-unlock p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}
/* Subash ARI feedback v1 (2026-07-06) #3 — this button sits in a text-align:left container and,
   unlike its .ari-result-ctas sibling, had no text-align, so its label rendered left. Centre it. */
.galv-ari-root .ari-result-unlock .btn-secondary { width: 100%; text-align: center; }
.galv-ari-root .ari-bucket-hidden-note {
  margin-top: 20px;
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.6;
}
.galv-ari-root .framing-line {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}
@media (max-width: 640px) {
  .galv-ari-root .ari-section, .galv-ari-root .ari-result-section { padding: 40px 16px; }
  .galv-ari-root .ari-wrapper, .galv-ari-root .ari-result-card { padding: 28px 22px; }
  .galv-ari-root .ari-step-header h3 { font-size: 22px; line-height: 30px; }
  .galv-ari-root .fieldrow { grid-template-columns: 1fr; }
  .galv-ari-root .ari-nav { flex-direction: column-reverse; }
  .galv-ari-root .ari-nav .btn-secondary, .galv-ari-root .ari-nav .btn-submit { width: 100%; }
}
