/* copyzor.com — contact.html: 3-step order flow + email form (js/order.js). Loaded after site.css. */

.of-sect { padding: 72px 0 64px; }
.of-wrap { width: 100%; max-width: calc(900px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.of-app { position: relative; }
.of-title {
  margin: 0 0 40px; font-size: clamp(32px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.01em;
  text-transform: lowercase; font-weight: 700; outline: none;
}
.of-title:focus-visible { outline: 2px solid var(--acid); outline-offset: 6px; }

/* no-JS: hide the flow shell, show the static email form (#order-view is [hidden] in the HTML: js/order.js shows it on #order etc.) */
html.js .of-nojs { display: none; }
.of-nojs { display: grid; gap: 8px; color: var(--fg-2); }
.of-nojs a { color: var(--acid); }
html:not(.js) #order-view { display: block; }
html:not(.js) #email-view { display: block; margin-top: 64px; }
/* order-flow URLs: the head script (tools/gen.py headjs) sets html.cz-flow, so the email form doesn't flash before js/order.js routes; order.js removes the class */
html.cz-flow #email-view { display: none; }
html.cz-flow #order-view { display: block; }
/* reserve the step's height until js/order.js has rendered it: otherwise .of-direct and the footer paint first and are pushed out (CLS) */
html.cz-flow #order-view { min-height: 100svh; }
html:not(.js) .of-golinks { display: none; }

/* ── Timeline ── */
.of-steps { display: flex; margin: 0 0 40px; padding: 0; list-style: none; border-block: 2px solid var(--fg); counter-reset: none; }
.of-steps li { flex: 1 1 0; min-width: 0; }
.of-steps li + li { border-left: 2px solid var(--fg); }
.of-step {
  display: flex; align-items: center; justify-content: center; gap: 0.4em; width: 100%; min-height: 48px; padding: 10px 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-align: center;
  color: var(--fg-3); background: none; border: 0;
}
.of-step.is-active { background: var(--acid); color: var(--cz-black); }
button.of-step { color: var(--fg); cursor: pointer; }
button.of-step:hover { color: var(--acid); }
.of-steps__l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Fields ── */
.of-stack { display: flex; flex-direction: column; gap: 28px; }
.of-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.of-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.of-label, .of-sublabel, .of-group {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg); margin: 0;
}
.of-sublabel { letter-spacing: 0.14em; line-height: 1.6; }
.of-group { padding-bottom: 8px; margin-bottom: 8px; border-bottom: 2px solid var(--fg); letter-spacing: 0.22em; }
.of-group--acid { color: var(--acid); border: 0; padding: 0; margin-bottom: 16px; }
.of-hint { margin-top: -4px; font-size: 12px; line-height: 1.5; color: var(--fg-3); }
.of-dim { color: var(--fg-3); }
.of-in, .of-form input, .of-form textarea {
  width: 100%; min-width: 0; max-width: 100%; min-height: 52px; padding: 13px 16px;
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--fg);
  background: rgba(0, 0, 0, 0.55); border: 2px solid var(--cz-grey-50); border-radius: 0;
}
textarea.of-in, .of-form textarea { resize: vertical; min-height: 110px; }
.of-in::placeholder, .of-form input::placeholder, .of-form textarea::placeholder { color: var(--fg-3); }
.of-in:hover, .of-form input:hover, .of-form textarea:hover { border-color: var(--fg-2); }
.of-in:focus-visible, .of-form input:focus-visible, .of-form textarea:focus-visible { outline: 0; border-color: var(--acid); box-shadow: var(--glow-soft); }
.of-in[type="date"] { color-scheme: dark; -webkit-appearance: none; appearance: none; display: block; }
select.of-in { color-scheme: dark; padding-right: 8px; }
.of-in[aria-invalid="true"], .of-form [aria-invalid="true"] { border-color: var(--acid); border-style: dashed; }
.of-err {
  align-self: flex-start; margin: 0; padding: 4px 8px; font-size: 12px; line-height: 1.5;
  color: var(--cz-black); background: var(--acid);
}
.of-err[hidden] { display: none; }
/* The confirm-email error is also shown on blur, so its line keeps its space even when empty: showing or
   clearing it never moves Send / Apply / the billing toggle under the pointer (Safari gives a clicked button no focus). */
#e-email2 { min-height: 26px; }
#e-email2[hidden] { display: block; visibility: hidden; }
.of-note { font-size: 12px; line-height: 1.6; color: var(--acid); }
.of-note[hidden] { display: none; }

.of-list { display: flex; flex-direction: column; gap: 10px; }
.of-row { display: flex; gap: 8px; align-items: stretch; }
.of-row > .of-in { flex: 1; }
.of-row--end { align-items: flex-end; margin-top: 14px; }
.of-row--end .of-size { flex: 1; }
.of-x {
  flex: 0 0 48px; min-height: 48px; padding: 0; background: none; cursor: pointer;
  border: 2px solid var(--cz-grey-50); color: var(--acid); font-size: 18px; line-height: 1;
}
.of-x:hover { border-color: var(--acid); }
.of-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.of-cost { font-size: 12px; color: var(--acid); }
.of-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ── Buttons ── */
.of-btn {
  min-height: 56px; padding: 14px 28px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-align: left;
  color: var(--cz-black); background: var(--acid); border: 2px solid var(--acid); box-shadow: 4px 4px 0 0 var(--fg);
  transition: transform 80ms var(--ease-out), box-shadow 80ms var(--ease-out);
}
.of-btn:hover { background: var(--cz-acid-hover); }
.of-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 0 var(--fg); }
.of-btn[aria-disabled="true"] { cursor: progress; opacity: 0.85; }
.of-ghost {
  align-self: flex-start; min-height: 44px; padding: 8px 14px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-align: left;
  color: var(--fg); background: none; border: 2px solid var(--cz-grey-50);
}
.of-ghost:hover { border-color: var(--acid); color: var(--acid); }
.of-ghost--dash { border-style: dashed; }
.of-ghost--lg { min-height: 52px; padding: 12px 22px; border-color: var(--fg); }
.of-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.of-chip {
  min-height: 44px; padding: 10px 14px; cursor: pointer; text-align: left;
  font: inherit; font-size: 13px; line-height: 1.35; color: var(--fg); background: none; border: 2px solid var(--cz-grey-50);
}
.of-chip:hover { border-color: var(--fg); }
.of-chip[aria-pressed="true"], .of-chip.is-on { background: var(--acid); border-color: var(--acid); color: var(--cz-black); }

/* checkbox / radio rows (export's .cz-of-ctl), 44px tap height */
.of-chk { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; line-height: 1.4; cursor: pointer; }
.of-chk input {
  appearance: none; -webkit-appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 0;
  border: 2px solid var(--fg-2); background: none; cursor: pointer; position: relative;
}
.of-chk input[type="radio"] { border-radius: 50%; }
.of-chk input:checked { border-color: var(--acid); background: var(--acid); }
.of-chk input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px;
  border: solid var(--cz-black); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.of-chk input[type="radio"]:checked::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--cz-black); }
.of-chk input:disabled { cursor: default; }
.of-chk:has(input:disabled) { cursor: default; }
.of-chk:has(input[type="radio"]:disabled:not(:checked)) { color: var(--fg-3); }
.of-fee { color: var(--acid); font-weight: 700; }
/* the required "I accept the Terms and the Privacy Policy" box on step 3: same invalid look as the other fields */
.of-chk input[aria-invalid="true"] { border-color: var(--acid); border-style: dashed; }
.of-terms a { color: var(--acid); text-decoration: underline; text-underline-offset: 2px; }

/* ── Drop zones ── */
.of-drop { position: relative; }
.of-drop__btn {
  width: 100%; min-height: 84px; padding: 24px 20px; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--fg-2); text-align: center;
  background: none; border: 2px dashed var(--cz-grey-50);
}
.of-drop__btn:hover, .of-drop.is-over .of-drop__btn { border-color: var(--acid); color: var(--fg); background: rgba(209, 254, 23, 0.08); }
.of-files { display: flex; flex-wrap: wrap; gap: 8px; }
.of-files li { display: flex; align-items: center; gap: 8px; padding: 0 0 0 12px; font-size: 12px; border: 2px solid var(--cz-grey-50); overflow-wrap: anywhere; }
.of-files .of-x { flex-basis: 40px; min-height: 40px; border: 0; border-left: 2px solid var(--cz-grey-50); }

/* ── Packages ── */
.of-pkg { padding: 24px 22px; border: 2px solid var(--cz-grey-50); background: rgba(0, 0, 0, 0.55); cursor: pointer; transition: border-color 160ms ease, box-shadow 160ms ease; }
.of-pkg.is-sel { cursor: default; border-color: var(--acid); background: rgba(16, 20, 2, 0.88); box-shadow: 6px 6px 0 0 var(--acid); }
.of-pkg--big { padding: 32px 28px; }
.of-pkg__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; margin-bottom: 12px; }
.of-pkg__name { flex: 1 1 260px; font-size: 17px; line-height: 1.25; font-weight: 700; text-wrap: balance; }
.of-pkg--big .of-pkg__name { font-size: 22px; }
.of-sel {
  min-height: 40px; padding: 6px 12px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg); background: none; border: 2px solid var(--fg);
}
.of-sel[aria-pressed="true"] { color: var(--cz-black); background: var(--acid); border-color: var(--acid); }
.of-pkg__price { margin-bottom: 20px; font-size: 22px; font-weight: 700; color: var(--acid); }
.of-pkg--big .of-pkg__price { font-size: 28px; }
.of-feats { margin-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.of-feats li { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; font-size: 13px; line-height: 1.45; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.of-feats li.is-off { color: var(--fg-3); }
.of-tick { flex: 0 0 16px; color: var(--acid); font-weight: 700; }
.is-off .of-tick { color: var(--fg-3); }
.of-feats__s { display: block; margin-top: 3px; font-size: 11px; }
.of-pkg__sub { display: flex; flex-direction: column; gap: 28px; margin-bottom: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.25); cursor: auto; }
.of-sub { display: flex; flex-direction: column; gap: 10px; }
.of-callout { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid rgba(209, 254, 23, 0.5); background: rgba(209, 254, 23, 0.06); font-size: 12px; line-height: 1.6; }
.of-size { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.of-mini { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.of-mini span { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }
.of-mini .of-in { min-height: 48px; padding: 10px 12px; }
.of-intro { font-size: 14px; line-height: 1.6; color: var(--fg-2); }
.of-pkgs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.of-extras { max-width: 420px; margin-top: 12px; }
.of-indent { padding-left: 30px; gap: 0; }

/* ── Review ── */
.of-rev { border: 2px solid var(--cz-grey-50); background: rgba(0, 0, 0, 0.55); }
.of-rev__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 6px 8px 6px 18px; background: var(--acid); color: var(--cz-black); }
.of-rev__head h2 { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.of-rev__back { min-height: 40px; padding: 0 10px; font: inherit; font-size: 12px; color: var(--cz-black); background: none; border: 0; cursor: pointer; }
.of-rev__back:hover { text-decoration: underline; }
.of-rev__back:focus-visible { outline-color: var(--cz-black); }
.of-rev dl { margin: 0; padding: 6px 18px 14px; }
.of-rev dl div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.of-rev dt { flex: 0 0 220px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.of-rev dd { flex: 1 1 200px; margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
.of-bill { display: flex; flex-direction: column; gap: 18px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.of-seg { display: flex; flex-wrap: wrap; width: fit-content; border: 2px solid var(--cz-grey-50); }
.of-seg__b { min-height: 44px; padding: 10px 18px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); background: none; border: 0; }
.of-seg__b + .of-seg__b { border-left: 2px solid var(--cz-grey-50); }
.of-seg__b[aria-pressed="true"] { background: var(--acid); color: var(--cz-black); }
.of-addr { display: grid; grid-template-columns: 160px 1fr; gap: 20px; }
.of-total { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px; border: 2px solid var(--acid); background: rgba(0, 0, 0, 0.7); }
.of-li { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; color: var(--fg-2); }
.of-li span:last-child { white-space: nowrap; }
.of-li--main { color: var(--fg); }
.of-li--total { margin-top: 2px; padding-top: 10px; border-top: 1px solid rgba(209, 254, 23, 0.5); font-size: 16px; color: var(--fg); }
.of-li--total strong:last-child { color: var(--acid); white-space: nowrap; }
/* coupon (step 3 field, chip on steps 2 and 3, discount line) */
.of-cpchip {
  align-self: flex-start; display: inline-block; padding: 6px 12px; margin-bottom: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cz-black); background: var(--acid);
}
/* step 1 "selected package" chip: shown when a pricing card / package chip link chose the package (order.js S.pkgLink) */
.of-pkgchip {
  align-self: flex-start; display: inline-block; padding: 6px 12px; margin-bottom: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--acid); border: 1px solid var(--acid);
}
.of-cp__code { font-size: 18px; font-weight: 700; letter-spacing: 0.12em; color: var(--acid); }
.of-cp__apply { align-self: stretch; flex: 0 0 auto; min-height: 52px; }
.of-li--cp { color: var(--acid); }
.of-vat { font-size: 11px; line-height: 1.5; color: var(--fg-3); }
.of-status { padding: 16px 20px; border: 2px solid var(--acid); background: rgba(0, 0, 0, 0.8); font-size: 14px; line-height: 1.6; outline: none; }
.of-status[hidden] { display: none; }
.of-status p + p { margin-top: 8px; }
.of-status a { color: var(--acid); font-weight: 700; }
.of-status:focus-visible { box-shadow: var(--glow); }
/* the reminder link's note (order.js ?resume=paid|deadline|error), above the step's .of-stack: the stack's own gap below it */
#of-resume { margin-bottom: 28px; }

/* running total: sticks to the bottom of the viewport while the flow is on screen */
.of-bar {
  position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px;
  margin-top: 32px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--cz-black); border: 2px solid var(--acid); box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.8);
  font-size: 13px;
}
.of-bar__p { color: var(--fg-2); min-width: 0; }
.of-bar__t strong { font-size: 18px; color: var(--acid); }

.of-sent { margin-top: 8px; padding: 32px 28px; border: 2px solid var(--acid); background: rgba(209, 254, 23, 0.07); color: var(--acid); font-size: 16px; line-height: 1.6; }
.of-sent__acct { margin-top: 16px; font-size: 14px; color: var(--fg); }
.of-sent__acct a { color: var(--acid); font-weight: 700; white-space: nowrap; }
.of-acct { margin-top: -12px; }
.of-alt { margin-top: 32px; }
.of-alt__a, .of-mail { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--fg-2); text-decoration: none; }
.of-alt__a:hover, .of-mail:hover { color: var(--acid); text-decoration: underline; }

/* ── Email form ── */
.of-email { width: 100%; max-width: calc(640px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.of-email[hidden] { display: none; }
/* "Order a package instead →" (#order) and, with a stored unfinished order, "Continue my order →" */
.of-golinks { display: flex; flex-wrap: wrap; gap: 12px; margin: -12px 0 36px; }
.of-go {
  display: inline-flex; align-items: center; min-height: 52px; padding: 12px 22px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  color: var(--fg); border: 2px solid var(--fg);
}
.of-go:hover { color: var(--acid); border-color: var(--acid); }
.of-go--resume { color: var(--cz-black); background: var(--acid); border-color: var(--acid); }
.of-go--resume:hover { color: var(--cz-black); background: var(--cz-acid-hover); border-color: var(--cz-acid-hover); }
.of-go[hidden] { display: none; }
.of-email .of-title { margin-bottom: 36px; }
.of-email .of-title span { display: inline; }
.of-form { display: flex; flex-direction: column; gap: 20px; }
.of-form .of-btn { align-self: flex-start; }
.of-form .of-btn:disabled { color: var(--fg-2); background: none; border-color: var(--cz-grey-50); box-shadow: 2px 2px 0 0 var(--fg); cursor: default; }
.of-mail { margin-top: 24px; }

.of-direct { padding-top: 0; }
.of-direct .direct-title { margin-bottom: var(--sp-4); }

@media (max-width: 720px) {
  .of-grid2, .of-pkgs { grid-template-columns: minmax(0, 1fr); }
  .of-sect { padding-top: 48px; }
  .of-pkg--big { padding: 24px 18px; }
  .of-pkg { padding: 22px 18px; }
  .of-pkg.is-sel { box-shadow: 4px 4px 0 0 var(--acid); }
  .of-btn { width: 100%; text-align: center; }
  .of-total { padding: 16px; }
}
@media (max-width: 560px) {
  .of-addr { grid-template-columns: minmax(0, 1fr); }
  .of-steps li { flex: 0 0 auto; }
  .of-steps li:has(.is-active) { flex: 1 1 auto; }
  .of-step { padding: 10px 14px; }
  .of-step:not(.is-active) .of-steps__l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .of-rev dt { flex-basis: 100%; }
  .of-size { gap: 8px; }
}
