/* DalaTech intake — premium dark, animated aurora, brand-matched */

:root {
  --bg: #050A18;
  --bg-deep: #03060F;
  --surface: #0D1430;
  --surface-2: #131B3D;
  --surface-3: #18224A;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --accent: #38BDF8;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --text: #F0F4FF;
  --muted: #8B9FC4;
  --muted-strong: #A8BBE0;
  --line: rgba(139, 159, 196, 0.14);
  --line-strong: rgba(139, 159, 196, 0.28);
  --line-bright: rgba(56, 189, 248, 0.35);
  --danger: #F97373;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
  --space-8: 112px;
  --max: 660px;
  --max-page: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: #1a2744 transparent;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #1a2744;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.35);
}

body {
  margin: 0;
  padding: 0;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: transparent;
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(56, 189, 248, 0.32);
  color: var(--text);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #67D2FB; }

/* ==========================================================================
   Animated mesh background (matches dalatech.online hero)
   ========================================================================== */

.bg-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(13, 20, 48, 0.85), transparent 60%),
    var(--bg-deep);
}

.bg-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(72px);
  will-change: transform;
}

.bg-blob-1 {
  top: -12%;
  left: 8%;
  width: 44rem;
  height: 44rem;
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.55), rgba(37, 99, 235, 0) 60%);
  animation: mesh-shift 14s ease-in-out infinite;
}
.bg-blob-2 {
  bottom: -18%;
  right: -8%;
  width: 52rem;
  height: 52rem;
  background: radial-gradient(circle at 60% 50%, rgba(56, 189, 248, 0.42), rgba(56, 189, 248, 0) 65%);
  animation: mesh-shift-2 18s ease-in-out infinite;
}
.bg-blob-3 {
  top: 28%;
  right: 18%;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle at 50% 50%, rgba(13, 20, 48, 0.85), rgba(13, 20, 48, 0) 70%);
  animation: mesh-shift 22s ease-in-out infinite;
}

@keyframes mesh-shift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(2%, -3%, 0) scale(1.05); }
}
@keyframes mesh-shift-2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}

.bg-wave {
  position: absolute;
  left: 0;
  right: 0;
  top: 30%;
  width: 100%;
  height: 70vh;
  opacity: 0.45;
  mix-blend-mode: screen;
  pointer-events: none;
}

.bg-wave-path {
  stroke-dasharray: 24 8;
}
.bg-wave-path-1 { animation: wave-shift 18s linear infinite; }
.bg-wave-path-2 { animation: wave-shift 26s linear infinite reverse; opacity: 0.7; }
.bg-wave-path-3 { animation: wave-shift 34s linear infinite;          opacity: 0.5; }

@keyframes wave-shift {
  to { stroke-dashoffset: -240; }
}

.bg-grain {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
  animation: grid-pulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes grid-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.85; }
}

/* ==========================================================================
   Header / brand
   ========================================================================== */

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  max-width: var(--max-page);
  margin: 0 auto;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  transition: opacity 180ms var(--ease-quart);
}
.brand:hover { opacity: 0.85; }

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08), 0 8px 24px -12px rgba(56, 189, 248, 0.4);
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
}

.brand-name { color: var(--text); }

.brand-tagline {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   Page / hero
   ========================================================================== */

.page {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px var(--space-8);
  animation: fade-up 700ms var(--ease-quart) both;
  z-index: 1;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero { padding: var(--space-7) 0 var(--space-6); }

.eyebrow {
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.32); }
  50%      { box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
}

.hero-title {
  margin: 0 0 var(--space-3);
  font-family: "Outfit", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 6.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--text);
}

.hero-sub {
  margin: 0;
  max-width: 56ch;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.62;
}

/* ==========================================================================
   Form sections
   ========================================================================== */

.brief {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  margin-top: var(--space-6);
}

.section {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border-top: 1px solid var(--line);
  padding-top: var(--space-5);
  opacity: 0;
  transform: translateY(8px);
  animation: section-in 600ms var(--ease-quart) forwards;
}
.section:nth-of-type(1) { animation-delay: 80ms; }
.section:nth-of-type(2) { animation-delay: 140ms; }
.section:nth-of-type(3) { animation-delay: 200ms; }
.section:nth-of-type(4) { animation-delay: 260ms; }
.section:nth-of-type(5) { animation-delay: 320ms; }

@keyframes section-in {
  to { opacity: 1; transform: translateY(0); }
}

.section legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 var(--space-2);
  padding: 0;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  font-feature-settings: "tnum";
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.section-title {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.018em;
}

.legend-optional {
  margin-left: 6px;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
}

.section-help {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 56ch;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}

.optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  margin-left: 4px;
}

.hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.error {
  margin: 0;
  min-height: 0;
  font-size: 13px;
  color: var(--danger);
  transition: min-height 200ms var(--ease-quart);
}
.error:not(:empty) { min-height: 18px; }

/* ==========================================================================
   Inputs / textareas / selects
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition:
    border-color 200ms var(--ease-quart),
    background 200ms var(--ease-quart),
    box-shadow 200ms var(--ease-quart);
  appearance: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

textarea {
  resize: vertical;
  min-height: 108px;
  line-height: 1.55;
}

input::placeholder,
textarea::placeholder {
  color: rgba(139, 159, 196, 0.7);
}

input:hover,
textarea:hover,
select:hover { border-color: rgba(255, 255, 255, 0.16); }

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.field.invalid input,
.field.invalid textarea,
.field.invalid select {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(249, 115, 115, 0.12);
}

.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 7px;
  height: 7px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  pointer-events: none;
  transition: border-color 200ms var(--ease-quart);
}
.select-wrap:focus-within::after { border-color: var(--accent); }

select {
  padding-right: 44px;
  cursor: pointer;
}
select option { background: var(--surface); color: var(--text); }

/* ==========================================================================
   Color picker
   ========================================================================== */

.color-control {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 6px;
  background: rgba(13, 20, 48, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 200ms var(--ease-quart), box-shadow 200ms var(--ease-quart);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.color-control:hover { border-color: var(--line-strong); }
.color-control:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}
.color-control input[type="color"] {
  width: 44px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: none;
}
.color-control input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-control input[type="color"]::-webkit-color-swatch {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}
.color-control output {
  font-family: "JetBrains Mono", "SF Mono", "Consolas", monospace;
  font-size: 14px;
  color: var(--muted-strong);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Checkboxes
   ========================================================================== */

.checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(13, 20, 48, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    border-color 200ms var(--ease-quart),
    background 200ms var(--ease-quart),
    transform 160ms var(--ease-quart);
  font-size: 15px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.check:hover { border-color: var(--line-strong); }
.check:active { transform: scale(0.98); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.check span::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: var(--bg);
  transition:
    background 200ms var(--ease-quart),
    border-color 200ms var(--ease-quart),
    box-shadow 200ms var(--ease-quart);
}
.check input:checked + span::before {
  background: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2.5 6.5l2.5 2.5 4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.check:has(input:checked) {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.08);
}
.check input:focus-visible + span::before {
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.28);
}

/* ==========================================================================
   File drop input
   ========================================================================== */

.file-drop {
  position: relative;
  display: block;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: rgba(13, 20, 48, 0.45);
  transition:
    border-color 200ms var(--ease-quart),
    background 200ms var(--ease-quart),
    transform 200ms var(--ease-quart);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.file-drop:hover {
  border-color: var(--line-bright);
  background: rgba(19, 27, 61, 0.7);
}
.file-drop.is-dragging {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
  border-style: solid;
}
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.file-drop-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 14px;
}
.file-drop-icon {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-bright);
}
.file-drop-label {
  font-family: "Inter", sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}
.file-drop-sub {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.file-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.file-chip {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  background: rgba(19, 27, 61, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text);
  animation: chip-in 240ms var(--ease-quart);
}
@keyframes chip-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.file-chip-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.file-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.file-chip-size {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
}
.file-chip-remove {
  background: transparent;
  color: var(--muted);
  border: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    color 160ms var(--ease-quart),
    background 160ms var(--ease-quart),
    transform 160ms var(--ease-quart);
}
.file-chip-remove:hover {
  color: var(--text);
  background: rgba(249, 115, 115, 0.12);
}
.file-chip-remove:active { transform: scale(0.92); }

/* ==========================================================================
   Submit + actions
   ========================================================================== */

.actions {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  background: linear-gradient(140deg, var(--primary) 0%, #3B82F6 55%, var(--accent) 100%);
  color: #FFFFFF;
  border: 0;
  border-radius: 999px;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-quart),
    box-shadow 220ms var(--ease-quart),
    filter 200ms var(--ease-quart);
  box-shadow:
    0 12px 32px -10px rgba(37, 99, 235, 0.6),
    0 0 0 1px rgba(56, 189, 248, 0.22) inset;
}
.submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 18px 42px -12px rgba(37, 99, 235, 0.72),
    0 0 0 1px rgba(56, 189, 248, 0.32) inset;
}
.submit:active { transform: scale(0.97); }
.submit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  filter: none;
}
.submit-arrow {
  display: inline-flex;
  transition: transform 200ms var(--ease-quart);
}
.submit:hover .submit-arrow { transform: translateX(3px); }

.actions-note {
  margin: 0;
  color: var(--muted-strong);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.5) 50%, transparent 100%);
}

.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.brand-footer { font-size: 17px; }
.brand-footer .brand-mark {
  width: 34px;
  height: 34px;
}

.footer-tagline {
  margin: 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  text-align: right;
}

.footer-meta {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--muted);
  font-size: 12.5px;
}
.footer-meta p { margin: 0; }

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-credit a {
  color: var(--muted-strong);
  font-weight: 500;
  transition: color 180ms var(--ease-quart);
}
.footer-credit a:hover { color: var(--accent); }

.footer-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.5);
  animation: footer-pulse 2.4s ease-in-out infinite;
}
@keyframes footer-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
}

/* ==========================================================================
   Overlays (loading + success)
   ========================================================================== */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  animation: fade 280ms var(--ease-quart) both;
}
.overlay[hidden] { display: none; }
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.overlay-inner {
  position: relative;
  max-width: 480px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 36px 28px;
  background: linear-gradient(160deg, rgba(19, 27, 61, 0.85), rgba(13, 20, 48, 0.85));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(56, 189, 248, 0.08) inset;
  animation: pop-in 480ms var(--ease-quart) both;
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.loader {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.loader span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: loader-pulse 1.2s ease-in-out infinite;
}
.loader span:nth-child(2) { animation-delay: 0.15s; }
.loader span:nth-child(3) { animation-delay: 0.30s; }
@keyframes loader-pulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.85); }
  40%           { opacity: 1;    transform: scale(1.1); }
}

.loading-step {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.005em;
}

.success-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.success-mark svg path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw 700ms var(--ease-quart) 200ms forwards;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
.success-title {
  margin: 4px 0 0;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.success-sub {
  margin: 0;
  color: var(--muted-strong);
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.6;
}
.success-restart {
  margin-top: 8px;
  background: transparent;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    color 160ms var(--ease-quart),
    border-color 160ms var(--ease-quart),
    background 160ms var(--ease-quart),
    transform 160ms var(--ease-quart);
}
.success-restart:hover {
  color: var(--text);
  border-color: var(--line-bright);
  background: var(--accent-soft);
}
.success-restart:active { transform: scale(0.97); }

/* ==========================================================================
   Inline error message (no fixed positioning, no close button)
   ========================================================================== */

.error-message {
  margin: var(--space-3) auto 0;
  max-width: var(--max);
  padding: 12px 16px;
  background: rgba(35, 12, 12, 0.92);
  border: 1px solid rgba(249, 115, 115, 0.45);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  animation: error-in 320ms var(--ease-quart) both;
}
.error-message[hidden] { display: none; }
@keyframes error-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive — mobile (≤ 540px, including 390px)
   ========================================================================== */

@media (max-width: 540px) {
  .site-header { padding: 16px 18px; }
  .brand-tagline { display: none; }
  .page { padding: 0 18px var(--space-7); }
  .hero { padding: var(--space-5) 0 var(--space-4); }
  .hero-title { font-size: clamp(28px, 9vw, 40px); }
  .hero-sub { font-size: 15px; }
  .field-row { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .submit { width: 100%; justify-content: center; }
  .actions { align-items: stretch; }
  .actions-note { text-align: center; }
  .section legend { gap: 10px; }
  .section-title { font-size: 19px; }
  .success-title { font-size: 24px; }
  .overlay-inner { padding: 28px 20px; }
  .footer-row { flex-direction: column; gap: 14px; }
  .footer-tagline { text-align: left; }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .file-drop { padding: 14px 16px; }
  .file-drop-icon { width: 32px; height: 32px; }
  .bg-blob-1, .bg-blob-2, .bg-blob-3 { filter: blur(80px); opacity: 0.45; }
}

@media (max-width: 390px) {
  .hero-title { font-size: 30px; }
  .section-title { font-size: 18px; }
  .page { padding: 0 16px var(--space-7); }
  .site-header { padding: 14px 16px; }
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea { padding: 13px 14px; font-size: 15.5px; }
  .color-control { padding: 5px 12px 5px 5px; gap: 10px; }
  .color-control input[type="color"] { width: 40px; height: 32px; }
  .color-control output { font-size: 13px; }
  .check { padding: 12px 14px; font-size: 14.5px; }
  .file-drop { padding: 12px 14px; }
  .file-drop-icon { width: 30px; height: 30px; }
  .file-drop-label { font-size: 14px; }
  .file-drop-sub { font-size: 12px; }
  .submit { padding: 14px 22px; font-size: 15.5px; }
  .actions-note { font-size: 13px; }
  .section-num { min-width: 26px; height: 21px; font-size: 11px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .bg-blob-1, .bg-blob-2, .bg-blob-3,
  .bg-wave-path-1, .bg-wave-path-2, .bg-wave-path-3,
  .footer-pulse, .eyebrow::before {
    animation: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
