/* TX Course Signup – front (dark design from course-signup-build/preview). All rules scoped to .txcs */
.txcs{color-scheme:dark;--bg:#0b0b0b;--bg-green:#0b120e;--card:#111;--card-alt:#1a1a1a;--border:#3a3a3a;--accent:#9be15d;--grad-a:#A9FF68;--grad-b:#FF8989;--on-green:#0b1a0f;--text:#f5f5f5;--muted:#9a9a9a;--error:#e5484d;--warn:#f0b429;--radius:8px;
  background:var(--bg);color:var(--text);font-family:"Noto Sans TC","Noto Sans CJK TC",Inter,system-ui,sans-serif;font-size:16px;line-height:1.7;-webkit-font-smoothing:antialiased}
.txcs *{box-sizing:border-box}
.txcs a{color:#9be15d;text-decoration:underline;text-underline-offset:2px}
/* Privacy / text links stay accent; primary CTA buttons must stay dark on the gradient (#4). */
.txcs.txcs-root a:not(.txcs-btn),
.txcs.txcs-root .txcs-consent a{color:#9be15d!important;text-decoration:underline!important;text-underline-offset:2px}
.txcs h1,.txcs h2,.txcs h3{color:var(--text);margin:0 0 16px;line-height:1.25;font-weight:700}
.txcs h1{font-size:clamp(32px,4.4vw,48px)}
.txcs h2{font-size:clamp(26px,3.2vw,34px)}
.txcs h3{font-size:21px}
.txcs p{margin:0 0 10px}
.txcs-wrap{width:min(1140px,calc(100% - 48px));margin:0 auto}
.txcs-wrap-narrow{width:min(800px,calc(100% - 48px));margin:0 auto}
.txcs-sec{padding:72px 0}
.txcs-alt{background:var(--bg-green)}
.txcs-mute{background:var(--card-alt)}
.txcs-eyebrow{font-family:Inter,sans-serif;font-size:13px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--accent)}
.txcs-lead{font-size:18px;color:var(--muted);max-width:42em;margin-bottom:24px}
.txcs-muted{color:var(--muted)}
.txcs-small{font-size:14px}
.txcs-pills{color:var(--muted);font-size:14px;margin-top:24px}
.txcs-btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:14px 40px;border-radius:999px;font-size:17px;font-weight:700;letter-spacing:.06em;border:0;cursor:pointer;font-family:inherit;line-height:1.2;text-decoration:none}
.txcs a.txcs-btn,
.txcs.txcs-root a.txcs-btn{text-decoration:none!important}
.txcs .txcs-btn-primary,
.txcs a.txcs-btn-primary,
.txcs.txcs-root a.txcs-btn-primary{background:linear-gradient(135deg,var(--grad-a),var(--grad-b));color:#0b1a0f!important;text-decoration:none!important}
.txcs a.txcs-btn-ghost,
.txcs.txcs-root a.txcs-btn-ghost{background:transparent;color:var(--accent)!important}
.txcs .txcs-btn-ghost{background:transparent;color:var(--accent);border:1px solid var(--accent)}
.txcs .txcs-btn-ghost:hover{background:var(--accent);color:var(--on-green)}
.txcs-btn-sm{min-height:36px;padding:6px 18px;font-size:14px}
.txcs-btn-row{display:flex;flex-wrap:wrap;gap:16px;align-items:center}
.txcs-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.txcs-grid-4{grid-template-columns:repeat(4,1fr)}
.txcs-grid-plans{grid-template-columns:1fr}
.txcs-two{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.txcs-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:24px;display:flex;flex-direction:column;gap:10px}
.txcs-card h3{margin:0}
.txcs-course .txcs-btn,.txcs-plan .txcs-btn{margin-top:auto;align-self:flex-start}
.txcs-poster{width:100%;border-radius:var(--radius);aspect-ratio:4/5;object-fit:cover}
.txcs-tag,.txcs-badge{font-family:Inter,sans-serif;font-size:13px;font-weight:600;color:var(--accent);margin:0}
.txcs-slogan{color:var(--muted)}
.txcs-price{color:var(--accent)}
.txcs-body p{font-size:15px;margin:0 0 6px}
.txcs-step{font-family:Inter,sans-serif;font-size:18px;font-weight:700;color:var(--accent);margin:0}
.txcs-list{margin:0;padding-left:1.2em}
.txcs-list li{margin:0 0 8px}
.txcs-list strong{color:var(--text)}
.txcs-full{color:var(--warn);font-style:normal;font-size:13px}
.txcs-outline summary{cursor:pointer;color:var(--accent);font-weight:600}
.txcs-outline ol{margin:8px 0 0;padding-left:1.4em;font-size:15px}
.txcs-faq details{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);margin:0 0 10px;padding:0 20px}
.txcs-faq summary{cursor:pointer;list-style:none;padding:16px 0;font-weight:600;display:flex;justify-content:space-between;gap:16px}
.txcs-faq summary::-webkit-details-marker{display:none}
.txcs-faq summary::after{content:"+";color:var(--accent);font-size:20px;font-weight:400}
.txcs-faq details[open] summary{color:var(--accent)}
.txcs-faq details[open] summary::after{content:"–"}
.txcs-faq-a{padding:0 0 16px}
/* form */
.txcs-form{display:flex;flex-direction:column;gap:18px}
.txcs-form-section{font-size:22px;margin:24px 0 0;padding-top:16px;border-top:1px solid var(--border)}
.txcs-field{display:flex;flex-direction:column;gap:8px}
.txcs-label{font-size:15px;font-weight:600;margin:0}
.txcs-req{color:var(--accent);margin-left:4px}
.txcs-help{font-size:13px;color:var(--muted);margin:0}
.txcs.txcs-root .txcs-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=image]):not([type=date]):not([type=time]),
.txcs.txcs-root .txcs-form-wrap input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=date]):not([type=time]),
.txcs.txcs-root input[type=text],
.txcs.txcs-root input[type=email],
.txcs.txcs-root input[type=tel],
.txcs.txcs-root input[type=number],
.txcs.txcs-root input[type=url],
.txcs.txcs-root select,
.txcs.txcs-root textarea{
  appearance:none;-webkit-appearance:none;
  width:100%;max-width:100%;
  background-color:#111!important;background-image:none!important;
  color:#f5f5f5!important;
  border:1px solid #3a3a3a!important;
  border-radius:8px!important;
  box-shadow:none!important;
  padding:12px 14px!important;
  font-size:16px!important;font-family:inherit!important;line-height:1.5!important;
  caret-color:#9be15d;
}
.txcs.txcs-root select{
  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='%239a9a9a' d='M1 1l5 5 5-5'/></svg>")!important;
  background-repeat:no-repeat!important;
  background-position:right 14px center!important;
  background-size:12px 8px!important;
  padding-right:40px!important;
}
.txcs.txcs-root option,.txcs.txcs-root optgroup{background-color:#111;color:#f5f5f5}
.txcs.txcs-root input::placeholder,
.txcs.txcs-root textarea::placeholder{color:#9a9a9a!important;opacity:1!important}
.txcs.txcs-root input:focus,
.txcs.txcs-root select:focus,
.txcs.txcs-root textarea:focus{
  outline:none!important;
  border-color:#9be15d!important;
  box-shadow:0 0 0 2px rgba(155,225,93,.35)!important;
}
.txcs-date-wrap{position:relative;width:100%}
.txcs.txcs-root input[type=date],
.txcs.txcs-root input[type=time],
.txcs.txcs-root input.txcs-date{
  appearance:auto!important;-webkit-appearance:auto!important;
  color-scheme:dark;
  width:100%;max-width:100%;min-height:48px;
  background-color:#111!important;
  color:#f5f5f5!important;
  border:1px solid #3a3a3a!important;
  border-radius:8px!important;
  box-shadow:none!important;
  padding:12px 48px 12px 14px!important;
  font-size:16px!important;font-family:inherit!important;line-height:1.5!important;
  caret-color:#9be15d;
}
.txcs.txcs-root input[type=date]:focus,
.txcs.txcs-root input.txcs-date:focus{
  outline:none!important;
  border-color:#9be15d!important;
  box-shadow:0 0 0 2px rgba(155,225,93,.35)!important;
}
.txcs.txcs-root input[type=date]::-webkit-datetime-edit,
.txcs.txcs-root input[type=date]::-webkit-datetime-edit-fields-wrapper,
.txcs.txcs-root input[type=date]::-webkit-datetime-edit-text,
.txcs.txcs-root input[type=date]::-webkit-datetime-edit-month-field,
.txcs.txcs-root input[type=date]::-webkit-datetime-edit-day-field,
.txcs.txcs-root input[type=date]::-webkit-datetime-edit-year-field{
  color:#f5f5f5!important;
  background:transparent!important;
}
.txcs.txcs-root input[type=date]::-webkit-datetime-edit-month-field:focus,
.txcs.txcs-root input[type=date]::-webkit-datetime-edit-day-field:focus,
.txcs.txcs-root input[type=date]::-webkit-datetime-edit-year-field:focus{
  background:#1f2a14!important;
  color:#9be15d!important;
  outline:none;
}
/* Hide the native (often dark-on-dark) icon; our green button opens the picker. */
.txcs.txcs-root input[type=date]::-webkit-calendar-picker-indicator{
  opacity:0;width:1px;height:1px;margin:0;padding:0;pointer-events:none;
}
.txcs-date-btn{
  position:absolute;right:8px;top:50%;transform:translateY(-50%);
  width:32px;height:32px;padding:0;border:0;background:transparent;
  color:#9be15d;cursor:pointer;display:flex;align-items:center;justify-content:center;
  z-index:2;
}
.txcs-date-btn svg{display:block}
/* Fallback text field (browsers that don't support type=date). */
.txcs.txcs-root input.txcs-date[type=text]{padding-right:48px!important}
.txcs-date-wrap.is-text .txcs-date-btn{pointer-events:none;opacity:.7}
.txcs-choices{display:flex;flex-direction:column;gap:8px}
.txcs-choices.cols{display:grid;grid-template-columns:1fr 1fr}
.txcs-choice{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px;background:#111;border:1px solid #3a3a3a;border-radius:6px;padding:10px 12px;cursor:pointer;color:#f5f5f5}
.txcs-choice:has(input:checked){border-color:#9be15d;background:#1f2a14}
.txcs-choice>span{flex:1;min-width:0}
.txcs.txcs-root .txcs-choice input[type=checkbox],
.txcs.txcs-root .txcs-choice input[type=radio]{
  appearance:none;-webkit-appearance:none;
  width:18px;height:18px;margin:3px 0 0;flex:none;
  background:#111!important;border:1px solid #3a3a3a!important;
  box-shadow:none!important;padding:0!important;
  display:grid;place-content:center;accent-color:#9be15d;
}
.txcs.txcs-root .txcs-choice input[type=radio]{border-radius:50%!important}
.txcs.txcs-root .txcs-choice input[type=checkbox]{border-radius:3px!important}
.txcs.txcs-root .txcs-choice input[type=checkbox]:checked,
.txcs.txcs-root .txcs-choice input[type=radio]:checked{background:#9be15d!important;border-color:#9be15d!important}
.txcs.txcs-root .txcs-choice input[type=checkbox]:checked::after{content:"";width:10px;height:6px;border:2px solid #040503;border-top:0;border-right:0;transform:rotate(-45deg) translate(1px,-1px)}
.txcs.txcs-root .txcs-choice input[type=radio]:checked::after{content:"";width:6px;height:6px;border-radius:50%;background:#040503}
.txcs-other-wrap{margin-top:4px;width:100%}
.txcs-other-wrap[hidden]{display:none!important}
.txcs-choice-detail{display:block;flex:1 0 100%;margin:4px 0 0 28px;color:#9a9a9a}
.txcs-choice-disabled{cursor:not-allowed;opacity:.72}
.txcs-coming-label,.txcs-status-coming{color:#9be15d;font-style:normal;font-weight:600}
.txcs .txcs-btn-coming{background:#1a1a1a;color:#9be15d;border:1px solid #3a3a3a;cursor:not-allowed;pointer-events:none;margin-top:auto;align-self:flex-start}
.txcs-js .txcs-field[data-show-if]:not(.txcs-shown),
.txcs-js .txcs-form-section.txcs-section-empty{display:none!important}
@supports selector(:has(*)){
  .txcs-choice-detail{display:none}
  .txcs-choice:has(input:checked) .txcs-choice-detail{display:block}
  .txcs-other-wrap{display:none}
  .txcs-field:has(select option[value="__other__"]:checked) .txcs-other-wrap,
  .txcs-field:has(input[value="__other__"]:checked) .txcs-other-wrap{display:block}
}
.txcs-field.has-error input,.txcs-field.has-error select,.txcs-field.has-error textarea,.txcs-field.has-error .txcs-choice{border-color:var(--error)}
.txcs-error-text{color:var(--error);font-size:14px;margin:0}
.txcs-alert{background:rgba(229,72,77,.12);border:1px solid var(--error);color:#ffd7d8;border-radius:var(--radius);padding:14px 16px;margin-bottom:16px}
.txcs-test-note{background:rgba(240,180,41,.12);border:1px solid var(--warn);color:var(--warn);border-radius:var(--radius);padding:10px 14px;font-size:14px}
.txcs-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.txcs-submit{display:flex;flex-direction:column;gap:10px;align-items:flex-start;margin-top:12px}
.txcs-success h2{color:var(--accent)}
.txcs-success-body{font-size:16px}
.txcs-contact p{margin:0 0 8px}
@media (max-width:900px){.txcs-grid,.txcs-grid-4,.txcs-two{grid-template-columns:1fr}.txcs-btn{width:100%;max-width:340px;font-size:16px}.txcs-sec{padding:52px 0}}
@media (max-width:600px){.txcs-choices.cols{grid-template-columns:1fr}.txcs-wrap,.txcs-wrap-narrow{width:calc(100% - 32px)}}
@media (max-width:1024px){
  .txcs .txcs-choice{min-height:44px;align-items:center;padding-top:12px;padding-bottom:12px}
  .txcs.txcs-root .txcs-choice input[type=checkbox],
  .txcs.txcs-root .txcs-choice input[type=radio]{width:22px;height:22px;margin:0}
}

/* Order total (above submit) and success summary */
.txcs-total{margin:8px 0 0;background:#111;border:1px solid #3a3a3a;border-radius:12px;padding:20px 22px;color:#f5f5f5}
.txcs-total-title{margin:0 0 10px;font-size:14px;font-weight:700;letter-spacing:.12em;color:#9be15d}
.txcs-total-nojs{margin:0;color:#9a9a9a;font-size:14px}
.txcs-form.txcs-js .txcs-total-nojs{display:none}
.txcs-form:not(.txcs-js) .txcs-total-live{display:none}
.txcs-total-lines{list-style:none;margin:0;padding:0}
.txcs-total-lines li{display:flex;justify-content:space-between;gap:16px;padding:8px 0;border-bottom:1px solid #222;font-size:15px}
.txcs-total-lines li span:last-child{white-space:nowrap}
.txcs-total-empty{margin:0;color:#9a9a9a;font-size:15px}
.txcs-total-empty[hidden],.txcs-total-note[hidden]{display:none}
.txcs-total-note{margin:10px 0 0;color:#9a9a9a;font-size:13px}
.txcs-total-sum{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-top:14px}
.txcs-total-label{font-size:15px;color:#9a9a9a}
.txcs-total-amount{font-size:40px;line-height:1.15;font-weight:800;color:#9be15d;font-variant-numeric:tabular-nums}
.txcs-total-done{margin:0 0 20px}
@media (max-width:520px){.txcs-total{padding:16px}.txcs-total-amount{font-size:32px}}

/* Notices: laptop / no companions */
.txcs-notice{margin:0 0 16px;background:#1f2a14;border:1px solid #3d5a22;border-radius:12px;padding:14px 18px;color:#f5f5f5}
.txcs-notice p{margin:0;font-size:15px;line-height:1.6}
.txcs-notice p + p{margin-top:6px}
.txcs-notice strong{color:#9be15d;font-weight:700}
.txcs-field[data-key=attendees] .txcs-help{color:#f5f5f5}
