:root {
  --gov-blue: #0b3d6d;
  --gov-blue-dark: #072b4d;
  --gov-blue-soft: #dfe8f2;
  --gov-border: #b8c6d3;
  --gov-bg: #eef3f7;
  --gov-card: #ffffff;
  --gov-warning: #fff6bf;
  --gov-warning-border: #d6c36a;
  --gov-error: #9b1c1c;
  --gov-success: #2f6b2f;
  --gov-text: #1f2933;
  --gov-muted: #5b6670;
  --gov-link: #003a70;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--gov-bg);
  color: var(--gov-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

html {
  scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

a {
  color: var(--gov-link);
  text-decoration: underline;
}

button,
input,
textarea,
select {
  font: 13px Arial, Helvetica, sans-serif;
}

.topbar {
  padding: 7px 18px;
  background: var(--gov-blue-dark);
  color: #fff;
  font-size: 12px;
}

.header {
  background: var(--gov-blue);
  color: #fff;
  border-bottom: 3px solid #294f78;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0;
}

.header__title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.header__title p {
  margin: 0;
  font-size: 10px;
  opacity: 0.78;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-lockup--link {
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.brand-lockup--link:hover h1 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: #06233f;
  box-shadow: inset 0 -9px 0 rgba(217, 178, 95, 0.22);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.brand-mark span + span {
  color: #f0c76f;
  margin-top: 1px;
}

.header__purpose {
  margin-top: 6px !important;
}

.header__meta {
  min-width: 280px;
  text-align: right;
  font-size: 12px;
}

.header__meta .line {
  margin-bottom: 4px;
}

.language-switcher {
  position: relative;
  z-index: 20;
}

.language-menu {
  position: relative;
  display: inline-block;
}

.language-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  content: "";
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.language-menu[open] summary::after {
  transform: rotate(180deg);
}

.language-menu__label {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.language-menu__current {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.language-menu__flag {
  font-size: 14px;
  line-height: 1;
}

.language-menu__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  width: 238px;
  padding: 6px;
  border: 1px solid #9fb3c8;
  background: #fff;
  box-shadow: 0 8px 20px rgba(7, 43, 77, 0.18);
  text-align: left;
}

.language-menu__item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  width: 100%;
  min-height: 31px;
  padding: 7px 8px;
  border: 0;
  background: #fff;
  color: #25394b;
  font: 12px/1.2 Arial, Helvetica, sans-serif;
  text-align: left;
}

.language-menu__item.is-active {
  background: #edf4fb;
  color: #12324c;
  font-weight: 700;
}

.language-menu__item:disabled {
  color: #7b8791;
  cursor: default;
  opacity: 0.72;
}

.language-menu__item small {
  color: #7b8791;
  font-size: 10px;
}

.header__meta span {
  font-family: Arial, Helvetica, sans-serif;
}

.header__version {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
}

.header__guide-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid #d64b4b;
}

.header__guide-link {
  display: inline-block;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.header__guide-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 28px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid var(--gov-border);
  background: #fff;
}

.toolbar__left,
.toolbar__right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.toolbar__right {
  margin-left: auto;
}

.tab-btn,
.btn,
.primary-button,
.secondary-button,
.ghost-button {
  appearance: none;
  padding: 8px 12px;
  border: 1px solid #7d91a5;
  border-radius: 2px;
  background: linear-gradient(#f6f8fa, #dde7f0);
  color: #102a43;
  font: 600 12px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.tab-btn.active,
.btn.primary,
.primary-button {
  background: linear-gradient(#d8e6f4, #bcd2e7);
  border-color: #58799c;
}

.tab-btn:disabled,
.btn:disabled,
.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

body.is-welcome .toolbar,
body.is-welcome .sidebar,
body.is-welcome .main > .hd,
body.is-welcome .notice--static {
  display: none;
}

body.is-welcome .layout {
  display: block;
}

body.is-welcome .main {
  border-color: #aebfd0;
}

.panel {
  border: 1px solid var(--gov-border);
  background: #fff;
}

.guide-page {
  background:
    linear-gradient(180deg, #eef3f7 0, #eef3f7 220px, #f7fafc 220px, #f7fafc 100%);
}

.guide-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 22px auto 42px;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.guide-hero > div,
.guide-alert,
.guide-card {
  border: 1px solid var(--gov-border);
  background: #fff;
}

.guide-hero > div {
  padding: 26px 28px;
}

.guide-kicker {
  margin: 0 0 10px;
  color: #52616f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.guide-hero h1 {
  margin: 0 0 12px;
  color: #0b3157;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
}

.guide-hero p,
.guide-card p,
.guide-steps,
.guide-addresses {
  color: #293948;
  font-size: 15px;
  line-height: 1.55;
}

.guide-alert {
  padding: 20px;
  border-top: 4px solid #d3a52e;
}

.guide-alert strong {
  display: block;
  margin-bottom: 8px;
  color: #7c5a00;
  font-size: 15px;
}

.niv-stat-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #b8c8d6;
  border-left: 4px solid #315f7c;
  background: #f7fafc;
}

.niv-stat-card__value {
  display: grid;
  place-items: center;
  min-width: 104px;
  min-height: 78px;
  border: 1px solid #cbd9e5;
  background: #fff;
  color: #12324c;
}

.niv-stat-card__value strong {
  font-size: 30px;
  line-height: 1;
}

.niv-stat-card__value span {
  color: #5b6670;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.niv-stat-card__body {
  display: grid;
  gap: 5px;
}

.niv-stat-card__body strong {
  color: #12324c;
  font-size: 15px;
}

.niv-stat-card__body p {
  margin: 0;
  color: #33495c;
  font-size: 13px;
  line-height: 1.45;
}

.niv-stat-card__source {
  color: #617181;
  font-size: 11px;
  line-height: 1.35;
}

.niv-stat-card__source a {
  color: #0b4a82;
}

.guide-card {
  margin-bottom: 18px;
  padding: 22px 24px;
}

.guide-section-title {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.guide-section-title span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  border: 1px solid #aac0d5;
  background: #edf3f8;
  color: #12324c;
  font-weight: 800;
}

.guide-section-title h2 {
  margin: 0;
  color: #12324c;
  font-size: 22px;
  line-height: 1.2;
}

.guide-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
}

.guide-steps li {
  padding-left: 4px;
}

.guide-steps strong,
.guide-addresses strong {
  color: #102a43;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guide-grid .guide-card {
  margin-bottom: 0;
}

.guide-addresses {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 19px;
}

.guide-addresses strong {
  display: block;
  margin-bottom: 2px;
}

.visa-fee-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 20px;
  align-items: start;
}

.guide-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.guide-source-links a {
  display: inline-block;
  padding: 6px 8px;
  border: 1px solid #aac0d5;
  background: #edf3f8;
  color: #12324c;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.guide-source-links a:hover {
  text-decoration: underline;
}

.visa-fee-calculator {
  border: 1px solid #aac0d5;
  background: #f7fafc;
}

.visa-fee-total {
  padding: 14px 16px;
  border-bottom: 1px solid #aac0d5;
  background: #edf3f8;
}

.visa-fee-total span {
  display: block;
  margin-bottom: 4px;
  color: #52616f;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.visa-fee-total strong {
  color: #0b3157;
  font-size: 30px;
  line-height: 1;
}

.visa-fee-rates {
  display: grid;
  gap: 0;
  margin: 0;
}

.visa-fee-rates div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #d6e1eb;
}

.visa-fee-rates dt {
  color: #52616f;
  font-weight: 700;
}

.visa-fee-rates dd {
  margin: 0;
  color: #102a43;
  font-weight: 800;
  text-align: right;
}

.visa-fee-note {
  margin: 0;
  padding: 12px 16px 6px;
  color: #52616f !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.visa-fee-attribution {
  display: inline-block;
  margin: 0 16px 14px;
  color: #52616f;
  font-size: 11px;
}

.guide-source {
  margin-top: 18px;
}

.sidebar .hd,
.help .hd,
.main .hd {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gov-border);
  background: #edf3f8;
  color: #12324c;
  font-weight: 700;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.timeline li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid #edf1f5;
  font-size: 12px;
}

.timeline li.is-active {
  background: #f5f9fd;
  font-weight: 700;
}

.timeline li.is-done {
  background: #fcfefe;
}

.status {
  white-space: nowrap;
  color: var(--gov-muted);
  font-size: 11px;
}

.timeline li.is-done .status {
  color: var(--gov-success);
  font-weight: 700;
}

.timeline li.is-active .status {
  color: #8a6d00;
  font-weight: 700;
}

.notice,
.status-banner {
  margin: 12px;
  padding: 10px 12px;
  border: 1px solid var(--gov-warning-border);
  background: var(--gov-warning);
  color: #4e4600;
}

.notice--static {
  margin-bottom: 0;
}

body.is-result .notice--static {
  display: none;
}

.status-banner[hidden] {
  display: none;
}

.status-banner.is-info {
  border-color: #c0cfdd;
  background: #eef4fb;
  color: #16344d;
}

.status-banner.is-success {
  border-color: #b9d2b9;
  background: #f4fbf4;
  color: #1d4d1d;
}

.status-banner.is-warning {
  border-color: var(--gov-warning-border);
  background: var(--gov-warning);
  color: #4e4600;
}

.status-banner.is-error {
  border-color: #d3b5b5;
  background: #fff4f4;
  color: var(--gov-error);
}

#appRoot {
  padding: 0 16px 16px;
}

.help-body {
  padding: 12px;
  font-size: 12px;
}

.help-card {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #dae3eb;
  background: #fafcfe;
}

.help-card h4 {
  margin: 0 0 6px;
  color: #12324c;
  font-size: 12px;
}

.footer {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--gov-border);
  background: #fff;
  color: var(--gov-muted);
  font-size: 11px;
}

.screen {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.welcome-screen {
  min-height: auto;
  display: grid;
  gap: 16px;
  place-items: center;
  padding: 22px 18px 28px;
  background:
    linear-gradient(180deg, rgba(237, 243, 248, 0.84), rgba(255, 255, 255, 0.94)),
    repeating-linear-gradient(135deg, rgba(11, 61, 109, 0.04) 0 1px, transparent 1px 10px);
}

.welcome-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 22px 26px 24px;
  border: 1px solid #b8c6d3;
  background: #fff;
  text-align: left;
  box-shadow: 0 1px 0 rgba(7, 43, 77, 0.08);
}

.welcome-illustration {
  width: min(280px, 72%);
  height: auto;
  margin: 0 auto 12px;
  display: block;
}

.welcome-card h2 {
  margin: 0 0 6px;
  color: #12324c;
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
}

.welcome-card p {
  max-width: 680px;
  margin: 0 auto 8px;
  color: #334352;
  font-size: 13px;
  line-height: 1.42;
}

.welcome-warning {
  color: #7a1d1d !important;
  font-weight: 700;
  text-align: center;
}

.welcome-copy {
  max-width: 680px;
  margin: 10px auto 0;
  padding: 12px 14px 10px;
  border: 1px solid #d7e1ea;
  background: #f8fbfd;
}

.welcome-copy p:last-child {
  margin-bottom: 0;
}

.welcome-english {
  padding-top: 8px;
  border-top: 1px solid #d7e1ea;
  color: #12324c !important;
  font-size: 12px !important;
  font-weight: 700;
}

.welcome-data-note {
  color: #526271 !important;
  font-size: 12px !important;
}

.welcome-legal-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 680px;
  margin: 10px auto 0;
  padding: 10px 12px;
  border: 1px solid #d7e1ea;
  background: #fff;
  color: #263646;
  font-size: 12px;
  line-height: 1.45;
}

.welcome-legal-consent input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.welcome-legal-consent a {
  color: #0b3d6d;
  font-weight: 700;
}

.welcome-access {
  display: grid;
  gap: 12px;
  max-width: 680px;
  margin: 12px auto 0;
  padding: 14px;
  border: 1px solid #cbd9e5;
  background: #f8fbfd;
}

.welcome-access[hidden] {
  display: none;
}

.welcome-access__copy {
  display: grid;
  gap: 4px;
  text-align: center;
}

.welcome-access__copy strong {
  color: #12324c;
  font-size: 14px;
}

.welcome-access__copy span,
.welcome-access__message {
  color: #526271;
  font-size: 12px;
}

.welcome-access__row {
  display: grid;
  grid-template-columns: minmax(0, 140px) auto;
  justify-content: center;
  gap: 8px;
}

.welcome-access__row input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #b8c6d3;
  background: #fff;
  color: #12283c;
  font: 700 18px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-align: center;
}

.welcome-access__row .secondary-button {
  min-height: 38px;
  padding: 9px 14px;
}

.welcome-access__message {
  min-height: 18px;
  text-align: center;
}

.welcome-captcha {
  display: grid;
  justify-content: center;
  max-width: 680px;
  margin: 10px auto 0;
  min-height: 0;
}

.welcome-captcha:empty {
  display: none;
}

.welcome-captcha-note {
  padding: 9px 12px;
  border: 1px solid #d7e1ea;
  background: #f8fbfd;
  color: #526271;
  font-size: 12px;
  text-align: center;
}

.welcome-captcha-note.is-error {
  border-color: #d8a6a6;
  background: #fff7f7;
  color: #7a1d1d;
}

.welcome-card .primary-button {
  display: block;
  min-width: 190px;
  margin: 12px auto 0;
  padding: 11px 18px;
  font-size: 14px;
}

.screen__headline {
  padding-bottom: 2px;
}

.screen__headline h2 {
  margin: 0 0 4px;
  color: #12324c;
  font-size: 20px;
}

.screen__headline p {
  margin: 0;
  color: var(--gov-muted);
  font-size: 12px;
}

.interview-consulate {
  overflow: hidden;
  border: 1px solid #b8c6d3;
  background: linear-gradient(#f8fbfd, #edf4fa);
}

.interview-consulate svg {
  display: block;
  width: 100%;
  height: min(260px, 32vw);
  min-height: 190px;
}

.consulate-sky {
  fill: #e9f3fb;
}

.consulate-ground {
  fill: #cbd7e1;
}

.consulate-flagpole {
  stroke: #425466;
  stroke-width: 5;
}

.consulate-flag--red {
  fill: #b42318;
}

.consulate-flag--white {
  fill: #ffffff;
}

.consulate-flag--blue {
  fill: #173e6b;
}

.consulate-flag-outline {
  fill: #fff;
  stroke: #21384d;
  stroke-width: 2;
}

.consulate-stars circle {
  fill: #fff;
}

.consulate-finial {
  fill: #d9b25f;
  stroke: #5b6673;
  stroke-width: 2;
}

.consulate-base {
  fill: #d9e1e8;
  stroke: #8ea2b5;
  stroke-width: 3;
}

.consulate-building {
  fill: #f7fafc;
  stroke: #8ea2b5;
  stroke-width: 3;
}

.consulate-roof {
  fill: #d6dde4;
  stroke: #687d91;
  stroke-width: 4;
}

.consulate-roof-line {
  stroke: #8293a2;
  stroke-width: 3;
}

.consulate-frieze {
  fill: #e7edf3;
}

.consulate-columns rect {
  fill: #ffffff;
  stroke: #9aacbc;
  stroke-width: 2;
}

.consulate-windows rect {
  fill: #b9d4ea;
  stroke: #6e879d;
  stroke-width: 2;
}

.consulate-door {
  fill: #153a5c;
}

.consulate-seal {
  fill: #d9b25f;
  stroke: #8a6d00;
  stroke-width: 3;
}

.consulate-path {
  fill: #dde6ee;
}

.consulate-shrub {
  fill: #66865d;
}

.consulate-step {
  fill: #b9c8d4;
  stroke: #7e95a8;
  stroke-width: 2;
}

.consulate-shadow {
  fill: rgba(13, 36, 56, 0.12);
}

.summary-card,
.consent-card,
.question-card,
.result-card,
.interview-card {
  border: 1px solid #d7e1ea;
  background: #fff;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #dbe4ec;
  border-left: 1px solid #dbe4ec;
}

.metric {
  min-height: 64px;
  padding: 10px 12px;
  border-right: 1px solid #dbe4ec;
  border-bottom: 1px solid #dbe4ec;
  background: #fff;
}

.metric__label {
  display: block;
  margin-bottom: 5px;
  color: var(--gov-muted);
  font-size: 11px;
}

.metric__value {
  color: #12324c;
  font-size: 13px;
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 1px solid #cfdbe7;
  background: #f7fafc;
}

.progress-bar__fill {
  height: 100%;
  background: #89a9c7;
}

.question-list {
  display: grid;
  gap: 12px;
}

.interview-booth {
  position: relative;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 0;
  min-height: 164px;
  overflow: hidden;
  border: 1px solid #b8c6d3;
  background: #ffffff;
}

.interview-booth::after {
  content: none;
}

.officer-pane {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 14px 12px 12px;
  border-right: 1px solid #d4e0ea;
  background: #edf3f8;
}

.officer-avatar {
  width: 124px;
  height: 124px;
  image-rendering: auto;
  border: 1px solid #9fb3c8;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45);
}

.officer-pane__meta {
  display: grid;
  gap: 2px;
  text-align: center;
  color: #12324c;
  font-size: 11px;
}

.officer-pane__meta strong {
  font-size: 13px;
}

.officer-pane__kicker {
  color: var(--gov-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 9px;
}

.officer-question {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px 24px;
}

.officer-question span {
  color: var(--gov-muted);
  font-size: 11px;
}

.officer-question h3 {
  max-width: 620px;
  margin: 0;
  color: #12324c;
  font-size: 22px;
  line-height: 1.25;
}

.question-card,
.interview-card {
  padding: 0;
}

.question-card__header {
  padding: 10px 12px;
  border-bottom: 1px solid #dbe4ec;
  background: #f9fbfd;
}

.question-card__title {
  margin: 0;
  color: #12324c;
  font-size: 14px;
  font-weight: 700;
}

.question-emphasis {
  font-weight: 800;
}

.question-emphasis--danger {
  color: #8a1f17;
}

.question-card__help {
  margin-top: 4px;
  color: var(--gov-muted);
  font-size: 11px;
}

.question-card__multi-alert {
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin-top: 7px;
  padding: 5px 9px;
  border: 1px solid #b42318;
  background: #fff1ed;
  color: #7f1d1d;
  font-size: 12px;
  font-weight: 700;
}

.question-card__multi-alert strong {
  color: #b42318;
  text-transform: uppercase;
}

.option-grid {
  display: grid;
}

.option-card {
  position: relative;
  width: 100%;
  padding: 10px 12px 10px 38px;
  border: 0;
  border-top: 1px solid #e4ebf1;
  background: #fff;
  text-align: left;
  font: 13px/1.45 Arial, Helvetica, sans-serif;
  color: var(--gov-text);
}

.option-card:hover {
  background: #f7fbff;
}

.option-card:disabled {
  cursor: not-allowed;
}

.option-card.is-disabled {
  color: #536678;
}

.option-card.is-disabled:hover {
  background: #fff;
}

.option-card::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 14px;
  width: 12px;
  height: 12px;
  border: 1px solid #7f95a9;
  border-radius: 50%;
  background: #fff;
}

.option-card.is-selected {
  background: #edf4fb;
}

.option-card.is-selected::before {
  background:
    radial-gradient(circle, #234f79 0 45%, transparent 46% 100%),
    #fff;
}

.question-card[data-question-type="multi_choice"] .option-card::before {
  border-radius: 2px;
}

.question-card[data-question-type="multi_choice"] .option-card.is-selected::before {
  border-color: #1f5f8b;
  background: #1f5f8b;
}

.question-card[data-question-type="multi_choice"] .option-card.is-selected::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 18px;
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.option-card__title {
  display: block;
  font-weight: 700;
}

.option-card__legal-star {
  color: #b42318;
  font-weight: 900;
}

.option-card__desc {
  display: block;
  margin-top: 3px;
  color: var(--gov-muted);
  font-size: 11px;
}

.question-card__legal-note {
  margin: 8px 12px 10px;
  padding: 7px 9px;
  border: 1px solid #ead7d7;
  background: #fffafa;
  color: #7f1d1d;
  font-size: 10px;
  line-height: 1.35;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px 0;
}

.pill {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid #cbd7e3;
  background: #f7fafc;
  color: #23425d;
  font-size: 11px;
}

.muted {
  color: var(--gov-muted);
}

.consent-card {
  padding: 12px;
}

.interview-ready-panel {
  padding: 14px 16px;
  border: 1px solid #d7e1ea;
  background: #fff;
}

.interview-ready-panel p {
  margin: 0;
  font-size: 13px;
}

.result-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 8px;
  border: 1px solid #cfdbe7;
  background: #eef4fb;
  color: #12324c;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.result-badge.is-approved {
  border-color: #b9d2b9;
  background: #f4fbf4;
  color: #1d4d1d;
}

.result-badge.is-review {
  border-color: var(--gov-warning-border);
  background: var(--gov-warning);
  color: #5c5300;
}

.result-badge.is-rejected {
  border-color: #d3b5b5;
  background: #fff4f4;
  color: var(--gov-error);
}

.result-report {
  display: grid;
  gap: 10px;
}

.result-hero,
.result-panel,
.result-metric {
  border: 1px solid #cbd9e5;
  background: #fff;
}

.result-hero {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-top: 4px solid #2f6b2f;
}

.result-hero.is-warning {
  border-top-color: #c59f18;
}

.result-hero.is-risk {
  border-top-color: #9b1c1c;
}

.result-hero__text {
  display: grid;
  gap: 12px;
  align-content: center;
}

.result-hero__text h3 {
  margin: 0;
  color: #12324c;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.05;
}

.result-hero.is-positive .result-hero__text h3 {
  color: #1d5e2e;
}

.result-hero.is-warning .result-hero__text h3 {
  color: #7a6200;
}

.result-hero.is-risk .result-hero__text h3 {
  color: #9b1c1c;
}

.result-hero__officer {
  display: grid;
  justify-items: center;
  gap: 9px;
  align-self: stretch;
  align-content: center;
  min-width: 0;
  padding-right: 12px;
  border-right: 1px solid #dbe4ec;
}

.result-officer-avatar {
  display: block;
  width: 104px;
  height: 104px;
}

.result-hero__officer div {
  display: grid;
  gap: 3px;
  max-width: 116px;
  text-align: center;
}

.result-hero__officer span {
  color: #5b6670;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.result-hero__officer strong {
  color: #12324c;
  font-size: 12px;
  line-height: 1.2;
}

.result-decision-label {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 11px 15px;
  background: #1d5e2e;
  color: #fff !important;
  font-size: 26px !important;
  line-height: 1.05 !important;
  text-transform: uppercase;
}

.result-hero.is-warning .result-decision-label {
  background: #8a6d00;
}

.result-hero.is-risk .result-decision-label {
  background: #9b1c1c;
}

.result-hero__text p {
  max-width: 700px;
  margin: 0;
  color: #34495d;
  font-size: 14px;
}

.result-hero__note {
  padding-top: 2px;
  font-weight: 700;
}

.result-hero__meter {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.case-gauge {
  --case-position: 79;
  position: relative;
  width: 220px;
  height: 126px;
  overflow: hidden;
}

.case-gauge::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background:
    conic-gradient(
      from 270deg,
      #b42318 0deg 63deg,
      #d8a812 63deg 117deg,
      #2f7d48 117deg 180deg,
      transparent 180deg 360deg
    );
}

.case-gauge::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: -72px;
  height: 152px;
  border-radius: 50% 50% 0 0;
  background: #fff;
  border: 1px solid #d9e3ec;
}

.case-gauge__needle {
  position: absolute;
  z-index: 2;
  left: calc(50% - 2px);
  bottom: 18px;
  width: 4px;
  height: 82px;
  border-radius: 4px;
  background: #12324c;
  transform-origin: 50% 100%;
  transform: rotate(calc((var(--case-position) * 1.8deg) - 90deg));
}

.case-gauge__needle::after {
  content: "";
  position: absolute;
  left: -5px;
  bottom: -6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #12324c;
}

.case-gauge__center {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  display: grid;
  gap: 2px;
  width: 150px;
  padding: 18px 8px 0;
  transform: translateX(-50%);
  text-align: center;
}

.case-gauge__center strong {
  color: #12324c;
  font-size: 24px;
  line-height: 1;
}

.case-gauge__center span {
  color: #5b6670;
  font-size: 11px;
}

.case-gauge__legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 220px;
  color: #5b6670;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.case-gauge__legend span:nth-child(2) {
  text-align: center;
}

.case-gauge__legend span:nth-child(3) {
  text-align: right;
}

.case-gauge__caption {
  margin: 2px 0 0;
  color: #566777;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.result-confidence {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #cbd9e5;
  background: #fff;
}

.result-confidence__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.result-confidence__header span {
  color: #34495d;
  font-size: 13px;
  font-weight: 700;
}

.result-confidence__header strong {
  color: #12324c;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.result-confidence__bar {
  height: 10px;
  overflow: hidden;
  border: 1px solid #cbd9e5;
  background: #eef4fb;
}

.result-confidence__bar div {
  height: 100%;
  background: #315f7c;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.result-metric {
  min-height: 82px;
  padding: 12px;
}

.result-metric span {
  display: block;
  margin-bottom: 8px;
  color: var(--gov-muted);
  font-size: 11px;
}

.result-metric strong {
  color: #12324c;
  font-size: 17px;
  line-height: 1.2;
}

.result-panel {
  padding: 0;
}

.result-panel__header {
  padding: 11px 14px;
  border-bottom: 1px solid #dbe4ec;
  background: #f7fafc;
}

.result-panel__header h3 {
  margin: 0;
  color: #12324c;
  font-size: 15px;
}

.result-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 10px 12px;
  list-style: none;
}

.result-list li {
  position: relative;
  min-height: 30px;
  padding: 7px 10px 7px 26px;
  border: 1px solid #dbe4ec;
  background: #fbfdff;
  color: #25394b;
}

.result-list li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6d8baa;
}

.result-panel--strengths .result-list li::before {
  background: #2f7d48;
}

.result-panel--focus .result-list li::before {
  background: #c59f18;
}

.result-panel--risks .result-list li::before {
  background: #c59f18;
}

.result-panel--attention .result-list li::before {
  background: #0f426b;
}

.result-panel--training .result-list li::before {
  background: #315f7c;
}

.result-panel--improvement .result-list li::before {
  background: #5d7155;
}

.locked-area {
  position: relative;
}

.locked-area--remaining {
  min-height: 102px;
}

.result-report[data-state="locked"] .locked-area {
  min-height: 156px;
  max-height: 176px;
  overflow: hidden;
}

.result-report[data-state="locked"] .result-panel--risks .locked-area {
  min-height: 156px;
  max-height: 176px;
}

.result-report[data-state="locked"] .locked-area--remaining {
  min-height: 156px;
  max-height: 176px;
}

.result-report[data-state="locked"] .locked-area--compact {
  min-height: 138px;
  max-height: 156px;
}

.is-blurred,
.is-locked-blur {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

.locked-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(245, 249, 252, 0.82);
  border-top: 1px solid rgba(203, 217, 229, 0.65);
  text-align: center;
}

.locked-overlay span {
  max-width: 420px;
  color: #12324c;
  font-weight: 700;
}

.locked-overlay--payment {
  align-content: center;
  gap: 10px;
}

.locked-overlay--payment small {
  max-width: 460px;
  color: #5b6670;
  font-size: 11px;
}

.pay-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 16px;
  border: 1px solid #58799c;
  background: linear-gradient(#e4eff8, #bfd6ec);
  color: #0f2f4b;
  font: 700 13px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.pay-button:hover {
  background: linear-gradient(#edf5fb, #c7ddef);
}

.pay-button--disabled,
.pay-button--disabled:hover {
  border-color: #c5d2de;
  background: #eef4f8;
  color: #526271;
  cursor: default;
}

.result-offer {
  padding: 26px 28px;
  border: 1px solid #cbd9e5;
  border-top: 4px solid #0f426b;
  background: #ffffff;
  text-align: center;
}

.result-offer__eyebrow {
  margin-bottom: 8px;
  color: #587089;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.result-offer h3 {
  margin: 0 0 18px;
  color: #12324c;
  font-size: 24px;
  line-height: 1.15;
}

.result-session-id {
  display: grid;
  gap: 6px;
  justify-items: center;
  margin: 0 auto 22px;
  padding: 18px 20px;
  border: 1px solid #d6e1eb;
  background: #f7fafc;
}

.result-session-id span {
  color: #5b6670;
  font-size: 12px;
  font-weight: 700;
}

.result-session-id strong {
  color: #0f2f4b;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
}

.result-offer__body {
  display: grid;
  gap: 10px;
  max-width: 780px;
  margin: 0 auto 22px;
  text-align: left;
}

.result-offer__body p {
  margin: 0;
  color: #25394b;
  font-size: 14px;
  line-height: 1.55;
}

.detail-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.detail-list li {
  margin-bottom: 6px;
  color: var(--gov-ink);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 2px;
}

.action-row--center {
  justify-content: center;
}

.action-row--questionnaire {
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

.interview-ready-button {
  width: min(100%, 420px);
  min-height: 78px;
  padding: 22px 30px;
  border-width: 2px;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0;
}

.small {
  font-size: 11px;
}

@media (max-width: 1060px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .guide-hero,
  .guide-grid,
  .visa-fee-layout {
    grid-template-columns: 1fr;
  }

  .result-hero {
    grid-template-columns: 118px minmax(0, 1fr) 230px;
  }

  .result-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header__inner {
    flex-direction: column;
  }

  .header__meta {
    min-width: auto;
    text-align: left;
  }

  .language-menu__panel {
    right: auto;
    left: 0;
  }
}

@media (max-width: 720px) {
  .wrap,
  .header__inner,
  .guide-shell {
    width: min(100% - 24px, 100%);
  }

  .guide-hero h1 {
    font-size: 27px;
  }

  .guide-hero > div,
  .guide-alert,
  .guide-card {
    padding: 16px;
  }

  .guide-section-title {
    align-items: flex-start;
  }

  .guide-section-title h2 {
    font-size: 20px;
  }

  .screen {
    padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }

  .action-row--questionnaire {
    gap: 10px;
    padding: 10px 0 calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .action-row--questionnaire .primary-button,
  .action-row--questionnaire .secondary-button {
    min-height: 48px;
    font-size: 14px;
  }

  .action-row--questionnaire .primary-button {
    flex: 1 1 170px;
  }

  .welcome-screen {
    min-height: auto;
    padding: 14px 10px 22px;
  }

  .welcome-card {
    padding: 18px 14px 20px;
  }

  .welcome-card h2 {
    font-size: 21px;
  }

  .welcome-card p {
    font-size: 12px;
    line-height: 1.38;
  }

  .welcome-illustration {
    width: min(230px, 78%);
    margin-bottom: 8px;
  }

  .interview-consulate svg {
    height: 200px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .niv-stat-card {
    grid-template-columns: 1fr;
  }

  .niv-stat-card__value {
    justify-items: start;
    place-items: center start;
    min-width: 0;
    padding: 12px;
  }

  .result-hero {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .result-hero__officer {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    align-content: center;
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid #dbe4ec;
  }

  .result-officer-avatar {
    width: 76px;
    height: 76px;
  }

  .result-hero__officer div {
    max-width: none;
    text-align: left;
  }

  .result-decision-label {
    width: 100%;
    font-size: 22px !important;
    overflow-wrap: anywhere;
  }

  .result-panel__header h3,
  .locked-overlay span {
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .result-report[data-state="locked"] .locked-area {
    min-height: 166px;
    max-height: 188px;
  }

  .result-report[data-state="locked"] .result-panel--risks .locked-area {
    min-height: 166px;
    max-height: 188px;
  }

  .result-report[data-state="locked"] .locked-area--compact {
    min-height: 148px;
    max-height: 168px;
  }

  .result-list {
    padding: 10px;
  }

  .result-list li {
    min-height: 32px;
    overflow-wrap: anywhere;
  }

  .result-hero__meter {
    justify-items: start;
  }

  .case-gauge {
    width: 190px;
    height: 112px;
  }

  .case-gauge::before {
    width: 190px;
    height: 190px;
  }

  .case-gauge::after {
    left: 30px;
    right: 30px;
    bottom: -62px;
    height: 132px;
  }

  .case-gauge__needle {
    height: 70px;
  }

  .case-gauge__center strong {
    font-size: 21px;
  }

  .case-gauge__legend {
    width: 190px;
  }

  .result-metrics {
    grid-template-columns: 1fr;
  }

  .locked-overlay {
    padding: 12px;
  }

  .interview-ready-button {
    width: 100%;
    min-height: 70px;
    font-size: 19px;
  }

  .interview-booth {
    grid-template-columns: 1fr;
  }

  .officer-pane {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid #d4e0ea;
  }

  .officer-avatar {
    width: 88px;
    height: 88px;
  }

  .officer-pane__meta {
    text-align: left;
  }

  .officer-question {
    padding: 16px;
  }

  .officer-question h3 {
    font-size: 18px;
  }

  .toolbar {
    padding: 10px;
  }

  .language-menu__panel {
    width: min(268px, calc(100vw - 24px));
  }
}
