/* NIR360 – White theme */
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --border: #d4deea;
  --text: #0f172a;
  --muted: #5f6f86;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --error: #dc2626;
  --success: #2563eb;
  --landing-header-offset: 5.5rem;
  --landing-section-gap: clamp(5rem, 8vw, 7.5rem); /* 80px – 120px */
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--landing-header-offset);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
.container--wide { max-width: 1140px; }
.container--hero {
  --hero-map-max: 1120px;
  --hero-visual-top: clamp(1.35rem, 3.2vw, 2.35rem);
  max-width: 1440px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: clamp(2.75rem, 6vw, 5rem);
  overflow: visible;
  position: relative;
  min-height: calc(var(--hero-visual-top) + min(99vw, var(--hero-map-max)) * 0.667);
}

.hero-brand {
  position: absolute;
  top: clamp(-0.85rem, -0.8vw, -0.25rem);
  left: clamp(-1.25rem, -2.5vw, -0.75rem);
  z-index: 5;
  max-width: min(38vw, 460px);
  pointer-events: none;
}

.hero-brand-title {
  margin: 0;
  font-size: clamp(4rem, 9vw, 6.25rem);
  font-weight: 820;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #0b1220;
}

.hero-brand-tagline {
  margin: 0.7rem 0 0 clamp(0.35rem, 0.8vw, 0.65rem);
  max-width: 20rem;
  font-size: clamp(0.72rem, 1.25vw, 0.92rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563eb;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  min-height: calc(min(99vw, var(--hero-map-max)) * 0.667);
  overflow: visible;
  margin-left: clamp(2rem, 3vw, 3rem);
  margin-top: var(--hero-visual-top);
}

.hero-map-wrap {
  position: relative;
  flex-shrink: 0;
  display: inline-block;
  line-height: 0;
  width: min(99vw, var(--hero-map-max));
  aspect-ratio: 1200 / 800;
  margin-left: clamp(2.75rem, 4.5vw, 3.75rem);
  margin-top: -3.5rem;
}

.hero-map {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: contain;
  object-position: left top;
  position: relative;
  z-index: 1;
}

.hero-map-pins {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-map-pin {
  --pin-top: 50%;
  --pin-left: 50%;
  --pin-delay: 0s;
  position: absolute;
  top: var(--pin-top);
  left: var(--pin-left);
  width: clamp(22px, 2.4vw, 34px);
  height: auto;
  z-index: 2;
  mix-blend-mode: normal;
  filter: drop-shadow(0 10px 8px rgba(15, 23, 42, 0.28));
  transform: translate(-50%, calc(-100% - 4px));
  animation: hero-map-pin-float 3.2s ease-in-out infinite;
  animation-delay: var(--pin-delay);
}

@keyframes hero-map-pin-float {
  0%, 100% {
    transform: translate(-50%, calc(-100% - 4px));
  }
  50% {
    transform: translate(-50%, calc(-100% - 12px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-map-pin {
    animation: none;
    transform: translate(-50%, calc(-100% - 6px));
  }
}

.hero-mockups {
  position: relative;
  flex-shrink: 0;
  width: min(46vw, 480px);
  min-height: clamp(400px, 44vw, 540px);
  margin-left: clamp(-8rem, -14vw, -6rem);
  margin-top: clamp(0.25rem, 1.5vw, 1rem);
}

.hero-phone {
  display: block;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 20px 36px rgba(15, 23, 42, 0.2));
}

.hero-phone--feed {
  position: absolute;
  top: -17%;
  left: -65%;
  width: min(30vw, 420px);
  z-index: 2;
  transform: translateX(-2.75rem) rotate(-2deg);
  transform-origin: center center;
}

.hero-gps-card {
  position: absolute;
  top:-1%;
  right: 44%;
  width: min(21vw, 180px);
  height: auto;
  z-index: 4;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.14));
}

.hero-phone-map-wrap {
  position: absolute;
  right: 18%;
  bottom: 10%;
  z-index: 3;
  width: min(26vw, 380px);
  transform: translateX(-2.75rem) rotate(-5deg);
  transform-origin: 62% 78%;
}

.hero-phone--map {
  width: 100%;
  display: block;
  transform: none;
  mix-blend-mode: screen;
  filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.18));
}

.hero-pin {
  position: absolute;
  top: -5%;
  left: 55%;
  width: clamp(52px, 6vw, 110px);
  height: auto;
  z-index: 5;
  transform: translate(-50%, 0);
  mix-blend-mode: screen;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
}

.header-nav-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

.header {
  border-bottom: none;
  padding: 1.35rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 2.75rem;
}

.header-inner--nav-only {
  justify-content: flex-end;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover { color: #1e40af; }

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  flex-shrink: 0;
}

.header-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.35rem, 2.5vw, 2.35rem);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-nav-link {
  color: #000000;
  text-decoration: none;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  font-weight: 600;
  padding: 0;
  line-height: 1.3;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.header-nav-links a.header-nav-link:hover,
.header-nav-links a.header-nav-link:focus-visible,
.header-nav-link-btn.header-nav-link:hover,
.header-nav-link-btn.header-nav-link:focus-visible {
  color: #1e40af;
  outline: none;
}

.header-nav-link.is-active {
  text-decoration: underline;
  text-decoration-color: #2563eb;
  text-underline-offset: 0.45rem;
  text-decoration-thickness: 2.5px;
}

.header-nav-login {
  margin-left: clamp(0.75rem, 1.5vw, 1.35rem);
}

.header .btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  font-weight: 600;
  font-family: inherit;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid #7eb8e8;
  background: #ffffff;
  color: #243c5a;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.header .btn-login:hover {
  background: #f8fbff;
  color: #1e40af;
  border-color: #60a5fa;
}

.btn { display: inline-block; padding: 0.5rem 1rem; font-size: 0.95rem; font-weight: 600; border-radius: 8px; cursor: pointer; border: none; text-align: center; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: rgba(59,130,246,0.15); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1.1rem; }

.main {
  overflow-x: hidden;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: clamp(0.25rem, 1vw, 0.5rem) 0 clamp(0.5rem, 1.5vw, 1rem);
  margin-bottom: var(--landing-section-gap);
  text-align: left;
  background: #ffffff;
  border-bottom: none;
  scroll-margin-top: var(--landing-header-offset);
  box-sizing: border-box;
  overflow: visible;
}

.hero-inner {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}

.hero-inner .container {
  width: 100%;
}

.hero-emergency-alert,
.about-emergency-alert {
  flex-shrink: 0;
  width: 100%;
}

.hero-emergency-alert {
  margin-top: clamp(0.75rem, 2vw, 1.5rem);
  padding-top: clamp(0.25rem, 1vw, 0.5rem);
}

.about-emergency-alert {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.hero-emergency-alert .emergency-alert-banner,
.about-emergency-alert .emergency-alert-banner {
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  max-height: none;
  box-shadow: none;
  border-top: none;
}

.hero-title { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 1rem; }
.hero-desc { color: var(--muted); max-width: 560px; margin: 0 auto 1.5rem; }

/* Modals (landing page only – do not affect Bootstrap modals on profile/dashboards) */
.main .modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility .2s; }
.main .modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.main .modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); z-index: 0; }
.main .modal-box { position: relative; z-index: 1; background: #fff; color: #1e293b; border-radius: 12px; max-width: 420px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); border: 1px solid var(--border); }
.main .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid #e5e7eb; }
.main .modal-header h2 { margin: 0; font-size: 1.25rem; }
.main .modal-close { background: none; border: none; font-size: 1.5rem; line-height: 1; color: #6b7280; cursor: pointer; padding: 0.25rem; }
.main .modal-close:hover { color: #1a1a1a; }
.main .modal-body { padding: 1.5rem; }
.main .modal-view { display: block; }
.main .modal-footer-link { margin: 1rem 0 0; font-size: 0.9rem; color: #6b7280; }
.main .modal-footer-link .btn-link { font-size: inherit; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.35rem; }
.form-group .label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem; }
.form-group .label-row label { margin-bottom: 0; }
.form-group .label-row .label-link { font-size: 0.875rem; }
.form-group input,
.form-group textarea,
.form-group select { width: 100%; padding: 0.75rem 1rem; font-size: 1rem; border: 1px solid #d1d5db; border-radius: 8px; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 60px; }
.form-group input[type="file"] { padding: 0.5rem 0; }
.form-group input.is-invalid,
.form-group select.is-invalid {
  border-color: #b91c1c;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.15);
}
/* Password visibility toggle — eye icon inside the field on the right */
.password-toggle-wrap {
  position: relative;
  width: 100%;
}
.password-toggle-wrap input,
.form-group .password-toggle-wrap input {
  width: 100%;
  padding-right: 2.75rem;
}
/* Hide browser built-in password reveal — custom eye toggle is used instead */
.password-toggle-wrap input::-ms-reveal,
.password-toggle-wrap input::-ms-clear,
.reg-input-wrap--password input::-ms-reveal,
.reg-input-wrap--password input::-ms-clear {
  display: none;
}
.password-toggle-wrap input::-webkit-textfield-decoration-container,
.reg-input-wrap--password input::-webkit-textfield-decoration-container {
  visibility: hidden;
  pointer-events: none;
}
.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  padding: 0;
}
.password-toggle-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  display: none;
  pointer-events: none;
}
.password-toggle-btn .icon-eye { display: block; }
.password-toggle-btn .icon-eye-off { display: none; }
.password-toggle-btn.is-visible .icon-eye { display: none; }
.password-toggle-btn.is-visible .icon-eye-off { display: block; }
.password-toggle-btn:hover { color: #0f172a; background: rgba(15, 23, 42, 0.06); }
.password-toggle-btn:focus { outline: 2px solid #93c5fd; outline-offset: 1px; }
.form-section { font-size: 0.95rem; margin: 1.25rem 0 0.5rem; color: #374151; }
.form-section:first-of-type { margin-top: 0; }
.main .modal-box--scroll .modal-body { max-height: 70vh; overflow-y: auto; }

/* Registration modal — reference Pre-Registration card look */
.main .modal--register {
  padding: 1.25rem;
}
.main .modal--register .modal-backdrop {
  background: rgba(148, 163, 184, 0.38);
}
.main .modal-box--register {
  --reg-title-blue: #2563eb;
  --reg-label: #1f2937;
  --reg-required: #dc2626;
  --reg-border: #d1d5db;
  --reg-border-focus: #2563eb;
  --reg-focus-glow: rgba(37, 99, 235, 0.16);
  --reg-placeholder: #9ca3af;
  --reg-icon: #6b7280;
  --reg-readonly-bg: #f9fafb;
  --reg-section: #111827;
  --reg-input-height: 44px;
  --reg-radius: 8px;
  --reg-card-radius: 12px;
  position: relative;
  max-width: 1100px;
  width: 100%;
  max-height: 96vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.06);
}

.reg-modal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
  background: #fff;
  border-bottom: none;
}

.main .modal-box--register .reg-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 21;
  color: #6b7280;
  font-size: 1.5rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 6px;
}

.main .modal-box--register .reg-modal-close:hover {
  color: #111827;
  background: rgba(15, 23, 42, 0.05);
}

.reg-modal-brand {
  text-align: center;
  padding: 2.15rem 2.75rem 0.45rem;
  background: #fff;
}

.reg-modal-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.reg-modal-logo {
  display: block;
  object-fit: contain;
  object-position: center;
  margin-left: auto;
  margin-right: auto;
}

.reg-modal-logo--seal {
  width: clamp(10rem, 18vw, 12.5rem);
  height: clamp(10rem, 18vw, 12.5rem);
}

.reg-modal-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--reg-title-blue);
  line-height: 1.2;
  text-align: center;
}

.main .modal-box--register .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  padding: 0.75rem 2rem 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.reg-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.reg-form-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 0.5rem;
}

.reg-section-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 0 0.35rem;
  margin-bottom: 1.35rem;
  box-shadow: none;
}

.reg-section-card:last-of-type {
  margin-bottom: 0.25rem;
}

.reg-section-title {
  margin: 0 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--reg-section);
  line-height: 1.3;
}

.reg-section-note {
  margin: -0.35rem 0 1rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

.reg-form-section {
  margin-bottom: 1rem;
}

.reg-form-section .form-section {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #e5e7eb;
  color: var(--reg-section);
}

.reg-form-section:first-child .form-section {
  margin-top: 0;
}

.reg-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.35rem;
  align-items: start;
}

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

.reg-section-card .reg-form-grid + .reg-form-grid {
  margin-top: 1.15rem;
}

.reg-form-grid__span-2 {
  grid-column: span 2;
}

.reg-form-grid--id {
  align-items: stretch;
}

.reg-form .form-group {
  margin-bottom: 0;
}

.reg-section-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--reg-icon);
}

.reg-section-icon .reg-input-icon {
  width: auto;
  padding: 0;
}

.reg-section-icon .reg-input-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.reg-input-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.15rem;
  color: var(--reg-icon);
  pointer-events: none;
}

.reg-input-icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.reg-input-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: var(--reg-input-height);
  border: 1px solid var(--reg-border);
  border-radius: var(--reg-radius);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.reg-input-wrap:focus-within {
  border-color: var(--reg-border-focus);
  box-shadow: 0 0 0 3px var(--reg-focus-glow);
}

.reg-input-wrap > .reg-input-icon {
  display: none;
}

.reg-input-wrap input,
.reg-input-wrap select {
  flex: 1;
  min-width: 0;
  min-height: calc(var(--reg-input-height) - 2px);
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0.62rem 0.9rem !important;
  color: var(--reg-label);
  font-size: 0.9rem;
}

.reg-input-wrap input::placeholder {
  color: var(--reg-placeholder);
  opacity: 1;
}

.reg-input-wrap--select {
  position: relative;
}
.reg-input-wrap--select::after {
  content: '';
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.reg-input-wrap--select select {
  padding-right: 2.1rem !important;
  cursor: pointer;
  color: var(--reg-label);
  appearance: none;
  -webkit-appearance: none;
}

.reg-input-wrap--select select option[value=""] {
  color: var(--reg-placeholder);
}

.reg-input-wrap--password input {
  padding-right: 0.35rem !important;
}

.reg-password-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  margin-right: 0.35rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--reg-icon);
  cursor: pointer;
  border-radius: 4px;
}

.reg-password-toggle:hover {
  color: #374151;
  background: rgba(15, 23, 42, 0.05);
}

.reg-password-toggle svg {
  width: 1rem;
  height: 1rem;
  display: none;
}

.reg-password-toggle .icon-eye { display: block; }
.reg-password-toggle .icon-eye-off { display: none; }
.reg-password-toggle.is-visible .icon-eye { display: none; }
.reg-password-toggle.is-visible .icon-eye-off { display: block; }

.reg-input-wrap--file {
  padding: 0 0.65rem;
  cursor: pointer;
}

.reg-input-wrap--file .id-file-input {
  flex: 1;
  min-height: calc(var(--reg-input-height) - 2px);
  border: none !important;
  padding: 0.5rem 0.25rem !important;
  font-size: 0.875rem !important;
  color: var(--reg-label);
  cursor: pointer;
}

.reg-input-wrap input.input-readonly {
  background: var(--reg-readonly-bg) !important;
  color: #6b7280;
  cursor: default;
}

.reg-form .form-group input.is-invalid,
.reg-form .form-group select.is-invalid {
  border-color: #b91c1c !important;
}

.reg-form .form-group .reg-input-wrap:has(.is-invalid) {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.reg-form .form-group label {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.38rem;
  color: var(--reg-label);
  font-weight: 700;
  line-height: 1.35;
}

.reg-required {
  color: var(--reg-required);
  font-weight: 700;
}

.reg-form .form-group input,
.reg-form .form-group select {
  font-size: 0.875rem;
}

.reg-form .hint {
  font-size: 0.75rem;
  line-height: 1.4;
  margin-top: 0.25rem;
  color: #6b7280;
}
/* Availability / validation messages — below input row, not inside the field */
.reg-field-feedback {
  display: none;
  font-size: 0.82rem;
  line-height: 1.35;
  margin: 0.25rem 0 0;
}
.reg-field-feedback.is-visible {
  display: block;
}
.reg-field-feedback.is-success {
  color: #059669;
}
.reg-field-feedback.is-error {
  color: #b91c1c;
}
.reg-form .id-instruction {
  font-size: 0.875rem;
  margin: -0.25rem 0 1.1rem;
  line-height: 1.55;
  color: #4b5563;
}

/* Identity verification — upload left, verify right */
.reg-id-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.reg-id-upload-col .id-upload-group {
  margin-bottom: 0;
}

.reg-id-upload-col .id-preview-wrap {
  margin-top: 1rem;
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--reg-border);
  background: #f9fafb;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.reg-id-upload-col .id-preview-img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.reg-id-verify-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0;
}

.reg-section-card--id .id-upload-desc {
  font-size: 0.8rem;
  margin-top: 0.75rem;
  line-height: 1.5;
  color: #6b7280;
}

.reg-section-card--id .id-upload-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--reg-label);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.38rem;
}

.reg-section-card--id .id-upload-label .reg-input-icon {
  display: none;
}

.reg-section-card--id .id-upload-label .reg-input-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.reg-id-verify-col #btn-verify-id {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--reg-input-height);
  padding: 0.65rem 1.1rem;
  border-radius: var(--reg-radius);
}

.reg-id-verify-col #btn-verify-id .reg-input-icon {
  width: auto;
  padding: 0;
  color: inherit;
}

.reg-id-verify-col #btn-verify-id .reg-input-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.reg-id-verify-col .id-ocr-result {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.btn-reg-primary,
.reg-form-actions .btn-reg-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--reg-title-blue);
  border: 1px solid #1e40af;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: var(--reg-input-height);
  padding: 0.72rem 1rem;
  border-radius: var(--reg-radius);
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.2);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-reg-primary:hover,
.reg-form-actions .btn-reg-primary:hover {
  background: #1e40af;
  color: #fff;
}
.btn-reg-outline,
#btn-verify-id.btn-reg-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--reg-border);
  color: #374151;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: var(--reg-radius);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-reg-outline:hover,
#btn-verify-id.btn-reg-outline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

.reg-form-actions {
  flex-shrink: 0;
  margin-top: 0.35rem;
  margin-bottom: 0.25rem;
  padding: 1.15rem 0 0.35rem;
  background: transparent;
  border-top: none;
  position: static;
  z-index: auto;
}

.reg-form-actions .btn-reg-primary {
  cursor: pointer;
  pointer-events: auto;
  width: 100%;
  display: flex;
  min-height: 2.75rem;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--reg-radius);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.reg-form-actions .btn-reg-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.main .modal-box--register #create-account-error,
.main .modal-box--register #create-account-success {
  flex-shrink: 0;
  margin: 0 0 0.85rem;
  border-radius: var(--reg-radius);
}
.reg-form-actions .modal-footer-link {
  margin-top: 0.65rem;
  text-align: center;
  color: #6b7280;
}
.reg-form-actions .modal-footer-link .btn-link {
  color: var(--reg-title-blue);
  font-weight: 600;
}
.reg-form-actions .modal-footer-link .btn-link:hover {
  color: #1e40af;
}
@media (max-width: 960px) {
  .reg-form-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reg-form-grid__span-2 {
    grid-column: span 2;
  }
  .reg-id-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .reg-id-verify-col {
    padding-top: 0;
  }
  .reg-id-upload-col .id-preview-wrap {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .main .modal-box--register {
    max-width: 100%;
    max-height: 94vh;
    border-radius: 10px;
  }
  .main .modal--register { padding: 0.55rem; }
  .reg-modal-brand {
    padding: 1.65rem 2.25rem 0.4rem;
  }
  .reg-modal-logos {
    margin-bottom: 0.45rem;
  }
  .reg-modal-logo--seal {
    width: clamp(8rem, 32vw, 10.5rem);
    height: clamp(8rem, 32vw, 10.5rem);
  }
  .main .modal-box--register .modal-body {
    padding: 0.5rem 1rem 0;
  }
  .reg-form-actions {
    padding: 1rem 0 0.5rem;
  }
  .reg-section-card {
    padding: 0 0 0.25rem;
    margin-bottom: 1.1rem;
    border-radius: 0;
  }
  .reg-form-grid,
  .reg-form-grid--3,
  .reg-form-grid--id {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }
  .reg-form-grid__span-2 {
    grid-column: span 1;
  }
  .reg-form .form-group {
    margin-bottom: 0;
  }
}
.hint { font-size: 0.8rem; color: #6b7280; margin-top: 0.25rem; display: block; }
.otp-input { letter-spacing: 0.5em; text-align: center; font-variant-numeric: tabular-nums; }

.error-box { background: #fef2f2; border: 1px solid var(--error); color: #b91c1c; padding: 0.75rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; }
.success-box { background: #f0fdf4; border: 1px solid var(--success); color: #166534; padding: 0.75rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; }
.id-instruction { font-size: 0.95rem; color: var(--muted); margin: 0 0 1rem; line-height: 1.5; }
.id-upload-group { margin-bottom: 1.5rem; }
.id-upload-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.id-upload-icon { display: inline-block; width: 18px; height: 22px; background: var(--text); border-radius: 1px; position: relative; }
.id-upload-icon::before { content: ''; position: absolute; top: 4px; left: 3px; right: 3px; height: 2px; background: var(--bg); border-radius: 1px; }
.id-upload-icon::after { content: ''; position: absolute; top: 8px; left: 3px; right: 3px; height: 2px; background: var(--bg); border-radius: 1px; opacity: 0.8; }
.id-file-input { width: 100%; padding: 0.5rem 0; font-size: 0.9rem; }
.id-upload-desc { font-size: 0.875rem; color: var(--muted); margin: 0.5rem 0 0; line-height: 1.5; }
.main .modal-box--register .id-preview-wrap {
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  max-width: 420px;
}

.main .modal-box--register .id-preview-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.id-ocr-result { margin-top: 0.75rem; margin-bottom: 1rem; }
.id-ocr-result-box { padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.9rem; line-height: 1.5; }
.id-ocr-result--loading { background: #f8fafc; border: 1px solid var(--border); color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.id-ocr-result--loading .id-ocr-spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: id-ocr-spin 0.7s linear infinite; flex-shrink: 0; }
@keyframes id-ocr-spin { to { transform: rotate(360deg); } }
.id-ocr-result--success { background: #f0fdf4; border: 1px solid var(--success); color: #166534; }
.id-ocr-result--success .id-ocr-success-heading { font-weight: 600; margin-bottom: 0.25rem; }
.id-ocr-result--error { background: #fef2f2; border: 1px solid var(--error); color: #b91c1c; }
.id-ocr-result--error .id-ocr-error-heading { font-weight: 600; margin-bottom: 0.25rem; }
.id-ocr-result-box.id-ocr-result--info { background: #f0f9ff; border: 1px solid #0ea5e9; color: #0c4a6e; }
.id-ocr-result-box .error-box { margin-top: 0.5rem; }
.btn-verify-id-text { display: inline-block; }
#btn-verify-id { min-width: 10rem; position: relative; }
#btn-verify-id[aria-busy="true"] .btn-verify-id-text { visibility: hidden; }
#btn-verify-id[aria-busy="true"]::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: id-ocr-spin 0.7s linear infinite; }
.resend-row { margin-top: 1rem; display: flex; justify-content: space-between; align-items: center; }
.btn-link { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 0.9rem; padding: 0; }
.btn-link:hover { text-decoration: underline; }
.btn-link:disabled { opacity: 0.5; cursor: not-allowed; }

/* Location form: readonly city */
.input-readonly { background: var(--surface); color: var(--muted); cursor: default; }

.emergency-alert-banner {
  position: relative;
  width: 100%;
  background: #c41e3a;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  box-shadow: 0 -2px 12px rgba(0,0,0,.2);
  border-top: 2px solid rgba(255,255,255,.3);
}
.emergency-alert-arrows {
  display: flex;
  white-space: nowrap;
  padding: 2px 0;
  overflow: hidden;
  width: max-content;
  will-change: transform;
}
.emergency-alert-arrows--top {
  animation: emergency-arrow-right 8s linear infinite;
}
.emergency-alert-arrows--bottom {
  animation: emergency-arrow-left 8s linear infinite;
}
.emergency-alert-arrow {
  opacity: .95;
  padding: 0 2px;
  flex-shrink: 0;
}
.emergency-alert-marquee-wrap {
  overflow: hidden;
  padding: 4px 0;
  border-top: 1px solid rgba(255,255,255,.25);
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.emergency-alert-marquee {
  display: flex;
  white-space: nowrap;
  animation: emergency-marquee-left 18s linear infinite;
}
.emergency-alert-item {
  padding: 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
@keyframes emergency-marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes emergency-arrow-right {
  from { transform: translateX(-25%); }
  to { transform: translateX(0); }
}
@keyframes emergency-arrow-left {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}

.nir360-app-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}

.nir360-app-footer__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}

.nir360-app-footer__brand {
  font-weight: 700;
  color: var(--text);
}

.nir360-app-footer__sep {
  opacity: 0.55;
}

@media (max-width: 640px) {
  .nir360-app-footer__sep {
    display: none;
  }

  .nir360-app-footer__text {
    flex-direction: column;
    gap: 0.2rem;
  }
}

/* Landing footer — dark bar after Get in Touch */
.nir360-landing-footer {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: none;
  box-shadow: none;
  background: #0f172a;
  padding: 0;
  text-align: center;
}

.nir360-landing-footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 2rem;
}

.nir360-landing-footer__rule {
  height: 1px;
  width: 100%;
  max-width: 920px;
  margin: 0 auto 1.35rem;
  background: #2563eb;
}

.nir360-landing-footer__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #9ca3af;
  text-align: center;
}

/* ── Landing page sections ── */
.landing-section {
  position: relative;
  z-index: 2;
  scroll-margin-top: var(--landing-header-offset);
  padding: clamp(3rem, 6vw, 4rem) 0;
  clear: both;
}

.landing-section + .landing-section {
  margin-top: var(--landing-section-gap);
}

.landing-section--about {
  background: var(--surface);
}

.landing-section--alt {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.landing-section .about-block {
  margin-bottom: 0;
}

.landing-section .about-intro {
  margin-bottom: 0;
}

/* Keep reveal animations inside section bounds */
.landing-section [data-reveal],
.landing-contact [data-reveal] {
  will-change: opacity, transform;
}

.landing-section [data-reveal]:not(.is-visible),
.landing-contact [data-reveal]:not(.is-visible) {
  pointer-events: none;
}

.about-nir360 {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 5rem;
}

.about-intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.about-eyebrow {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 999px;
}

.about-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.25;
  color: var(--text);
}

.about-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.about-lead:last-child {
  margin-bottom: 0;
}

.about-block {
  margin-bottom: 3.5rem;
}

.about-section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  text-align: center;
  color: var(--text);
}

.about-section-desc {
  margin: 0 auto 1.75rem;
  max-width: 640px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.about-steps-grid,
.about-features-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

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

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

.about-step-card,
.about-feature-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.15rem 1.15rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.03);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.about-step-card:hover,
.about-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
}

.about-step-num {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.about-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.about-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.about-card-title {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.about-card-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}

.about-mission {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
}

.about-mission-icon {
  margin: 0 auto 0.85rem;
}

.about-mission-text {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about-reveal-stagger .about-step-card,
.about-reveal-stagger .about-feature-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 220ms ease, border-color 220ms ease;
}

[data-reveal].is-visible .about-reveal-stagger .about-step-card,
[data-reveal].is-visible .about-reveal-stagger .about-feature-card {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal].is-visible .about-reveal-stagger .about-step-card:nth-child(1),
[data-reveal].is-visible .about-reveal-stagger .about-feature-card:nth-child(1) { transition-delay: 0.05s; }
[data-reveal].is-visible .about-reveal-stagger .about-step-card:nth-child(2),
[data-reveal].is-visible .about-reveal-stagger .about-feature-card:nth-child(2) { transition-delay: 0.1s; }
[data-reveal].is-visible .about-reveal-stagger .about-step-card:nth-child(3),
[data-reveal].is-visible .about-reveal-stagger .about-feature-card:nth-child(3) { transition-delay: 0.15s; }
[data-reveal].is-visible .about-reveal-stagger .about-step-card:nth-child(4),
[data-reveal].is-visible .about-reveal-stagger .about-feature-card:nth-child(4) { transition-delay: 0.2s; }
[data-reveal].is-visible .about-reveal-stagger .about-step-card:nth-child(5),
[data-reveal].is-visible .about-reveal-stagger .about-feature-card:nth-child(5) { transition-delay: 0.25s; }
[data-reveal].is-visible .about-reveal-stagger .about-step-card:nth-child(6),
[data-reveal].is-visible .about-reveal-stagger .about-feature-card:nth-child(6) { transition-delay: 0.3s; }
[data-reveal].is-visible .about-reveal-stagger .about-feature-card:nth-child(7) { transition-delay: 0.35s; }
[data-reveal].is-visible .about-reveal-stagger .about-feature-card:nth-child(8) { transition-delay: 0.4s; }
[data-reveal].is-visible .about-reveal-stagger .about-feature-card:nth-child(9) { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .about-reveal-stagger .about-step-card,
  .about-reveal-stagger .about-feature-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .about-step-card:hover,
  .about-feature-card:hover {
    transform: none;
  }
}

@media (max-width: 960px) {
  .about-steps-grid,
  .about-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .container--hero {
    --hero-map-max: 720px;
    --hero-visual-top: 0;
    justify-content: center;
    padding-left: 1.5rem;
    min-height: auto;
  }

  .hero-brand {
    position: static;
    left: auto;
    max-width: none;
    margin-bottom: 1.25rem;
    pointer-events: auto;
  }

  .hero-brand-tagline {
    max-width: 22rem;
  }

  .hero-visual {
    margin-top: 0;
    margin-left: 0;
    min-height: auto;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.25rem;
  }

  .hero-map-wrap {
    width: min(98vw, var(--hero-map-max));
    margin-left: 0;
    margin-top: 0;
  }

  .hero-map {
    width: 100%;
    height: auto;
    object-position: center center;
  }

  .hero-map-pins {
    inset: 0;
  }

  .hero-map-pin {
    width: clamp(18px, 4.5vw, 28px);
  }

  .hero-mockups {
    width: min(92vw, 360px);
    min-height: 340px;
    margin-left: 0;
    margin-top: -2rem;
  }

  .hero-phone--feed {
    position: relative;
    width: min(58vw, 240px);
    margin: 0 auto;
    transform: rotate(5deg);
  }

  .hero-gps-card {
    top: 0;
    right: 1%;
    width: min(36vw, 120px);
  }

  .hero-phone-map-wrap {
    right: 10%;
    bottom: 2%;
    width: min(42vw, 175px);
    transform: translateX(-1.75rem) rotate(-28deg);
    transform-origin: 62% 78%;
  }

  .hero-phone--map {
    width: 100%;
    transform: none;
    mix-blend-mode: screen;
  }

  .hero-pin {
    top: -2%;
    left: 50%;
    width: clamp(40px, 9vw, 56px);
    transform: translate(-50%, 0);
  }
}

@media (max-width: 640px) {
  :root {
    --landing-header-offset: 8.5rem;
    --landing-section-gap: 5rem;
  }

  .hero {
    padding: 1rem 0 1.5rem;
    margin-bottom: var(--landing-section-gap);
  }

  .landing-section {
    padding: 2.5rem 0;
  }

  .about-nir360 {
    padding: 3rem 0 4rem;
  }

  .about-steps-grid,
  .about-features-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-mission {
    padding: 1.5rem 1.15rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .header-inner--nav-only {
    align-items: stretch;
  }

  .nav {
    width: 100%;
    margin-left: 0;
    margin-top: 0.75rem;
    justify-content: center;
  }

  .header-nav-links {
    justify-content: center;
    gap: 0.85rem 1.15rem;
  }

  .header-nav-login {
    margin-left: 0;
  }
}

/* ── Landing contact ── */
.landing-contact {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 6vw, 4rem) 0 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: var(--landing-header-offset);
  clear: both;
}

.landing-contact > .container {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.landing-section + .landing-contact {
  margin-top: var(--landing-section-gap);
}

.landing-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.landing-contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  text-align: center;
}

.landing-contact-label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.landing-contact-card p {
  margin: 0 0 0.35rem;
  color: var(--muted);
}

.landing-contact-card p:last-child {
  margin-bottom: 0;
}

.landing-contact-card a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.landing-contact-card a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .landing-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* --- Data Privacy Policy modal (pre-registration) --- */
.main .modal--privacy {
  padding: 1.25rem;
}
.main .modal--privacy .modal-backdrop {
  background: rgba(33, 37, 41, 0.62);
}
.main .modal-box--privacy {
  --privacy-blue: #0d6efd;
  --privacy-blue-hover: #0b5ed7;
  --privacy-title: #0a58ca;
  --privacy-decline: #6c757d;
  --privacy-decline-hover: #5c636a;
  font-family: 'Poppins', system-ui, sans-serif;
  max-width: 820px;
  width: min(820px, 100%);
  max-height: min(90vh, 880px);
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  background: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
}
.privacy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-shrink: 0;
  padding: 0.95rem 1.25rem;
  background: var(--privacy-blue);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}
.privacy-modal-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.privacy-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  color: #fff;
  flex-shrink: 0;
}
.privacy-modal-icon svg { width: 1.55rem; height: 1.55rem; display: block; }
.privacy-modal-eyebrow {
  margin: 0 0 0.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.82);
}
.privacy-modal-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}
.privacy-modal-close {
  color: #fff !important;
  background: transparent;
  border-radius: 6px;
  width: 2rem;
  height: 2rem;
  font-size: 1.7rem !important;
  line-height: 1 !important;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
}
.privacy-modal-close:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.16);
  opacity: 1;
}
.privacy-modal-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  background: #fff;
}
.privacy-policy-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.35rem 1.6rem 1.15rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #333;
  background: #fff;
}
.privacy-policy-scroll::-webkit-scrollbar {
  width: 10px;
}
.privacy-policy-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.privacy-policy-scroll::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 8px;
}
.privacy-policy-scroll h3 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #212529;
}
.privacy-policy-scroll h3:first-of-type { margin-top: 1rem; }
.privacy-policy-scroll p,
.privacy-policy-scroll ul {
  margin: 0 0 0.75rem;
}
.privacy-policy-scroll ul {
  padding-left: 1.35rem;
  list-style: disc;
}
.privacy-policy-scroll li {
  margin-bottom: 0.38rem;
  color: #333;
}
.privacy-lead { color: #444; }
.privacy-lead strong { color: var(--privacy-title); font-weight: 700; }
.privacy-footer-note {
  font-size: 0.86rem;
  color: #555;
}
.privacy-scroll-end {
  margin: 1.15rem 0 0.2rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9aa0a6;
  letter-spacing: 0.04em;
}
.privacy-consent-bar {
  flex-shrink: 0;
  background: #fff;
  padding: 0.85rem 1.35rem 1.05rem;
  border-top: none;
  border-radius: 0 0 10px 10px;
}
.privacy-scroll-hint {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 500;
}
.privacy-scroll-hint.is-done { color: #198754; }
.privacy-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: #333;
  line-height: 1.45;
  cursor: pointer;
  margin-bottom: 0.9rem;
}
.privacy-consent-label input[type='checkbox'] {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: #0d6efd;
}
.privacy-consent-label input[type='checkbox']:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.privacy-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}
.privacy-btn {
  appearance: none;
  border: none;
  border-radius: 6px;
  min-height: 2.45rem;
  padding: 0.5rem 1.05rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.privacy-btn--decline {
  background: var(--privacy-decline);
  min-width: 6.75rem;
}
.privacy-btn--decline:hover {
  background: var(--privacy-decline-hover);
}
.privacy-btn--accept {
  background: var(--privacy-blue);
  min-width: 11.5rem;
}
.privacy-btn--accept:hover:not(:disabled) {
  background: var(--privacy-blue-hover);
}
.privacy-btn--accept:disabled {
  background: #86b7fe;
  cursor: not-allowed;
}
@media (max-width: 720px) {
  .main .modal--privacy { padding: 0.65rem; }
  .main .modal-box--privacy {
    max-width: 100%;
    max-height: 96vh;
    border-radius: 8px;
  }
  .privacy-modal-header {
    padding: 0.8rem 0.9rem;
    border-radius: 8px 8px 0 0;
  }
  .privacy-modal-title { font-size: 1.05rem; }
  .privacy-policy-scroll {
    padding: 1.05rem 1rem 0.9rem;
    font-size: 0.9rem;
  }
  .privacy-consent-bar {
    padding: 0.75rem 1rem 0.95rem;
    border-radius: 0 0 8px 8px;
  }
  .privacy-consent-actions { justify-content: stretch; }
  .privacy-btn { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 480px) {
  .privacy-consent-actions {
    flex-direction: column;
  }
  .privacy-btn { width: 100%; }
}

.nir360-recaptcha-wrap {
  display: flex;
  justify-content: center;
  margin: 0.35rem 0 1rem;
  min-height: 78px;
}
.nir360-recaptcha-wrap .g-recaptcha {
  transform-origin: center top;
}
