/* ============================================================
   Tehmoor Khan — Masterclass Registration Form
   Deep navy brand UI · Mint-green conversion accent
   ============================================================ */

/* ── Reset ── */
.tm-wrap *, .tm-wrap *::before, .tm-wrap *::after { box-sizing: border-box; }

/* ── Wrap / Card ── */
.tm-wrap {
  --blue:   #6ee88f;
  --purple: #4fd975;
  --grad:   linear-gradient(135deg, #a8f7b6 0%, var(--blue) 46%, var(--purple) 100%);
  --card:   rgba(13, 18, 31, .86);
  --input:  rgba(5, 9, 18, .24);
  --border: rgba(202,213,230,.34);
  --focus:  rgba(110,232,143,.48);
  --text:   #f8fafc;
  --muted:  rgba(248,250,252,.62);
  --err:    #f87171;
  --green:  #6ee88f;
  --navy:   #050a18;
  --navy-2: #0a1630;

  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 40px 36px 36px;
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 30px 95px rgba(0,0,0,.58), 0 1px 0 rgba(255,255,255,.05) inset;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Decorative glow */
.tm-wrap::before {
  content: '';
  position: absolute;
  top: -90px; right: -70px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(110,232,143,.14) 0%, rgba(29,78,216,.06) 46%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.tm-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,.035), transparent 34%);
  pointer-events: none;
  z-index: 0;
}

/* ── Progress topbar (now dots) ── */
.tm-topbar { display: none; }   /* legacy bar hidden */

.tm-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.tm-dot {
  width: 30px; height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  transition: background .35s;
}
.tm-dot.active { background: var(--blue); box-shadow: 0 0 18px rgba(110,232,143,.34); }

/* ── Step badge (top-right) ── */
.tm-step-badge {
  position: absolute;
  top: 18px; right: 24px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(248,250,252,.48);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  z-index: 2;
}

/* ── Steps ── */
.tm-step { display: none; animation: tmFadeUp .35s ease both; position: relative; z-index: 1; }
.tm-step.active { display: block; }

@keyframes tmFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Heading ── */
.tm-heading { margin-bottom: 26px; }
.tm-heading h2 {
  color: var(--text);
  font-size: 22px;
  font-weight: 760;
  margin: 0 0 8px;
  letter-spacing: -.3px;
  line-height: 1.25;
}
.tm-heading p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ── Inline SVG icons ── */
.tm-icon {
  width: 14px; height: 14px;
  display: inline-block;
  vertical-align: -2px;
  flex-shrink: 0;
}
.tm-event-meta .tm-icon { color: rgba(255,255,255,.45); }
.tm-seats-remaining .tm-icon { color: currentColor; }
.tm-counter .tm-icon { color: var(--blue); }

/* ── Event info box ── */
.tm-event-info {
  background: linear-gradient(145deg, rgba(14, 28, 54, .78), rgba(11, 20, 38, .68));
  border: 1px solid rgba(110,232,143,.18);
  border-radius: 16px;
  padding: 18px 18px;
  margin-bottom: 24px;
  position: relative; z-index: 1;
  box-shadow: 0 1px 0 rgba(255,255,255,.045) inset;
}
.tm-event-title { color: var(--text); font-size: 15px; font-weight: 760; margin-bottom: 8px; letter-spacing: -.1px; }
.tm-event-meta  { color: rgba(248,250,252,.58); font-size: 13px; }
.tm-seats-remaining {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 12px; font-weight: 800;
  color: #6ee88f;
  background: rgba(110,232,143,.14);
  border: 1px solid rgba(110,232,143,.08);
  border-radius: 999px;
  padding: 5px 12px;
}
.tm-seats-remaining.tm-seats-low { color: #fb923c; background: rgba(251,146,60,.1); }

/* ── Social counter ── */
.tm-counter {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.tm-counter strong { color: var(--text); }

/* ── Fields ── */
.tm-fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }

/* ── Individual field wrapper ── */
.tm-field { position: relative; }

.tm-field input,
.tm-field textarea {
  width: 100%;
  background: var(--input);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  padding: 0 50px 0 17px;
  height: 56px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none;
  appearance: none;
}
.tm-field input::placeholder,
.tm-field textarea::placeholder { color: rgba(132,151,175,.72); font-size: 15px; }

.tm-field textarea {
  height: auto;
  padding: 14px 18px;
  resize: none;
  line-height: 1.55;
}

.tm-field input:hover,
.tm-field textarea:hover { border-color: rgba(255,255,255,.54); }

.tm-field input:focus,
.tm-field textarea:focus {
  border-color: var(--blue);
  background: rgba(10,22,48,.46);
  box-shadow: 0 0 0 4px rgba(110,232,143,.12);
}

/* Invalid */
.tm-field input.tm-invalid,
.tm-field textarea.tm-invalid {
  border-color: var(--err);
  box-shadow: 0 0 0 3px rgba(248,113,113,.15);
  animation: tmShake .35s ease;
}
@keyframes tmShake {
  0%,100%{ transform:translateX(0); }
  25%    { transform:translateX(-5px); }
  75%    { transform:translateX(5px); }
}

/* ── Checkmark icon ── */
.tm-field-icon {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(110,232,143,.15);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.tm-field-icon.show { opacity: 1; }

/* ── Error text ── */
.tm-field-err {
  display: block;
  font-size: 12px;
  color: var(--err);
  margin-top: 5px;
  padding-left: 2px;
  max-height: 0; overflow: hidden;
  transition: max-height .2s;
}
.tm-field-err.show { max-height: 40px; }

/* ── Label hint ── */
.tm-label-hint { opacity: .5; font-size: .9em; }

/* ── Honeypot ── */
.tm-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ══════════════════════════════════
   PRIMARY BUTTON — green brand pill
══════════════════════════════════ */
.tm-btn-primary {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  height: 54px !important;
  background: var(--grad) !important;
  color: #06101c !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  border: none !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  letter-spacing: .2px !important;
  transition: opacity .2s, transform .15s, box-shadow .2s !important;
  box-shadow: 0 18px 44px rgba(74,222,128,.24), 0 1px 0 rgba(255,255,255,.42) inset !important;
  margin-bottom: 10px !important;
  position: relative !important;
  overflow: hidden !important;
  text-shadow: none !important;
  text-decoration: none !important;
  line-height: 1 !important;
}
.tm-btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s;
}
.tm-btn-primary:hover { transform: translateY(-1px) !important; box-shadow: 0 22px 54px rgba(74,222,128,.32), 0 1px 0 rgba(255,255,255,.48) inset !important; opacity: .96 !important; color: #06101c !important; }
.tm-btn-primary:hover::after { background: rgba(255,255,255,.07); }
.tm-btn-primary:active { transform: translateY(0) !important; }
.tm-btn-primary:disabled { opacity: .6 !important; cursor: default !important; transform: none !important; }
.tm-btn-primary:focus { outline: none !important; box-shadow: 0 0 0 4px rgba(110,232,143,.28), 0 18px 44px rgba(74,222,128,.24) !important; }

/* Arrow icon hidden */
.tm-btn-arrow { display: none !important; }

/* ── Spinner ── */
.tm-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tmSpin .7s linear infinite;
}
@keyframes tmSpin { to { transform: rotate(360deg); } }

/* ── Back button ── */
.tm-btn-back {
  background: none; border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color .2s;
  margin: 0;
}
.tm-btn-back:hover { color: var(--text); }

/* ── Footer row ── */
.tm-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding-top: 4px;
  position: relative; z-index: 1;
}
.tm-footer-left { flex-shrink: 0; }
.tm-footer-left .tm-step-label { font-size: 12px; color: var(--muted); letter-spacing: .3px; }
.tm-footer-right { flex: 1; display: flex; align-items: center; }

/* Inside the footer, the primary button fills its flex child (flex:1) */
.tm-footer-right .tm-btn-primary {
  flex: 1 !important;
  width: auto !important;
  margin-bottom: 0 !important;
}

/* ── Terms ── */
.tm-terms {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 8px 0 0;
  line-height: 1.5;
}
.tm-terms a { color: var(--blue); text-decoration: none; font-weight: 600; }
.tm-terms a:hover { text-decoration: underline; }

/* ── GDPR Consent ── */
.tm-consent { margin-top: 2px; }
.tm-check-label {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; font-size: 13px; color: var(--muted); line-height: 1.5;
}
.tm-check-label input[type="checkbox"] { display: none; }
.tm-checkmark {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1.5px solid var(--border); border-radius: 5px;
  background: var(--input);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  transition: background .2s, border-color .2s;
}
.tm-check-label input:checked ~ .tm-checkmark { background: var(--blue); border-color: var(--blue); }
.tm-check-label a { color: var(--blue); text-decoration: none; }

/* ── Inline error message ── */
.tm-inline-msg {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-top: 14px;
}
.tm-inline-msg.err { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.25); color: #fca5a5; }
.tm-inline-msg.ok  { background: rgba(52,211,153,.1);  border: 1px solid rgba(52,211,153,.25);  color: #6ee7b7; }

/* ── Event full ── */
.tm-event-full { text-align: center; padding: 24px 0; }
.tm-event-full-icon { font-size: 40px; margin-bottom: 12px; }
.tm-event-full h2 { color: var(--text); font-size: 20px; margin: 0 0 10px; }
.tm-event-full p  { color: var(--muted); font-size: 14px; margin: 0; }

/* ══════════════════════════════════
   SUCCESS SCREEN
══════════════════════════════════ */
.tm-success-content { text-align: center; padding: 16px 0; }
.tm-success-circle  { margin-bottom: 20px; }

.tm-circle-fill { animation: tmCircleDraw .7s .1s ease forwards; }
.tm-check-draw  { animation: tmCheckDraw  .4s .7s ease forwards; }
@keyframes tmCircleDraw { to { stroke-dashoffset: 0; } }
@keyframes tmCheckDraw  { to { stroke-dashoffset: 0; } }

.tm-success-content h2 { color: var(--text); font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.tm-success-content p  { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0 0 20px; }
.tm-success-quote {
  border-left: 2px solid var(--blue);
  margin: 0; padding: 10px 16px;
  text-align: left;
  border-radius: 0 6px 6px 0;
  background: rgba(110,232,143,.08);
  font-size: 13px; font-style: italic; color: var(--muted);
}
.tm-success-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: var(--blue); }

/* ══════════════════════════════════
   COUNTDOWN WIDGET
══════════════════════════════════ */
.tm-countdown { text-align: center; padding: 28px 24px; background: var(--card); border-radius: 14px; max-width: 420px; margin: 0 auto; }
.tm-countdown-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 16px; }
.tm-countdown-timer { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.tm-cd-block { display: flex; flex-direction: column; align-items: center; }
.tm-cd-num   { font-size: 42px; font-weight: 700; color: var(--text); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.tm-cd-unit  { font-size: 11px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }
.tm-cd-sep   { font-size: 36px; font-weight: 300; color: var(--muted); line-height: 1; margin-bottom: 14px; }
.tm-countdown-event { font-size: 13px; color: var(--muted); }
.tm-countdown--live { color: var(--green); font-weight: 600; font-size: 15px; margin: 0; }

/* ══════════════════════════════════
   COUNTER WIDGET
══════════════════════════════════ */
.tm-counter-widget {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(110,232,143,.10);
  border: 1px solid rgba(110,232,143,.18);
  border-radius: 24px; padding: 8px 18px;
  font-size: 14px; color: var(--muted);
}
.tm-counter-widget strong { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 480px) {
  .tm-wrap { padding: 28px 20px 24px; border-radius: 12px; }
  .tm-heading h2 { font-size: 20px; }
  .tm-btn-primary { height: 50px; font-size: 15px; }
  .tm-cd-num { font-size: 32px; }
}
