/* NiVH — medical landing palette: white / clinical blue / accent red */

:root {
  --color-white: #ffffff;
  --color-bg: #f5f8fc;
  --color-blue-deep: #0b4f8c;
  --color-blue-mid: #1a6cb5;
  --color-blue-tint: #e8f1f9;
  --color-red: #c41e3a;
  --color-text: #1a2b3c;
  --color-text-muted: #4a5d6e;
  --color-border: #c5d6e6;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --shadow: 0 8px 32px rgba(11, 79, 140, 0.08);
  --focus-ring: 0 0 0 3px rgba(11, 79, 140, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(11, 79, 140, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(196, 30, 58, 0.05) 0%, transparent 45%),
    linear-gradient(180deg, var(--color-white) 0%, var(--color-bg) 35%, var(--color-bg) 100%);
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1100px, 100% - 1.5rem);
  margin-inline: auto;
}

@media (min-width: 480px) {
  .container {
    width: min(1100px, 100% - 2.5rem);
  }
}

/* Hero */

.hero {
  padding: max(1.25rem, env(safe-area-inset-top, 0px)) 0 2.5rem;
}

@media (min-width: 768px) {
  .hero {
    padding: max(2rem, env(safe-area-inset-top, 0px)) 0 3.5rem;
  }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
}

.hero-coming {
  order: 0;
  margin: 0 0 1rem;
  width: 100%;
  font-size: calc(0.8125rem * 3);
  line-height: 1.15;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-red);
}

.hero-logo-wrap {
  order: 1;
  width: 100%;
  max-width: min(100%, 28rem);
  margin: 0 auto 1.5rem;
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
}

.hero-title {
  order: 2;
  margin: 0 0 1rem;
  width: 100%;
  max-width: 100%;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-blue-deep);
  text-wrap: balance;
  font-size: clamp(0.8125rem, 2.85vw + 0.4rem, 2.5rem);
}

@media (min-width: 380px) {
  .hero-title {
    white-space: nowrap;
    font-size: clamp(0.9375rem, 3.1vw + 0.35rem, 2.5rem);
  }
}

.hero-subtitle {
  order: 3;
  margin: 0 auto;
  max-width: 36rem;
  font-size: clamp(1rem, 2.2vw + 0.2rem, 1.25rem);
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
}

@media (max-width: 379px) {
  .hero-title {
    white-space: normal;
    font-size: clamp(1rem, 4vw + 0.25rem, 1.35rem);
  }
}

/* Register section */

.register {
  padding: 0 0 4rem;
}

.register-inner {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
}

@media (min-width: 640px) {
  .register-inner {
    padding: 2.5rem 2.25rem;
  }
}

.register-intro h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-blue-deep);
}

.register-intro p {
  margin: 0 0 1.75rem;
  color: var(--color-text-muted);
}

/* Form */

.interest-form {
  margin: 0;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-span {
    grid-column: span 2;
  }
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.label-optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  display: block;
  min-height: 6rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8a9bab;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--color-blue-mid);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-blue-deep);
  box-shadow: var(--focus-ring);
}

.btn-submit {
  margin-top: 1.75rem;
  padding: 0.75rem 1.75rem;
  font: inherit;
  font-weight: 600;
  color: var(--color-white);
  background: linear-gradient(180deg, var(--color-blue-mid) 0%, var(--color-blue-deep) 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  min-height: 48px;
  box-shadow: 0 4px 14px rgba(11, 79, 140, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11, 79, 140, 0.3);
}

.btn-submit:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 4px 14px rgba(11, 79, 140, 0.25);
}

.btn-submit:active {
  transform: translateY(0);
}

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

.form-note {
  margin: 1rem 0 0;
  min-height: 1.5rem;
  font-size: 0.9375rem;
}

.form-note.success {
  color: var(--color-blue-deep);
  font-weight: 600;
}

.form-note.error {
  color: var(--color-red);
}

/* Footer */

.site-footer {
  padding: 2rem 0 max(2rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.7);
}

.footer-brand {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
}
