/* ─── CraveFX brand ────────────────────────────────────────────────
   Colors + type lifted from cravefx.com:
   bg #0E0220 / #080211 · neon #DAFF0B · magenta #FF2DEA · purple #6214FF
   Headings: tt-travels-next (Adobe Fonts) · Body: poppins            */

@font-face {
  font-family: "tt-travels-next";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("https://use.typekit.net/af/b73091/0000000000000000774f76f8/31/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n8&v=3") format("woff2");
}
@font-face {
  font-family: "tt-travels-next";
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url("https://use.typekit.net/af/7764dd/0000000000000000774f76fe/31/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n9&v=3") format("woff2");
}
@font-face {
  font-family: "poppins";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("https://use.typekit.net/af/397962/00000000000000007735fdb4/31/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff2");
}
@font-face {
  font-family: "poppins";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("https://use.typekit.net/af/ef5ee3/00000000000000007735fdb7/31/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n5&v=3") format("woff2");
}
@font-face {
  font-family: "poppins";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("https://use.typekit.net/af/9e13a5/00000000000000007735fdb2/31/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n6&v=3") format("woff2");
}
@font-face {
  font-family: "poppins";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("https://use.typekit.net/af/e7fede/00000000000000007735fdbb/31/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("woff2");
}

:root {
  --bg: #0e0220;
  --bg-deep: #080211;
  --panel: #160b2e;
  --panel-border: #2c1b52;
  --text: #ffffff;
  --text-dim: #cfc8e0;
  --text-faint: #6f6590;
  --neon: #daff0b;
  --magenta: #ff2dea;
  --purple: #6214ff;
  --error: #ff5c5c;
  --heading: "tt-travels-next", Helvetica, Arial, sans-serif;
  --body: "poppins", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ambient glows, like the site's nebula hero */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 { width: 560px; height: 560px; background: var(--purple); top: -180px; right: -140px; }
.bg-glow-2 { width: 480px; height: 480px; background: var(--magenta); bottom: -200px; left: -160px; opacity: 0.14; }

.site-header {
  position: relative;
  z-index: 2;
  padding: 28px clamp(20px, 5vw, 56px);
}
.logo { height: 34px; width: auto; display: block; }

main { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 20px 80px; }

/* ─── Hero ─── */
.hero { text-align: center; padding: clamp(24px, 6vh, 64px) 0 48px; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--heading);
  font-weight: 900;
  font-size: clamp(44px, 9vw, 88px);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero-line { display: block; }
.outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.55);
}
.accent { color: var(--neon); text-shadow: 0 0 40px rgba(218, 255, 11, 0.35); }

.hero-sub {
  margin: 26px auto 0;
  max-width: 520px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.8;
}

/* ─── Form card ─── */
.form-card {
  background: linear-gradient(180deg, var(--panel) 0%, rgba(22, 11, 46, 0.6) 100%);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: clamp(24px, 5vw, 48px);
  backdrop-filter: blur(8px);
}

fieldset { border: none; margin-bottom: 40px; }
fieldset:last-of-type { margin-bottom: 24px; }

legend {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.legend-num {
  font-size: 13px;
  color: var(--magenta);
  -webkit-text-stroke: 0;
  letter-spacing: 2px;
}

.field { margin-bottom: 20px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 9px;
  color: var(--text);
}
.req { color: var(--neon); }
.hint { font-weight: 400; color: var(--text-faint); font-size: 12px; margin-left: 6px; letter-spacing: 0; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1.5px solid var(--panel-border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  padding: 13px 16px;
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none;
}
textarea { resize: vertical; line-height: 1.7; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23daff0b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}
select:invalid { color: var(--text-faint); }
option { color: var(--text); background: var(--bg-deep); }

::placeholder { color: var(--text-faint); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(218, 255, 11, 0.15);
}
.invalid { border-color: var(--error) !important; }

/* "Other" department reveal */
.department-other-field { animation: reveal 0.28s ease; }
.department-other-field[hidden] { display: none; }
@keyframes reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* pill radios */
.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { margin: 0; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-block;
  padding: 11px 20px;
  border: 1.5px solid var(--panel-border);
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.18s;
  line-height: 1.4;
}
.pill:hover span { border-color: var(--magenta); color: var(--text); }
.pill input:checked + span {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--bg-deep);
  font-weight: 600;
  box-shadow: 0 0 24px rgba(218, 255, 11, 0.25);
}
.pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(218, 255, 11, 0.35); }

/* dropzone */
.dropzone {
  position: relative;
  border: 2px dashed var(--panel-border);
  border-radius: 12px;
  background: var(--bg-deep);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  color: var(--text-dim);
  font-size: 14px;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--neon); background: rgba(218, 255, 11, 0.04); }
.dropzone:focus-visible { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(218,255,11,0.2); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dropzone-icon { display: block; font-size: 26px; color: var(--neon); margin-bottom: 8px; }
.dropzone-file { display: flex; align-items: center; justify-content: center; gap: 12px; position: relative; z-index: 1; }
.dropzone-file[hidden], .dropzone-idle[hidden] { display: none; }
.dropzone-filename { color: var(--neon); font-weight: 600; word-break: break-all; }
.dropzone-clear {
  background: none; border: 1.5px solid var(--panel-border); color: var(--text-dim);
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 12px; flex-shrink: 0;
}
.dropzone-clear:hover { border-color: var(--error); color: var(--error); }
.dropzone.has-file { border-style: solid; border-color: var(--neon); }
.dropzone.has-file input[type="file"] { pointer-events: none; }

/* honeypot */
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.form-error {
  background: rgba(255, 92, 92, 0.1);
  border: 1px solid rgba(255, 92, 92, 0.4);
  color: #ffb3b3;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* submit */
.submit-btn {
  width: 100%;
  background: var(--neon);
  color: var(--bg-deep);
  font-family: var(--heading);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  padding: 18px 32px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.submit-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(218, 255, 11, 0.35); }
.submit-btn:active:not(:disabled) { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.65; cursor: wait; }

.submit-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(8, 2, 17, 0.25);
  border-top-color: var(--bg-deep);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.privacy-note { text-align: center; font-size: 12px; color: var(--text-faint); margin-top: 16px; line-height: 1.6; }

/* ─── Success ─── */
.success { text-align: center; padding: 60px 0; }
.success-mark {
  width: 84px; height: 84px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: var(--neon);
  color: var(--bg-deep);
  font-size: 42px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px rgba(218, 255, 11, 0.45);
  animation: pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.success-title {
  font-family: var(--heading);
  font-weight: 900;
  font-size: clamp(30px, 6vw, 54px);
  text-transform: uppercase;
  line-height: 1.1;
}
.success-sub { margin: 22px auto 34px; max-width: 460px; color: var(--text-dim); font-size: 15px; line-height: 1.8; }
.back-link {
  color: var(--neon); text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: 0.05em;
  border-bottom: 1.5px solid transparent; transition: border-color 0.18s;
}
.back-link:hover { border-bottom-color: var(--neon); }

.site-footer { position: relative; z-index: 1; text-align: center; padding: 32px 20px 44px; color: var(--text-faint); font-size: 12px; letter-spacing: 0.05em; }
