:root {
  --ink: #142638;
  --muted: #5b6b7c;
  --line: #dbe5ee;
  --soft: #eef5fb;
  --panel: #ffffff;
  --brand: #0d67ad;
  --brand-dark: #08446f;
  --accent: #2f9d8f;
  --warning: #f4c36a;
  --shadow: 0 18px 50px rgba(20, 38, 56, 0.12);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f8fbfd;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--brand-dark);
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
  color: #32485b;
}

.main-nav a {
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand);
  border-color: var(--brand);
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-secondary {
  color: var(--brand-dark);
  background: #fff;
  border-color: #b9cedf;
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-quiet {
  color: var(--brand-dark);
  background: #e8f2fb;
  border-color: #c9dfef;
}

.hero {
  background:
    linear-gradient(110deg, rgba(9, 44, 70, 0.94), rgba(13, 103, 173, 0.78)),
    url("images/secureicon.png") right 10% center / 440px no-repeat,
    #0a385e;
  color: #fff;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding: 86px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(220px, 1fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: #bfe8ff;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: #e7f4fc;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-card {
  align-self: stretch;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(10px);
}

.hero-card h2 {
  margin: 0 0 18px;
  font-size: 20px;
}

.secure-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.secure-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
}

.check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #07395c;
  background: #c7efff;
  font-weight: 900;
}

.section {
  padding: 82px 0;
}

.section.alt {
  background: var(--soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2,
.content h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: 0;
}

.section-head p,
.content p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
}

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

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

.info-card,
.step-card,
.contact-card,
.form-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(20, 38, 56, 0.06);
}

.info-card,
.step-card,
.contact-card {
  padding: 26px;
}

.info-card h3,
.step-card h3,
.contact-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.info-card p,
.step-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
}

.icon-box {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: #e4f1fa;
  color: var(--brand-dark);
  font-weight: 900;
}

.step-card {
  position: relative;
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 36px;
  align-items: start;
}

.content {
  display: grid;
  gap: 22px;
}

.content ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.stat {
  padding: 24px;
  background: #fff;
}

.stat strong {
  display: block;
  font-size: 30px;
  color: var(--brand-dark);
}

.stat span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.page-hero {
  padding: 74px 0;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(8, 49, 80, 0.96), rgba(17, 116, 178, 0.82)),
    #0a416b;
}

.page-hero p {
  max-width: 780px;
  margin: 20px 0 0;
  color: #dff1fb;
  font-size: 19px;
}

.contact-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--brand-dark);
  color: #fff;
}

.contact-strip p {
  margin: 0;
  color: #d8edf8;
}

.site-footer {
  padding: 44px 0;
  background: #0d2435;
  color: #d9e7ef;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-brand {
  font-weight: 900;
  color: #fff;
}

.form-shell {
  display: grid;
  gap: 22px;
}

.form-box {
  padding: 28px;
}

.form-box h2 {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.2;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label,
.label {
  font-size: 14px;
  font-weight: 800;
  color: #24394d;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #c7d6e3;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input[type="file"] {
  padding: 9px;
  background: #fbfdff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(13, 103, 173, 0.18);
  border-color: var(--brand);
}

input.field-invalid,
select.field-invalid,
textarea.field-invalid {
  border-color: #c93737;
  background: #fff8f8;
}

input.field-invalid:focus,
select.field-invalid:focus,
textarea.field-invalid:focus {
  outline-color: rgba(201, 55, 55, 0.18);
  border-color: #c93737;
}

.field-error {
  display: block;
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.confirm.has-error {
  padding: 10px;
  border: 1px solid #efb4ae;
  border-radius: var(--radius);
  background: #fff8f8;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #c7d6e3;
  border-radius: var(--radius);
  background: #fbfdff;
  font-weight: 700;
}

.choice input,
.confirm input {
  width: auto;
  min-height: auto;
}

.confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
}

.submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.success-message {
  display: none;
  padding: 16px 18px;
  border: 1px solid #a6d8c6;
  border-radius: var(--radius);
  background: #e9f8f2;
  color: #185d48;
  font-weight: 800;
}

.success-message.show {
  display: block;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 0;
  }

  .nav-actions {
    width: 100%;
    padding-top: 12px;
  }

  .nav-actions .btn {
    flex: 1;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(110deg, rgba(9, 44, 70, 0.96), rgba(13, 103, 173, 0.86)),
      #0a385e;
  }

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

  .contact-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .site-header {
    position: relative;
  }

  .main-nav {
    top: 78px;
  }

  .brand span {
    font-size: 16px;
  }

  .hero,
  .page-hero,
  .section {
    padding: 54px 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero p,
  .page-hero p {
    font-size: 17px;
  }

  .hero-actions .btn,
  .contact-strip .btn,
  .submit-row .btn {
    width: 100%;
  }

  .grid-4,
  .grid-3,
  .stat-band,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-box,
  .info-card,
  .step-card,
  .contact-card {
    padding: 22px;
  }

  .choice-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Premium UI refresh */
.premium-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(5, 25, 43, 0.98), rgba(7, 66, 110, 0.94) 48%, rgba(21, 133, 156, 0.82)),
    radial-gradient(circle at 72% 20%, rgba(126, 217, 255, 0.24), transparent 28%),
    #071e33;
}

.premium-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  pointer-events: none;
}

.premium-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  bottom: -180px;
  border: 1px solid rgba(183, 229, 255, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 90px rgba(37, 168, 204, 0.15);
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy h1 {
  text-wrap: balance;
}

.hero-panel {
  padding: 26px;
  border: 1px solid rgba(213, 237, 255, 0.34);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.09));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.hero-panel-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-panel-top img {
  width: 54px;
  height: 54px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
}

.hero-panel-top span,
.panel-status {
  display: block;
  color: #bfe8ff;
  font-size: 13px;
  font-weight: 800;
}

.hero-panel-top strong {
  display: block;
  color: #fff;
  font-size: 22px;
}

.review-stack {
  display: grid;
  gap: 14px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.review-stack li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.review-stack svg {
  width: 24px;
  height: 24px;
  color: #b9f3ff;
}

.review-stack i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.review-stack strong {
  display: block;
  color: #fff;
  line-height: 1.2;
}

.review-stack span {
  color: #dff3ff;
  font-size: 14px;
}

.panel-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(219, 255, 240, 0.12);
  color: #d9fff1;
}

.panel-status span,
.toast-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #28c47a;
  box-shadow: 0 0 0 5px rgba(40, 196, 122, 0.14);
}

.icon-box svg,
.step-number svg,
.form-box h2 svg,
.image-card svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.icon-box,
.step-number {
  color: var(--brand);
}

.step-number {
  color: #fff;
}

.elevated-card {
  box-shadow: var(--shadow);
}

.image-section {
  background: #fff;
}

.image-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.image-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(20, 38, 56, 0.09);
}

.image-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.image-card div {
  padding: 24px;
}

.image-card svg {
  color: var(--accent);
  margin-bottom: 14px;
}

.image-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.image-card p {
  margin: 0;
  color: var(--muted);
}

.form-hero {
  background:
    linear-gradient(130deg, rgba(8, 42, 68, 0.96), rgba(13, 103, 173, 0.83)),
    radial-gradient(circle at 80% 25%, rgba(125, 217, 255, 0.22), transparent 26%),
    #082a44;
}

.form-box {
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(20, 38, 56, 0.08);
}

.form-box h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.form-box h2 svg {
  color: var(--brand);
}

.upload-grid {
  align-items: stretch;
}

.upload-box {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 146px;
  padding: 20px;
  border: 1.5px dashed #a8c4d9;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff, #f1f7fc);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.upload-box:hover,
.upload-box.drag-over {
  transform: translateY(-1px);
  border-color: var(--brand);
  background: #eef7ff;
}

.upload-box.has-error {
  border-color: #c93737;
  background: #fff8f8;
}

.upload-box svg {
  width: 28px;
  height: 28px;
  color: var(--brand);
}

.upload-box span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.upload-box small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.recovery-toast {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(206, 222, 234, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(20, 38, 56, 0.18);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.app-toast-stack {
  position: fixed;
  top: 92px;
  right: 22px;
  z-index: 80;
  display: grid;
  gap: 12px;
  width: min(390px, calc(100vw - 32px));
}

.app-toast {
  display: grid;
  grid-template-columns: 13px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 44px rgba(20, 38, 56, 0.16);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.app-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.app-toast-icon {
  width: 11px;
  height: 11px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(13, 103, 173, 0.12);
}

.app-toast-success .app-toast-icon {
  background: #23a26d;
  box-shadow: 0 0 0 4px rgba(35, 162, 109, 0.14);
}

.app-toast-error .app-toast-icon {
  background: #c93737;
  box-shadow: 0 0 0 4px rgba(201, 55, 55, 0.14);
}

.app-toast-warning .app-toast-icon {
  background: #d69624;
  box-shadow: 0 0 0 4px rgba(214, 150, 36, 0.16);
}

.app-toast-loading .app-toast-icon {
  background: var(--brand);
  animation: toastPulse 0.9s ease-in-out infinite alternate;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

@keyframes toastPulse {
  from {
    opacity: 0.45;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1.15);
  }
}

.recovery-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e6f6ef;
  color: #16815b;
}

.toast-avatar svg {
  width: 22px;
  height: 22px;
}

.toast-dot {
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  box-shadow: none;
}

.toast-title {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.toast-message {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .image-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .image-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .review-stack li {
    border-radius: 12px;
  }

  .recovery-toast {
    left: 14px;
    bottom: 14px;
  }

  .app-toast-stack {
    top: 14px;
    right: 14px;
  }
}
