/*
 * DiviTorque — Support / contact page (C4): a simple, centered contact form
 * with a weekend-off support note. Built from semantic tokens + global parts.
 */

.dt-ct { padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 8vw, 96px); }
.dt-ct__wrap { max-width: 620px; margin: 0 auto; }

/* support-hours note */
.dt-ct__hours {
	display: flex; align-items: flex-start; gap: 10px;
	background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
	padding: 14px 16px; margin-bottom: clamp(24px, 4vw, 36px);
	font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--lh-body);
}
.dt-ct__hours b { color: var(--color-text); font-weight: var(--fw-semi); }
.dt-ct__hours-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%;
	background: var(--mesh-grass, #34D08C); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mesh-grass, #34D08C) 22%, transparent); }

/* notices */
.dt-ct-notice { padding: 14px 16px; border-radius: var(--radius-md); font-size: var(--text-sm); margin-bottom: 20px; border: 1px solid var(--color-border); }
.dt-ct-notice--ok { background: color-mix(in srgb, var(--mesh-mint) 40%, var(--color-surface-2)); }
.dt-ct-notice--err { background: color-mix(in srgb, var(--mesh-coral) 35%, var(--color-surface-2)); }

/* form */
.dt-ct-form { display: flex; flex-direction: column; gap: 18px; }
.dt-ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dt-ct-field label { display: block; font-size: var(--text-sm); font-weight: var(--fw-med); margin-bottom: 7px; }
.dt-ct-field input, .dt-ct-field select, .dt-ct-field textarea {
	width: 100%; font: var(--fw-reg) 16px/1.5 var(--font-sans);
	padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md);
	background: var(--color-surface-2); color: var(--color-text);
}
.dt-ct-field textarea { resize: vertical; min-height: 130px; }
.dt-ct-field input:focus-visible, .dt-ct-field select:focus-visible, .dt-ct-field textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.dt-ct-field[data-invalid] input, .dt-ct-field[data-invalid] textarea { border-color: var(--mesh-coral); }
.dt-ct-field__error { color: #b3261e; font-size: 13px; margin-top: 6px; }
.dt-ct-form .btn { width: 100%; margin-top: 2px; }
.dt-ct-form [aria-busy="true"] { opacity: .8; }
/* Honeypot — hidden from humans, present for bots. */
.dt-ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 560px) { .dt-ct-row { grid-template-columns: 1fr; } }

/* ─── Docs-first panel ────────────────────────────────────────────── */
.dt-ct-docs { background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 28px); margin-bottom: 18px; }
.dt-ct-docs__title { font-size: var(--text-lg); font-weight: var(--fw-semi); letter-spacing: -.01em; }
.dt-ct-docs__sub { font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--lh-body); margin: 6px 0 16px; }
.dt-ct-docs__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-top: 16px; font-size: var(--text-sm); }
.dt-ct-docs__links-label { color: var(--color-text-faint); }
.dt-docs-quick { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0; margin: 0; }
.dt-docs-quick a { border-bottom: 1px solid var(--color-border); }
.dt-docs-quick a:hover { border-bottom-color: var(--color-text); }

/* ─── Free-user support notice ────────────────────────────────────── */
.dt-ct-note--free { display: flex; gap: 11px; align-items: flex-start; background: color-mix(in srgb, var(--mesh-amber) 16%, var(--color-surface-2)); border: 1px solid color-mix(in srgb, var(--mesh-amber) 42%, var(--color-border)); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 22px; font-size: var(--text-sm); color: var(--color-text); line-height: var(--lh-body); }
.dt-ct-note__icon { flex: 0 0 auto; margin-top: 1px; color: color-mix(in srgb, var(--mesh-amber) 75%, var(--color-text)); }
.dt-ct-note--free strong { font-weight: var(--fw-semi); }
.dt-ct-note--free a { border-bottom: 1px solid currentColor; }

/* ─── Form card ───────────────────────────────────────────────────── */
.dt-ct-card { background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(24px, 3.5vw, 36px); }
.dt-ct-card__title { font-size: var(--text-lg); font-weight: var(--fw-semi); letter-spacing: -.01em; margin-bottom: 18px; }
/* inside the card the hours note is a quiet line, not another boxed card */
.dt-ct-card .dt-ct__hours { background: transparent; border: 0; border-radius: 0; padding: 0; margin-bottom: 20px; }
.dt-ct-field__hint { font-size: 13px; color: var(--color-text-faint); margin-top: 7px; line-height: var(--lh-body); }

/* ─── Butter select (custom chevron, no native arrow) ─────────────── */
.dt-ct-select { position: relative; }
.dt-ct-select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.dt-ct-select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-right: 2px solid var(--color-text-faint); border-bottom: 2px solid var(--color-text-faint); transform: rotate(45deg); pointer-events: none; transition: border-color var(--dur-base) var(--ease); }
.dt-ct-select:hover::after { border-color: var(--color-text); }

/* ─── Conditional fields (smooth grid-rows reveal) ────────────────── */
.dt-ct-cond { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s var(--ease), opacity .24s var(--ease); }
.dt-ct-cond__inner { overflow: hidden; min-height: 0; }
.dt-ct-cond.is-open { grid-template-rows: 1fr; opacity: 1; }
.dt-ct-cond.is-open .dt-ct-cond__inner { padding-top: 16px; }

/* ─── Turnstile ───────────────────────────────────────────────────── */
.dt-ct-turnstile { min-height: 65px; }

@media (prefers-reduced-motion: reduce) { .dt-ct-cond { transition: opacity .24s; } }

/* ─── Support: search + topic cards (open the form with a preselected subject) ── */
/* Use the full site container (--container: 1120) so the hub grids breathe;
   the form itself stays a centered, readable column. */
.dt-ct--support .dt-ct__wrap { max-width: var(--container); }
.dt-ct--support .dt-ct-card { max-width: 660px; margin-inline: auto; }

/* docs search now lives inside the page header */
.dt-page-hero__after { max-width: 560px; margin: clamp(20px, 3vw, 28px) auto 0; }

/* Popular articles — quick docs cards */
.dt-sup-docs { margin: 0 auto clamp(32px, 5vw, 48px); }
.dt-sup-docs__title { font-size: var(--text-xl); font-weight: var(--fw-semi); letter-spacing: -.01em; text-align: center; margin-bottom: clamp(16px, 2.5vw, 22px); }
.dt-sup-docs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .dt-sup-docs__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .dt-sup-docs__grid { grid-template-columns: 1fr; } }
.dt-sup-doc { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); color: var(--color-text); transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.dt-sup-doc:hover { border-color: var(--gray-300); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.dt-sup-doc__cat { font-size: 11px; font-weight: var(--fw-semi); letter-spacing: .05em; text-transform: uppercase; color: var(--color-text-faint); }
.dt-sup-doc__title { font-size: var(--text-base); font-weight: var(--fw-semi); line-height: 1.3; letter-spacing: -.01em; }
.dt-sup-doc__more { margin-top: 2px; font-size: var(--text-sm); font-weight: var(--fw-med); color: var(--color-text-muted); }
.dt-sup-doc:hover .dt-sup-doc__more { color: var(--color-text); }

/* topic cards — premium, mesh-tinted icons */
.dt-sup { margin-bottom: clamp(28px, 4vw, 44px); }
.dt-sup__title { font-size: var(--text-xl); font-weight: var(--fw-semi); letter-spacing: -.01em; text-align: center; margin-bottom: clamp(18px, 3vw, 24px); }
.dt-sup__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .dt-sup__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .dt-sup__grid { grid-template-columns: 1fr; } }
.dt-sup-card { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
	padding: clamp(24px, 2.8vw, 30px) 18px; background: var(--color-bg); border: 1px solid var(--color-border);
	border-radius: var(--radius-xl); cursor: pointer; color: var(--color-text); box-shadow: 0 1px 2px rgba(16,16,24,.03);
	transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease); }
.dt-sup-card:hover { border-color: var(--gray-300); transform: translateY(-3px); box-shadow: 0 1px 2px rgba(16,16,24,.04), 0 16px 34px -14px rgba(16,16,24,.22); }
.dt-sup-card:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.dt-sup-card.is-active { border-color: var(--color-text); box-shadow: 0 0 0 1px var(--color-text); }
.dt-sup-card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: var(--radius-pill); color: var(--color-text); border: 1px solid var(--color-border);
	background: radial-gradient(80% 80% at 30% 25%, var(--mesh-sky), transparent 60%), radial-gradient(80% 80% at 80% 80%, var(--mesh-peri), transparent 60%), var(--color-surface); }
.dt-sup-card:nth-child(2) .dt-sup-card__icon { background: radial-gradient(80% 80% at 30% 25%, var(--mesh-peach), transparent 60%), radial-gradient(80% 80% at 80% 80%, var(--mesh-pink), transparent 60%), var(--color-surface); }
.dt-sup-card:nth-child(3) .dt-sup-card__icon { background: radial-gradient(80% 80% at 30% 25%, var(--mesh-mint), transparent 60%), radial-gradient(80% 80% at 80% 80%, var(--mesh-aqua), transparent 60%), var(--color-surface); }
.dt-sup-card:nth-child(4) .dt-sup-card__icon { background: radial-gradient(80% 80% at 30% 25%, var(--mesh-amber), transparent 60%), radial-gradient(80% 80% at 80% 80%, var(--mesh-violet), transparent 60%), var(--color-surface); }
.dt-sup-card.is-active .dt-sup-card__icon { border-color: var(--color-text); }
.dt-sup-card__text { display: flex; flex-direction: column; gap: 3px; }
.dt-sup-card__label { font-size: var(--text-base); font-weight: var(--fw-semi); line-height: 1.25; }
.dt-sup-card__desc { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.3; }

.dt-ct-note--inline { margin: 0 0 18px; }
