/* ---------- tokens ---------- */
:root{
  --ink:#0e2431;
  --ink-2:#3a5060;
  --muted:#6b7e8a;
  --line:#e7edf1;
  --paper:#fff;
  --brand:#12b2e8;   /* cyan */
  --brand-2:#0ed3a5; /* teal/green */
  --brand-3:#0a6db0; /* deep cyan */
  --shadow:0 14px 30px rgba(0,0,0,.12);
  --radius:14px;
  --max:1150px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; }
body{
  font-family:system-ui,-apple-system,Segoe UI,Inter,Roboto,Arial,sans-serif;
  color:var(--ink);
  background:#fff;
}

/* ---------- hero ---------- */
.join-hero{
  position:relative; min-height: clamp(260px, 40vh, 460px);
  display:grid; place-items:center; overflow:hidden;
  border-bottom:1px solid var(--line);
}
.join-hero__bg{
  position:absolute; inset:0;
  background-image: var(--src);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.02) brightness(.9);
  transform: scale(1.02);
}
.join-hero::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(4,18,28,.45), rgba(4,18,28,.65) 28%, rgba(4,18,28,.75));
}
.join-hero__overlay{
  position:relative; z-index:2; text-align:center; color:#fff; padding:40px 16px;
  text-shadow:0 6px 22px rgba(0,0,0,.45);
}
.join-hero__overlay h1{
  margin:0 0 8px; font-weight:900; letter-spacing:.5px; text-transform:uppercase;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.tagline{ margin:0; opacity:.98; font-weight:700; font-size: clamp(1rem, 1.6vw, 1.2rem); }

/* ---------- decorative orbs ---------- */
.has-orbs { position: relative; }
.has-orbs .bg-orbs{
  position: absolute;
  inset: -80px 0 auto 0;
  height: 420px;
  pointer-events: none;
  z-index: 0;
  filter: blur(18px);
  opacity: .55;
  mix-blend-mode: screen;
  background:
    radial-gradient(180px 180px at 12% 40%, rgba(17,157,184,.28), transparent 60%),
    radial-gradient(220px 220px at 84% 28%, rgba(8,28,52,.28), transparent 62%),
    radial-gradient(160px 160px at 52% 70%, rgba(17,157,184,.20), transparent 58%);
  animation: orbs-float 14s ease-in-out infinite alternate;
}
@keyframes orbs-float{
  0%   { transform: translateY(0) translateX(0) scale(1); }
  100% { transform: translateY(-16px) translateX(6px) scale(1.02); }
}
@media (prefers-reduced-motion: reduce){
  .has-orbs .bg-orbs{ animation: none; }
}

/* ---------- layout ---------- */
.section{ padding:36px 0 56px; position:relative; }
.wrap{ width:min(100%, var(--max)); margin-inline:auto; padding:0 16px; position: relative; z-index:1; }

.join-head h2{
  position:relative;
  margin:0 0 6px; font:900 1.45rem/1.1 system-ui,Segoe UI,Inter,Arial; text-transform:uppercase; letter-spacing:.3px;
  color:#0e2a3d;
}
.join-head h2::after{
  content:""; display:block; width:72px; height:4px; margin-top:8px; border-radius:999px;
  background: linear-gradient(90deg, #119DB8, #0e2a3d);
}
.join-head p{ margin:6px 0 18px; color:var(--muted); font-weight:650; }

/* ---------- form card (colorful) ---------- */
.form-card{
  width:min(100%, 960px);
  margin: 6px auto 0;
  border-radius: calc(var(--radius) + 2px);
  background:
    radial-gradient(1200px 380px at 10% -20%, rgba(18,178,232,.15), transparent 60%),
    radial-gradient(900px 360px at 110% 0%, rgba(14,211,165,.14), transparent 58%),
    linear-gradient(180deg, #ffffff, #fbfeff);
  position: relative;
  overflow: visible;
  box-shadow: 0 14px 40px rgba(3,20,28,.12);
  border: 1px solid #dfeaf0;
  transform: translateY(10px);
  opacity: 0;
  transition: transform .6s ease, opacity .6s ease, box-shadow .25s ease;
  isolation: isolate;
}
.form-card.in{ transform: translateY(0); opacity: 1; }
.form-card:hover{ box-shadow: 0 20px 54px rgba(3,20,28,.16); }

/* animated border shimmer */
.form-card::before{
  content:""; position:absolute; inset:0; pointer-events:none; border-radius: inherit; padding:1px;
  background: linear-gradient(100deg, rgba(17,157,184,.28), rgba(8,28,52,.28), rgba(17,157,184,.28));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: border-pan 7s linear infinite;
}
@keyframes border-pan{ to { background-position: 200% 0; } }

.form-card__head{
  display:flex; align-items:center; gap:12px;
  padding: 16px 18px; border-bottom:1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(249,253,255,.8), rgba(255,255,255,.9)),
    linear-gradient(90deg, rgba(18,178,232,.12), rgba(14,211,165,.08));
  backdrop-filter: saturate(120%) blur(2px);
}
.form-card__head .dot{
  width:12px; height:12px; border-radius:50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(17,157,184,.5);
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping{
  0% { box-shadow: 0 0 0 0 rgba(17,157,184,.45); }
  70% { box-shadow: 0 0 0 12px rgba(17,157,184,0); }
  100% { box-shadow: 0 0 0 0 rgba(17,157,184,0); }
}
.form-card__head h3{
  margin:0; font: 900 1.05rem/1.1 system-ui, Segoe UI, Inter; text-transform: uppercase; letter-spacing:.3px;
  color:#0e2a3d;
}
.form-card__head p{ margin:2px 0 0; color: var(--ink-2); }

/* ---------- form (now with color washes) ---------- */
.join-form{
  display:grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap:16px;
  padding:18px;
  border-radius: calc(var(--radius) - 2px);
  position: relative;
  background:
    radial-gradient(560px 220px at -8% 0%, rgba(17,157,184,.10), transparent 60%),
    radial-gradient(500px 240px at 108% 10%, rgba(14,211,165,.10), transparent 62%),
    conic-gradient(from 210deg at 60% -40%, rgba(17,157,184,.06), rgba(14,211,165,.06), rgba(17,157,184,.06));
}

/* faint pattern tint on fields */
.field{
  display:flex; flex-direction:column; gap:8px;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.92));
  border:1px solid #e8f1f6;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 1px 0 rgba(17,157,184,.06) inset;
}
.join-form .field:nth-child(odd){
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.98)),
    radial-gradient(320px 120px at -10% 0%, rgba(17,157,184,.06), transparent 60%);
}

/* labels/legends with brand accent */
label, legend{
  font-weight:800; font-size:.98rem; color:#0e2a3d; letter-spacing:.2px;
}
.req{ color:#d43; margin-left:4px; }
.opt{ color:var(--muted); font-weight:700; }

/* inputs — color ring on focus */
input[type="text"],
input[type="tel"],
input[type="email"],
textarea{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  outline:none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
textarea{ resize:vertical; }

input:focus, textarea:focus{
  border-color:#b9dff2;
  box-shadow:0 0 0 3px rgba(18,178,232,.18);
  background: linear-gradient(0deg, rgba(17,157,184,.03), rgba(17,157,184,.03)), #fff;
}

/* colorful focus-within on each block */
.field:focus-within{
  border-color: rgba(17,157,184,.45);
  box-shadow:
    0 0 0 3px rgba(18,178,232,.10),
    0 1px 0 rgba(17,157,184,.10) inset;
}

/* hint */
.hint{ color:#4f6a79; font-size:.85rem; }

/* radios -> pills */
.field-inline{
  display:flex; align-items:center; gap:14px; padding-top:6px; flex-wrap:wrap;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.96));
}
.radio{
  display:inline-flex; align-items:center;
  padding:10px 22px; border-radius:999px; border:2px solid #e3eef4;
  background: linear-gradient(180deg, #ffffff, #f7fcfe);
  font-weight:800; color:#0e2a3d; cursor:pointer;
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
  user-select:none;
}
.radio input{ display:none; }
.radio:hover{ border-color:#a8d8ec; transform: translateY(-1px); }
.radio:has(input:checked){
  border-color: var(--brand);
  background: linear-gradient(180deg, #e8f9ff, #d4f4fb);
  box-shadow: 0 0 0 3px rgba(18,178,232,.15);
}

/* full-width row */
.field-full{ grid-column:1 / -1; }

/* actions */
.actions{ grid-column:1 / -1; display:flex; flex-direction:column; gap:8px; }
.btn{
  align-self:flex-start;
  text-decoration:none; border:none; cursor:pointer;
  padding:.78rem 1.2rem; border-radius:999px; font-weight:900; letter-spacing:.25px;
  color:#052734;
  background:linear-gradient(100deg, var(--brand), var(--brand-2) 60%, var(--brand));
  background-size: 200% 100%;
  box-shadow:0 12px 26px rgba(0,0,0,.10);
  transition: background-position .4s ease, transform .15s ease, box-shadow .25s ease, filter .25s ease;
}
.btn:hover{
  background-position: 100% 0;
  transform: translateY(-1px);
  filter: saturate(1.06) contrast(1.02);
  box-shadow:0 16px 36px rgba(0,0,0,.14);
}
.small{ color:#5c7481; font-size:.92rem; font-weight:650; }

/* status messages */
.status{ margin-top:6px; padding:10px 12px; border-radius:10px; font-weight:800; }
.status.ok{ background:#e9fbf2; color:#0c4d2e; border:1px solid #b7f0d1; }
.status.error{ background:#fff3f1; color:#8b1d1d; border:1px solid #ffd7d2; }

/* anti-spam hidden field */
.hp{ position:absolute; left:-50000px; top:auto; width:1px; height:1px; overflow:hidden; }

/* ---------- contact tiles ---------- */
.contact-tiles{
  display:grid; grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap:14px; margin-top:22px;
}
.tile{
  display:flex; align-items:center; gap:10px;
  text-decoration:none; color:inherit; background:#fff;
  border:1px solid var(--line); border-radius:12px; padding:12px 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  transition: box-shadow .25s ease, transform .25s ease;
}
.tile:hover{ box-shadow: 0 10px 28px rgba(0,0,0,.10); transform: translateY(-2px); }
.tile .icon{ font-size: 1.2rem; }
.tile h4{ margin:0 0 2px; font-weight:900; letter-spacing:.2px; }
.tile p{ margin:0; color:var(--muted); font-weight:650; }

/* ---------- reveal ---------- */
.reveal{ opacity:0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in{ opacity:1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .join-form{ grid-template-columns: 1fr; }
  .field-inline{ flex-wrap:wrap; align-items:flex-start; }
  .contact-tiles{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .join-hero{ min-height: 36vh; }
  .contact-tiles{ grid-template-columns: 1fr; }
}

/* ---- keep your existing file; ensure these parts exist ---- */

/* Radios -> pills (already in your file) */
/* .field-inline, .radio { ... } */

/* Checkboxes -> pills (matches the radio look) */
.check{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px; border:1px solid #e3eef4;
  background: linear-gradient(180deg, #ffffff, #f7fcfe);
  box-shadow: 0 1px 0 rgba(17,157,184,.06) inset;
  font-weight:800; color:#0e2a3d;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.check input{ width:18px; height:18px; accent-color: var(--brand); }
.check:hover{ border-color:#cfe6f1; transform: translateY(-1px); }

/* 'Other' small textbox inline with the pill */
.check--other{
  gap:10px;
}
.other-input{
  min-width: 180px;
  max-width: 260px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
}
.other-input:disabled{
  opacity:.6;
  background:#f7fafc;
}
