:root {
  --navy: #0A1628;
  --navy2: #112240;
  --blue: #2563EB;
  --orange: #EA580C;
  --orange-mid: #F97316;
  --orange-light: #FFF7ED;
  --white: #FFFFFF;
  --off-white: #F8F9FC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --text: #0F172A;
  --text-muted: #64748B;
  --success: #16A34A;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--off-white);
}

.hero {
  position: relative;
  background: var(--navy);
  color: white;
  padding: 56px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(37, 99, 235, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 55% 55% at 0% 100%, rgba(234, 88, 12, 0.22) 0%, transparent 60%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  z-index: 0;
}

.hero-content,
.hero-bottom {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 88px;
}

.logo-mark {
  width: 52px;
  height: 52px;
  background: var(--orange);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 900;
  color: white;
  letter-spacing: -1px;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: white;
  line-height: 1.1;
}

.logo-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #93C5FD;
  margin-bottom: 28px;
  width: fit-content;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  color: white;
  margin-bottom: 20px;
}

h1 span {
  color: var(--orange-mid);
}

.hero-lead {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 32px;
}

.notice {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 20px 22px;
  max-width: 520px;
}

.notice-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.notice p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.74);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--orange);
}

.hero-bottom {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  margin-top: 60px;
}

.form-side {
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-card {
  width: 100%;
  max-width: 660px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 24px 80px rgba(10, 22, 40, 0.08);
}

.form-header {
  margin-bottom: 32px;
}

.form-code {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 10px;
}

.form-desc {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 520px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  background: var(--off-white);
  border-radius: 13px;
  padding: 14px 15px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border 0.15s, box-shadow 0.15s, background 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.phone-row {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 10px;
}

.alert {
  grid-column: 1 / -1;
  background: var(--orange-light);
  border: 1px solid #FED7AA;
  color: #9A3412;
  border-radius: 15px;
  padding: 16px 18px;
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 4px;
}

.alert strong {
  color: #7C2D12;
}

.submit-zone {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn-submit {
  border: none;
  cursor: pointer;
  background: var(--orange);
  color: white;
  padding: 16px 22px;
  border-radius: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.22);
}

.btn-submit:hover {
  background: var(--orange-mid);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(234, 88, 12, 0.26);
}

.small-note {
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

.small-note a {
  color: var(--blue);
  font-weight: 700;
}

footer {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 980px) {
  .page {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 36px 24px;
  }

  .brand {
    margin-bottom: 48px;
  }

  .hero-bottom {
    margin-top: 36px;
  }

  .form-side {
    padding: 28px 18px 40px;
  }

  .form-card {
    padding: 28px 22px;
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .phone-row {
    grid-template-columns: 1fr;
  }

  .form-title {
    font-size: 31px;
  }

  h1 {
    font-size: 42px;
  }
}

/* ─── Loading overlay ─── */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 22, 40, 0.72);
  backdrop-filter: blur(4px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,0.15);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  color: white;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.mobile-logo {
  display: none;
  justify-content: center;
  margin-bottom: 28px;
}

.mobile-logo img {
  width: 92px;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .mobile-logo {
    display: flex;
  }
}

.errors-box {
  background: linear-gradient(
    135deg,
    #FEF2F2 0%,
    #FFF5F5 100%
  );

  border: 1px solid #FECACA;
  border-left: 4px solid #DC2626;

  border-radius: 18px;

  padding: 20px 22px;

  margin-bottom: 24px;

  box-shadow:
    0 10px 30px rgba(220, 38, 38, 0.06);

  animation: errorFade .35s ease;
}

@keyframes errorFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.errors-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.errors-icon {
  width: 34px;
  height: 34px;

  min-width: 34px;

  border-radius: 999px;

  background: #DC2626;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 800;
  font-size: 15px;

  box-shadow:
    0 8px 18px rgba(220, 38, 38, 0.2);
}

.errors-title {
  font-size: 15px;
  font-weight: 800;
  color: #991B1B;
  margin-bottom: 3px;
}

.errors-subtitle {
  font-size: 13px;
  color: #B91C1C;
  line-height: 1.5;
}

.errors-list {
  margin-top: 18px;
  padding-left: 18px;
}

.errors-list li {
  color: #7F1D1D;
  font-size: 14px;
  line-height: 1.7;
}

.errors-list li + li {
  margin-top: 6px;
}

.is-invalid {
  border-color: #DC2626 !important;
  background: #FEF2F2 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08) !important;
}

.is-invalid:focus {
  border-color: #DC2626 !important;
  box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.12) !important;
}