/* ============================================================
   TaranQ intake — stylesheet
   Colours sampled directly from the TaranQ logo and live UI.
   ============================================================ */

:root {
  --tq-brand:        #522C87;  /* logo purple */
  --tq-action:       #4A0FCB;  /* primary buttons in the app */
  --tq-action-hover: #3A0AA3;
  --tq-deep:         #4E317E;  /* purple panel gradient start */
  --tq-deep-2:       #6841DB;  /* purple panel gradient end */
  --tq-gold:         #EEB300;  /* logo arrow / priority accent */
  --tq-gold-soft:    #FDF6DC;
  --tq-ink:          #16131B;  /* sidebar black */
  --tq-navy:         #29183D;  /* body headings */
  --tq-body:         #4B4658;
  --tq-muted:        #7A7488;
  --tq-bg:           #FAF9FF;
  --tq-surface:      #FFFFFF;
  --tq-line:         #E7E3F2;
  --tq-lilac:        #F1ECFE;
  --tq-ok:           #17794C;
  --tq-ok-bg:        #E6F5EE;
  --tq-err:          #B3261E;
  --tq-err-bg:       #FDECEA;
  --tq-r:            14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--tq-body);
  background: var(--tq-bg);
}

/* ---------- masthead ---------- */
.tq-mast {
  background: var(--tq-surface);
  border-bottom: 1px solid var(--tq-line);
  padding: 14px 20px;
}
.tq-mast-in {
  max-width: 780px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.tq-mast img { height: 34px; width: auto; display: block; }
.tq-mast a { color: var(--tq-action); text-decoration: none; font-weight: 600; font-size: 14px; }
.tq-mast a:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.tq-hero {
  background: linear-gradient(135deg, var(--tq-deep) 0%, var(--tq-deep-2) 100%);
  color: #fff;
  padding: 44px 20px 40px;
}
.tq-hero-in { max-width: 780px; margin: 0 auto; }
.tq-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--tq-gold); margin: 0 0 12px;
}
.tq-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5.4vw, 44px);
  line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: #fff;
}
.tq-hero p { margin: 0; max-width: 60ch; color: rgba(255,255,255,0.88); font-size: 17px; }

.tq-badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tq-badge {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px; padding: 6px 14px;
  font-size: 13px; font-weight: 600; color: #fff;
}

/* ---------- layout ---------- */
.tq-wrap { max-width: 780px; margin: 0 auto; padding: 28px 20px 64px; }

.tq-card {
  background: var(--tq-surface);
  border: 1px solid var(--tq-line);
  border-radius: var(--tq-r);
  padding: 28px;
  margin-bottom: 20px;
}

/* founding-member panel — the one loud element */
.tq-founding {
  background: var(--tq-gold-soft);
  border: 1px solid var(--tq-gold);
  border-left: 5px solid var(--tq-gold);
  border-radius: var(--tq-r);
  padding: 20px 22px;
  margin-bottom: 24px;
}
.tq-founding h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--tq-navy); }
.tq-founding p  { margin: 0; font-size: 15px; color: var(--tq-body); }

/* ---------- form sections ---------- */
.tq-sec { border-top: 1px solid var(--tq-line); padding-top: 26px; margin-top: 26px; }
.tq-sec:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.tq-sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.tq-step {
  flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--tq-lilac); color: var(--tq-action);
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.tq-sec h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--tq-navy); letter-spacing: -0.01em; }
.tq-sec-note { margin: 0 0 20px 38px; font-size: 14px; color: var(--tq-muted); }

/* ---------- fields ---------- */
.tq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tq-field { margin-bottom: 16px; }
.tq-field.tq-full { grid-column: 1 / -1; }

.tq-field label {
  display: block; margin-bottom: 6px;
  font-size: 14px; font-weight: 600; color: var(--tq-navy);
}
.tq-opt { font-weight: 500; color: var(--tq-muted); }
.tq-help { margin: 6px 0 0; font-size: 13px; color: var(--tq-muted); }

input[type=text], input[type=email], input[type=tel], input[type=url],
input[type=number], input[type=date], input[type=password], select, textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit; font-size: 15px;
  color: var(--tq-navy);
  background: #fff;
  border: 1px solid var(--tq-line);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 104px; resize: vertical; line-height: 1.55; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%237A7488' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--tq-action);
  box-shadow: 0 0 0 3px rgba(74,15,203,0.14);
}
input[type=file] {
  font-size: 14px; color: var(--tq-body);
  padding: 9px; width: 100%;
  border: 1px dashed var(--tq-line); border-radius: 10px; background: #fff;
}
input[type=file]::file-selector-button {
  font: inherit; font-weight: 600; font-size: 13px;
  margin-right: 10px; padding: 7px 12px; cursor: pointer;
  color: var(--tq-action); background: var(--tq-lilac);
  border: 0; border-radius: 7px;
}

/* checkbox chips
   NOTE: selectors below are deliberately written as `label.tq-chip` so they
   outrank the `.tq-field label { display:block }` rule above. */
.tq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tq-field label.tq-chip,
label.tq-chip {
  display: inline-flex; align-items: center; gap: 7px;
  width: auto; margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--tq-line); border-radius: 999px;
  background: #fff; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--tq-navy);
  transition: background .15s, border-color .15s;
}
label.tq-chip input[type=checkbox] {
  margin: 0; accent-color: var(--tq-action);
  width: 16px; height: 16px; flex: 0 0 auto;
}
label.tq-chip:hover { border-color: #C9BEE8; }
label.tq-chip:has(input:checked) { background: var(--tq-lilac); border-color: var(--tq-action); }
label.tq-chip:focus-within { box-shadow: 0 0 0 3px rgba(74,15,203,0.14); }

/* consent */
.tq-consent,
label.tq-consent {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 14px; margin-bottom: 12px;
  background: var(--tq-bg); border: 1px solid var(--tq-line); border-radius: 10px;
}
.tq-consent input { margin: 3px 0 0; accent-color: var(--tq-action); flex: 0 0 auto;
  width: 17px; height: 17px; }
.tq-consent span { font-size: 14px; line-height: 1.55; }
.tq-consent a { color: var(--tq-action); }

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

/* ---------- buttons ---------- */
.tq-btn {
  display: inline-block; border: 0; cursor: pointer;
  padding: 14px 30px; border-radius: 10px;
  font: inherit; font-size: 16px; font-weight: 700;
  background: var(--tq-action); color: #fff;
  text-decoration: none; text-align: center;
  transition: background .15s, transform .05s;
}
.tq-btn:hover  { background: var(--tq-action-hover); }
.tq-btn:active { transform: translateY(1px); }
.tq-btn:focus-visible { outline: 3px solid var(--tq-gold); outline-offset: 2px; }
.tq-btn[disabled] { opacity: .6; cursor: progress; }
.tq-btn-ghost { background: #fff; color: var(--tq-action); border: 1px solid var(--tq-line); }
.tq-btn-ghost:hover { background: var(--tq-lilac); }
.tq-btn-sm { padding: 8px 16px; font-size: 14px; }
.tq-btn-gold { background: var(--tq-gold); color: var(--tq-ink); }
.tq-btn-gold:hover { background: #D9A300; }

/* ---------- messages ---------- */
.tq-alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 15px; }
.tq-alert-err { background: var(--tq-err-bg); border: 1px solid #F3C0BC; color: var(--tq-err); }
.tq-alert-ok  { background: var(--tq-ok-bg);  border: 1px solid #BFE3D2; color: var(--tq-ok); }
.tq-alert ul  { margin: 8px 0 0; padding-left: 20px; }

/* ---------- success page ---------- */
.tq-ref {
  text-align: center; padding: 30px 20px; margin: 22px 0;
  background: var(--tq-lilac); border-radius: var(--tq-r);
}
.tq-ref-label { font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--tq-brand); margin: 0 0 6px; }
.tq-ref-code { font-size: 36px; font-weight: 800; color: var(--tq-action);
  letter-spacing: .03em; margin: 0; }

/* ---------- admin ---------- */
.tq-admin-wrap { max-width: 1280px; margin: 0 auto; padding: 24px 20px 60px; }
.tq-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin-bottom: 22px; }
.tq-stat { background: #fff; border: 1px solid var(--tq-line);
  border-radius: 12px; padding: 16px 18px; }
.tq-stat b { display: block; font-size: 27px; font-weight: 800; color: var(--tq-navy); line-height: 1.2; }
.tq-stat span { font-size: 12px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--tq-muted); }

.tq-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 18px; }
.tq-tools .tq-field { margin: 0; }

.tq-table-wrap { background: #fff; border: 1px solid var(--tq-line);
  border-radius: 12px; overflow-x: auto; }
table.tq-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tq-table th {
  text-align: left; padding: 12px 14px; white-space: nowrap;
  background: var(--tq-bg); border-bottom: 1px solid var(--tq-line);
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--tq-muted);
}
.tq-table td { padding: 12px 14px; border-bottom: 1px solid var(--tq-line);
  vertical-align: top; color: var(--tq-body); }
.tq-table tr:last-child td { border-bottom: 0; }
.tq-table tr:hover td { background: #FCFBFF; }
.tq-table strong { color: var(--tq-navy); }
.tq-table a { color: var(--tq-action); }

.tq-pill { display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap; }
.tq-pill-new        { background: var(--tq-lilac);   color: var(--tq-action); }
.tq-pill-reviewing  { background: #FFF4D6;           color: #8A6100; }
.tq-pill-shortlisted{ background: #E4EEFF;           color: #1F4FB5; }
.tq-pill-verified   { background: var(--tq-ok-bg);   color: var(--tq-ok); }
.tq-pill-onhold     { background: #EFEDF3;           color: var(--tq-muted); }
.tq-pill-rejected   { background: var(--tq-err-bg);  color: var(--tq-err); }

.tq-login { max-width: 380px; margin: 70px auto; }

/* ---------- footer ---------- */
.tq-foot { text-align: center; padding: 26px 20px 40px;
  font-size: 13px; color: var(--tq-muted); }
.tq-foot a { color: var(--tq-muted); }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .tq-grid { grid-template-columns: 1fr; }
  .tq-card { padding: 20px; }
  .tq-hero { padding: 34px 20px 32px; }
  .tq-sec-note { margin-left: 0; }
  .tq-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
