:root {
  --blue: #1666AA;
  --blue-dark: #0E4A80;
  --blue-deep: #0A2540;
  --ink: #111111;
  --white: #ffffff;
  --gray: #5b6573;
  --line: #d9e1ea;
  --ok: #1b8a4b;
  --err: #c0392b;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; }

body {
  font-family: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--white);
  background: radial-gradient(1200px 600px at 10% -10%, #1d76c2 0%, transparent 60%),
              linear-gradient(160deg, var(--blue-deep) 0%, #0b1726 100%);
  background-color: var(--blue-deep);
  display: flex;
  flex-direction: column;
  line-height: 1.55;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ---------- Intro ---------- */
.logo-card {
  display: inline-block;
  background: var(--white);
  padding: 18px 26px;
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.logo { display: block; width: 100%; max-width: 340px; height: auto; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(22,102,170,.35);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4fb3ff;
  box-shadow: 0 0 0 0 rgba(79,179,255,.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(79,179,255,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(79,179,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,179,255,0); }
}

h1 {
  font-family: "Saira Stencil One", "Saira", sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  margin-top: 18px;
  letter-spacing: .01em;
}
.accent { color: #4fb3ff; }

.lead {
  margin-top: 16px;
  max-width: 520px;
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
}

.progress {
  margin-top: 30px;
  max-width: 420px;
  height: 10px;
  background: rgba(255,255,255,.12);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 72%;
  background: repeating-linear-gradient(
    -45deg, var(--blue) 0 12px, #2a86d6 12px 24px);
  background-size: 34px 34px;
  animation: stripes 1.2s linear infinite;
}
@keyframes stripes { to { background-position: 34px 0; } }
.progress-label {
  margin-top: 8px;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Form ---------- */
.form-card {
  background: var(--white);
  color: var(--ink);
  padding: 36px 34px 30px;
  border-radius: var(--radius);
  border-top: 6px solid var(--blue);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.form-card h2 {
  font-family: "Saira Stencil One", "Saira", sans-serif;
  font-weight: 400;
  font-size: 1.9rem;
  color: var(--blue);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.form-sub { color: var(--gray); margin: 4px 0 22px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 5px;
  color: #2a2f36;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(22,102,170,.18);
}
.field.invalid input,
.field.invalid textarea { border-color: var(--err); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  position: relative;
  width: 100%;
  margin-top: 6px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  border: 0;
  cursor: pointer;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
  transition: background .15s, transform .1s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.btn:hover { background: var(--blue-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .7; cursor: wait; }
.spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.status {
  margin-top: 14px;
  font-size: .95rem;
  min-height: 1.2em;
}
.status.ok  { color: var(--ok);  font-weight: 600; }
.status.err { color: var(--err); font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 0 24px 26px;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.stripe {
  max-width: 1102px;
  height: 8px;
  margin: 0 auto 18px;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 36px 16px 32px;
    text-align: center;
  }
  .lead, .progress { margin-left: auto; margin-right: auto; }
  .form-card { text-align: left; padding: 28px 20px 24px; }
}
@media (max-width: 520px) {
  .row { grid-template-columns: 1fr; gap: 0; }
  .logo { max-width: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .dot, .progress-bar, .spinner { animation: none; }
}
