:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17213c;
  background: #f3f6fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --content-width: 1080px;
  --form-width: 960px;
  --brand: #123c79;
  --brand-light: #2265b8;
  --text: #17213c;
  --muted: #5d687c;
  --border: #dce3ec;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: #f3f6fa;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at top left, rgb(39 110 241 / 9%), transparent 430px), #f3f6fa;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: #0e2f60;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #f5a623;
  outline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid #dfe5ed;
  background: rgb(255 255 255 / 94%);
}

.site-header__content {
  width: min(calc(100% - 32px), var(--content-width));
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand__symbol {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: var(--brand);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand__name,
.brand__description {
  display: block;
}

.brand__name {
  color: #14203f;
  font-size: 16px;
  font-weight: 750;
}

.brand__description {
  margin-top: 3px;
  color: #687387;
  font-size: 13px;
}

.security-label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #24633f;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.security-label__icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dff5e7;
}

.page {
  width: min(calc(100% - 32px), var(--form-width));
  margin-inline: auto;
  padding: 52px 0 64px;
}

.introduction {
  width: min(100%, 790px);
  margin: 0 auto 30px;
  text-align: center;
}

.introduction__eyebrow,
.form-section__step {
  margin: 0 0 10px;
  color: var(--brand-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.introduction h1 {
  max-width: 760px;
  margin: 0 auto;
  color: #111c3b;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.introduction__description {
  max-width: 680px;
  margin: 20px auto 0;
  color: #596579;
  font-size: 17px;
  line-height: 1.65;
}

.information-box {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid #cdddf3;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #edf5ff;
  text-align: left;
}

.information-box__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: #2467b7;
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
}

.information-box p {
  margin: 0;
  color: #314762;
  font-size: 14px;
  line-height: 1.55;
}

.form-section {
  scroll-margin-top: 20px;
}

.form-section__heading {
  padding: 0 4px 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.form-section__step {
  margin-bottom: 5px;
  font-size: 11px;
}

.form-section__heading h2 {
  margin: 0;
  color: #182443;
  font-size: 21px;
  line-height: 1.3;
}

.form-section__hint {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

.form-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 55px rgb(19 40 76 / 8%), 0 4px 12px rgb(19 40 76 / 4%);
}

.form-card > iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
}

.form-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #526078;
  font-size: 14px;
}

.form-loading__spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #d7e2f1;
  border-top-color: #2467b7;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.form-error {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 28px;
  color: #702121;
  background: #fff3f3;
  line-height: 1.5;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.privacy-information {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #dfe5ed;
  border-radius: 14px;
  background: rgb(255 255 255 / 76%);
}

.privacy-information h2 {
  margin: 0 0 10px;
  color: #182443;
  font-size: 17px;
}

.privacy-information p {
  margin: 0;
  color: #657084;
  font-size: 14px;
  line-height: 1.6;
}

.privacy-information a {
  display: inline-block;
  margin-top: 9px;
  color: #175cae;
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.privacy-information a:not(:hover) {
  text-decoration-thickness: 1px;
}

.site-footer {
  border-top: 1px solid #dfe5ed;
  background: #fff;
}

.site-footer__content {
  width: min(calc(100% - 32px), var(--content-width));
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #758095;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 680px) {
  .site-header__content { min-height: 72px; }
  .brand__description { display: none; }
  .brand__symbol { width: 42px; height: 42px; border-radius: 12px; }
  .security-label { font-size: 0; gap: 0; }
  .security-label__icon { font-size: 14px; }
  .page { width: min(calc(100% - 20px), var(--form-width)); padding: 34px 0 44px; }
  .introduction { margin-bottom: 26px; }
  .introduction h1 { font-size: clamp(1.85rem, 9vw, 2.35rem); }
  .introduction__description { margin-top: 16px; font-size: 15px; }
  .information-box { margin-top: 22px; padding: 14px; }
  .form-section__heading { display: block; padding-inline: 2px; }
  .form-section__heading h2 { font-size: 19px; }
  .form-section__hint { margin-top: 7px; text-align: left; }
  .form-card { min-height: 430px; border-radius: 12px; }
  .privacy-information { padding: 18px; }
  .site-footer__content { min-height: 94px; flex-direction: column; justify-content: center; gap: 6px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skip-link { transition: none; }
  .form-loading__spinner { animation-duration: 1.8s; }
}

@media print {
  .site-header,
  .site-footer,
  .form-section { display: none; }
  body { background: #fff; }
  .page { width: 100%; padding: 0; }
  .privacy-information { background: #fff; }
}
