/* Contact page (/contact/): request form posted to the haxurus-requests WordPress plugin. Builds on site.css and commissions.css (.cx-head, .timeline). */

/* ---------- Hero ---------- */
.ct-hero { position: relative; padding: clamp(120px, 17vh, 180px) 0 0; }
.ct-hero::before { content: ""; position: absolute; inset: 0 0 -20%; z-index: -1; pointer-events: none; background: radial-gradient(50% 60% at 18% 30%, rgba(57, 255, 20, .13), transparent 70%), radial-gradient(40% 50% at 90% 10%, rgba(0, 234, 255, .1), transparent 70%); }
.ct-title { margin: 22px 0 0; font: 800 clamp(2.9rem, 8.4vw, 7.4rem)/.9 var(--f-display); letter-spacing: -.065em; max-width: 10ch; }
.ct-lead { margin-top: 26px; max-width: 620px; color: var(--mut); font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.75; }
.ct-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.ct-facts li { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-size: .88rem; font-weight: 600; }
.ct-facts b { font: 600 .7rem ui-monospace, "Cascadia Code", monospace; color: var(--g); }
.pill.is-paused i { background: #ffd166; animation: none; }


/* ---------- Paused notice ---------- */
.ct-paused { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; padding: 22px 24px; border-radius: 24px; border: 1px solid rgba(255, 209, 102, .45); background: rgba(255, 209, 102, .07); }
.ct-paused[hidden] { display: none; }
.ct-paused svg { flex: none; width: 26px; height: 26px; color: #ffd166; }
.ct-paused h3 { font: 800 1.2rem var(--f-display); letter-spacing: -.03em; }
.ct-paused p { margin-top: 6px; color: var(--mut); }
.ct-paused a, .ct-nojs a, .ct-check a { color: var(--g); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Form ---------- */
.ct-form { display: grid; gap: 18px; }
.ct-form.is-off { opacity: .45; pointer-events: none; filter: saturate(.4); }
.ct-nojs { padding: 16px 20px; border-radius: 18px; border: 1px solid rgba(255, 93, 125, .45); background: rgba(255, 93, 125, .08); }
.js .ct-nojs { display: none; }
.ct-step { margin: 0; padding: clamp(22px, 3.4vw, 36px); border-radius: 30px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); min-width: 0; transition: border-color .3s; }
.ct-step:focus-within { border-color: rgba(57, 255, 20, .32); }
.ct-step[hidden], .ct-send[hidden], .ct-qs[hidden], .ct-next[hidden] { display: none; }
.ct-step, .ct-send { scroll-margin-top: 96px; }
.ct-enter { animation: ct-enter .7s var(--ease) both; }
@keyframes ct-enter { from { opacity: 0; translate: 0 26px; scale: .985; } }
.ct-step__head { display: flex; align-items: center; gap: 14px; padding: 0; margin-bottom: 20px; float: left; width: 100%; }
.ct-step__head + * { clear: both; }
.ct-step__no { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--line-2); font: 800 .85rem var(--f-display); letter-spacing: -.03em; color: var(--dim); transition: background .3s, color .3s, border-color .3s; }
.ct-step.is-done .ct-step__no { background: var(--g); border-color: var(--g); color: #021005; }
.ct-step__t { font: 800 clamp(1.25rem, 2.4vw, 1.6rem) var(--f-display); letter-spacing: -.045em; }
.ct-step__sub { margin: -6px 0 18px; color: var(--mut); font-size: .92rem; max-width: 640px; clear: both; }
.ct-form em { font-style: normal; color: var(--g); }

.ct-group { margin: 6px 0 12px; font: 600 .72rem ui-monospace, "Cascadia Code", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); clear: both; }
.ct-group:not(:first-of-type) { margin-top: 24px; }
.ct-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.ct-type { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: rgba(3, 6, 7, .45); cursor: pointer; transition: border-color .2s, background .2s, transform .25s var(--ease), box-shadow .25s; }
.ct-type:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tint) 45%, transparent); }
.ct-type input { position: absolute; opacity: 0; pointer-events: none; }
.ct-type__ico { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--tint); background: color-mix(in srgb, var(--tint) 12%, transparent); transition: background .2s, color .2s; }
.ct-type__ico svg { width: 20px; height: 20px; }
.ct-type__t { font-weight: 700; font-size: .93rem; line-height: 1.25; }
.ct-type__d { color: var(--dim); font-size: .78rem; line-height: 1.35; }
.ct-type:has(input:checked) { border-color: var(--tint); background: color-mix(in srgb, var(--tint) 9%, rgba(3, 6, 7, .6)); box-shadow: 0 0 0 1px var(--tint), 0 14px 34px color-mix(in srgb, var(--tint) 18%, transparent); }
.ct-type:has(input:checked) .ct-type__ico { background: var(--tint); color: #021005; }
.ct-type:has(input:focus-visible) { outline: 2px solid var(--g); outline-offset: 3px; }

.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; clear: both; }
.ct-field { display: grid; gap: 8px; min-width: 0; }
.ct-field--full { grid-column: 1 / -1; }
.ct-field[hidden] { display: none; }
.ct-field > label, .ct-label { font-weight: 700; font-size: .9rem; }
.ct-opt { margin-left: 6px; color: var(--dim); font-weight: 500; font-size: .8rem; }
.ct-field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="range"]), .ct-field select, .ct-field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(3, 6, 7, .65);
  color: var(--ink); font: 500 1rem var(--f-ui); transition: border-color .2s, box-shadow .2s, background .2s;
}
.ct-field textarea { min-height: 190px; resize: vertical; line-height: 1.6; }
.ct-field select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%2339ff14' stroke-width='2' stroke-linecap='round'><path d='m2 4 4 4 4-4'/></svg>"); background-repeat: no-repeat; background-position: right 18px center; }
.ct-field select option { background: #08110f; color: var(--ink); }
.ct-field ::placeholder { color: var(--dim); }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { outline: none; border-color: var(--g); background: rgba(3, 6, 7, .85); box-shadow: 0 0 0 4px rgba(57, 255, 20, .14); }
.ct-field.is-invalid input, .ct-field.is-invalid textarea, .ct-field.is-invalid select { border-color: #ff5d7d; box-shadow: 0 0 0 4px rgba(255, 93, 125, .14); }
.ct-hint { color: var(--dim); font-size: .8rem; line-height: 1.45; }
.ct-count { justify-self: end; font-variant-numeric: tabular-nums; }
.ct-count.is-low { color: #ffd166; }

.ct-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; width: fit-content; max-width: 100%; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(3, 6, 7, .55); }
.ct-seg label { position: relative; cursor: pointer; }
.ct-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ct-seg span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--mut); transition: background .2s, color .2s; }
.ct-seg label:hover span { color: var(--ink); }
.ct-seg input:checked + span { background: var(--g); color: #021005; }
.ct-seg input:focus-visible + span { outline: 2px solid var(--g); outline-offset: 2px; }

.ct-drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 18px; border-radius: 20px; border: 1.5px dashed var(--line-2); background: rgba(3, 6, 7, .4); text-align: center; transition: border-color .2s, background .2s; }
.ct-drop:hover, .ct-drop.is-over, .ct-drop:focus-within { border-color: var(--g); background: rgba(57, 255, 20, .05); }
.ct-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ct-drop svg { width: 28px; height: 28px; color: var(--g); }
.ct-drop__t { font-weight: 700; font-size: .93rem; }
.ct-drop__d { color: var(--dim); font-size: .8rem; }
.ct-files { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ct-files:empty { display: none; }
.ct-files li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-size: .85rem; }
.ct-files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-files li small { flex: none; color: var(--dim); font-variant-numeric: tabular-nums; }
.ct-files li.is-bad { border-color: rgba(255, 93, 125, .5); color: #ffb3c1; }

.ct-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ct-send { display: grid; gap: 20px; padding: clamp(22px, 3.4vw, 36px); border-radius: 30px; border: 1px solid rgba(57, 255, 20, .3); background: radial-gradient(70% 140% at 100% 0%, rgba(57, 255, 20, .12), transparent 60%), rgba(255, 255, 255, .025); }
.ct-check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; color: var(--mut); font-size: .93rem; line-height: 1.6; }
.ct-check input { flex: none; appearance: none; width: 24px; height: 24px; margin: 1px 0 0; border-radius: 8px; border: 1.5px solid var(--line-2); background: rgba(3, 6, 7, .6); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.ct-check input::after { content: ""; width: 11px; height: 6px; border: solid #021005; border-width: 0 0 2.5px 2.5px; rotate: -45deg; translate: 0 -1px; opacity: 0; }
.ct-check input:checked { background: var(--g); border-color: var(--g); }
.ct-check input:checked::after { opacity: 1; }
.ct-check.is-invalid input { border-color: #ff5d7d; }
.ct-send__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.ct-submit { min-width: 220px; }
.ct-submit[disabled] { cursor: progress; opacity: .8; transform: none; }
.ct-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(2, 16, 5, .3); border-top-color: #021005; animation: ct-spin .8s linear infinite; }
@keyframes ct-spin { to { rotate: 360deg; } }
.ct-note { flex: 1 1 260px; margin: 0; color: var(--mut); font-size: .9rem; line-height: 1.5; }
.ct-note:empty { display: none; }
.ct-note.is-error { color: #ff9fb2; }

/* ---------- Details: questions per type ---------- */
.ct-qs { display: contents; }
.ct-qs .ct-field { animation: ct-enter .5s var(--ease) both; }
.ct-seg--q { border-radius: 22px; }
.ct-seg--q span { min-height: 38px; padding: 0 15px; font-size: .86rem; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chips label { position: relative; cursor: pointer; }
.ct-chips input { position: absolute; opacity: 0; pointer-events: none; }
.ct-chips span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(3, 6, 7, .55); font-weight: 600; font-size: .86rem; color: var(--mut); transition: background .2s, color .2s, border-color .2s; }
.ct-chips span::before { content: "+"; font-weight: 700; color: var(--g); transition: rotate .25s var(--ease); }
.ct-chips label:hover span { color: var(--ink); border-color: rgba(57, 255, 20, .45); }
.ct-chips input:checked + span { background: rgba(57, 255, 20, .14); border-color: var(--g); color: var(--ink); }
.ct-chips input:checked + span::before { content: "✓"; }
.ct-chips input:focus-visible + span { outline: 2px solid var(--g); outline-offset: 2px; }
.ct-next { display: flex; justify-content: flex-end; margin-top: 22px; }

/* Budget: two native range inputs stacked on one track; only their handles catch the pointer */
.ct-range { position: relative; padding: 10px 0 28px; --pad: 13px; }
.ct-range__val { display: block; margin-bottom: 8px; font-weight: 700; font-size: .95rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.ct-range__val.is-set { color: var(--g); }
.ct-range__track { position: relative; height: 6px; margin: 0 var(--pad); border-radius: 6px; background: var(--line-2); }
.ct-range__track i { position: absolute; top: 0; bottom: 0; left: calc(var(--a) * 100%); right: calc((1 - var(--b)) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--g), #00eaff); opacity: .45; transition: opacity .2s; }
.ct-range.is-set .ct-range__track i { opacity: 1; }
.ct-range input { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 26px; margin: 0; background: none; appearance: none; -webkit-appearance: none; pointer-events: none; z-index: 2; }
.ct-range input:focus { outline: none; border: 0; background: none; box-shadow: none; }
.ct-range input::-webkit-slider-runnable-track { background: none; border: 0; }
.ct-range input::-moz-range-track { background: none; border: 0; }
.ct-range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--g); background: #04100a; box-shadow: 0 0 0 5px rgba(57, 255, 20, .12), 0 6px 18px rgba(0, 0, 0, .5); cursor: grab; transition: transform .2s var(--ease), box-shadow .2s; }
.ct-range input::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--g); background: #04100a; box-shadow: 0 0 0 5px rgba(57, 255, 20, .12), 0 6px 18px rgba(0, 0, 0, .5); cursor: grab; }
.ct-range input:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.12); box-shadow: 0 0 0 8px rgba(57, 255, 20, .2), 0 6px 18px rgba(0, 0, 0, .5); }
.ct-range input:focus-visible::-webkit-slider-thumb { outline: 2px solid #fff; outline-offset: 2px; }
.ct-range input:focus-visible::-moz-range-thumb { outline: 2px solid #fff; outline-offset: 2px; }
.ct-range__scale { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; color: var(--dim); font-size: .78rem; font-variant-numeric: tabular-nums; }
.ct-range.is-off { opacity: .35; }
.ct-check--sm { font-size: .88rem; align-items: center; }
.ct-check--sm input { width: 20px; height: 20px; border-radius: 6px; margin: 0; }

/* ---------- Success ---------- */
.ct-done { display: grid; justify-items: center; gap: 14px; padding: clamp(40px, 7vw, 80px) 24px; border-radius: 34px; border: 1px solid rgba(57, 255, 20, .4); background: radial-gradient(60% 80% at 50% 0%, rgba(57, 255, 20, .16), transparent 70%), rgba(255, 255, 255, .03); text-align: center; }
.ct-done__check { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--g); color: #021005; box-shadow: 0 0 60px rgba(57, 255, 20, .45); animation: ct-pop .7s var(--ease) both; }
.ct-done__check svg { width: 40px; height: 40px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: ct-draw .5s .35s ease forwards; }
@keyframes ct-pop { from { scale: .4; opacity: 0; } }
@keyframes ct-draw { to { stroke-dashoffset: 0; } }
.ct-done h3 { margin-top: 8px; font: 800 clamp(1.8rem, 4vw, 2.8rem)/1 var(--f-display); letter-spacing: -.05em; }
.ct-done p { max-width: 520px; color: var(--mut); }
.ct-done__ref { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(3, 6, 7, .6); font: 600 .95rem ui-monospace, "Cascadia Code", monospace; color: var(--g); }
.ct-done__ref button { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; font: 700 .72rem var(--f-ui); color: var(--ink); }
.ct-done .btn { margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 620px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-types { grid-template-columns: 1fr; }
  .ct-seg { display: flex; width: 100%; }
  .ct-seg label { flex: 1; }
  .ct-seg span { justify-content: center; width: 100%; padding: 0 10px; }
  .ct-submit { width: 100%; }
  .ct-seg--q { display: inline-flex; width: fit-content; }
  .ct-seg--q label { flex: 0 1 auto; }
  .ct-next .btn { width: 100%; justify-content: center; }
}
.rm .ct-done__check, .rm .ct-done__check svg { animation: none; stroke-dashoffset: 0; }
.rm .ct-enter, .rm .ct-qs .ct-field { animation: none; }
