/* Contact page + ticket conversation (2.4). The accent follows the site. */
:root { --ct-a: #E11D48; --ct-a2: #9F1239; --ct-bg: var(--surface, #fff); --ct-ink: var(--ink, #111827); --ct-mut: var(--ink-3, #6B7280); --ct-line: var(--line, #E5E7EB); --ct-soft: color-mix(in srgb, var(--ct-ink) 4%, transparent); }
.ct-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.ct-wrap svg { width: 18px; height: 18px; flex: none; }
.ct-hero { position: relative; overflow: hidden; padding: clamp(46px, 7vw, 86px) 0 clamp(80px, 10vw, 120px); color: #fff; text-align: center;
  background: radial-gradient(70% 90% at 15% 0%, color-mix(in srgb, var(--ct-a) 55%, transparent), transparent 60%), radial-gradient(60% 90% at 90% 10%, color-mix(in srgb, var(--ct-a2) 55%, transparent), transparent 60%), #0B0720; }
.ct-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 60px; background: linear-gradient(transparent, rgba(0,0,0,.18)); }
.ct-hero .ct-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ct-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
[dir="rtl"] .ct-kicker { letter-spacing: 0; font-size: 14px; }
.ct-hero h1 { margin: 0; color: #fff; font-size: clamp(30px, 5vw, 54px); line-height: 1.12; letter-spacing: -.02em; }
.ct-lead { margin: 0; max-width: 40rem; color: rgba(255,255,255,.82); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.7; }
.ct-badge { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 0; padding: 7px 14px; border-radius: 999px; background: rgba(34,197,94,.16); color: #BBF7D0; font-weight: 700; font-size: 13.5px; }
.ct-dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.25); }

.ct-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 22px; margin-top: -64px; margin-bottom: 70px; }
.ct-side { display: flex; flex-direction: column; gap: 12px; }
.ct-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: var(--ct-bg); border: 1px solid var(--ct-line); color: var(--ct-ink); text-decoration: none; box-shadow: 0 18px 40px -30px rgba(10,15,40,.5); transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .25s, box-shadow .3s; }
a.ct-card:hover { transform: translateY(-3px); border-color: var(--ct-a); box-shadow: 0 24px 44px -26px color-mix(in srgb, var(--ct-a) 60%, #000); }
.ct-card > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ct-card small { color: var(--ct-mut); font-size: 12.5px; font-weight: 700; }
.ct-card b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-card > svg:last-child { color: var(--ct-mut); }
.ct-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; flex: none; }
.ct-ic svg { width: 21px; height: 21px; }
.ct-card--mail .ct-ic { background: linear-gradient(135deg, #FB7185, #E11D48); }
.ct-card--wa .ct-ic { background: linear-gradient(135deg, #4ADE80, #16A34A); }
.ct-card--phone .ct-ic { background: linear-gradient(135deg, #60A5FA, #2563EB); }
.ct-card--hours .ct-ic { background: linear-gradient(135deg, #FCD34D, #F59E0B); }
.ct-card--place .ct-ic { background: linear-gradient(135deg, #A78BFA, #7C3AED); }
.ct-card--hours b, .ct-card--place b { white-space: normal; }
.ct-soc { padding: 14px 16px; border-radius: 20px; background: var(--ct-bg); border: 1px solid var(--ct-line); }
.ct-soc small { display: block; margin-bottom: 10px; color: var(--ct-mut); font-weight: 700; font-size: 12.5px; }
.ct-soc div { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-soc a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ct-soft); color: var(--ct-ink); transition: background-color .2s, color .2s, transform .3s; }
.ct-soc a:hover { background: var(--ct-a); color: #fff; transform: translateY(-2px); }
.ct-faq { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 20px; border: 1.5px dashed var(--ct-line); color: var(--ct-ink); text-decoration: none; }
.ct-faq:hover { border-color: var(--ct-a); }
.ct-faq > svg { width: 24px; height: 24px; color: var(--ct-a); }
.ct-faq span { display: flex; flex-direction: column; gap: 2px; } .ct-faq small { color: var(--ct-mut); }

.ct-formcard { padding: clamp(20px, 3vw, 34px); border-radius: 26px; background: var(--ct-bg); border: 1px solid var(--ct-line); box-shadow: 0 30px 70px -40px rgba(10,15,40,.55); }
.ct-formcard h2 { margin: 0 0 4px; font-size: clamp(22px, 2.4vw, 28px); color: var(--ct-ink); }
.ct-muted { margin: 0 0 20px; color: var(--ct-mut); }
.ct-form { display: flex; flex-direction: column; gap: 16px; }
.ct-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ct-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.ct-topics legend { width: 100%; margin-bottom: 8px; font-weight: 800; font-size: 14px; color: var(--ct-ink); }
.ct-topic input { position: absolute; opacity: 0; pointer-events: none; }
.ct-topic span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--ct-line); background: var(--ct-bg); color: var(--ct-ink); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, transform .2s; }
.ct-topic span svg { width: 16px; height: 16px; color: var(--ct-mut); }
.ct-topic span:hover { border-color: var(--ct-a); }
.ct-topic input:checked + span { background: var(--ct-a); border-color: var(--ct-a); color: #fff; box-shadow: 0 10px 22px -12px var(--ct-a); }
.ct-topic input:checked + span svg { color: #fff; }
.ct-topic input:focus-visible + span { outline: 2.5px solid var(--ct-a); outline-offset: 2px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-f { position: relative; display: flex; flex-direction: column; gap: 7px; }
.ct-f > span:first-child { font-weight: 800; font-size: 14px; color: var(--ct-ink); }
.ct-f i { font-style: normal; font-weight: 600; color: var(--ct-mut); font-size: 12.5px; }
.ct-in { position: relative; display: flex; align-items: center; }
.ct-in svg { position: absolute; inset-inline-start: 14px; color: var(--ct-mut); pointer-events: none; }
.ct-in input, .ct-f textarea { width: 100%; min-height: 52px; padding: 12px 14px; padding-inline-start: 44px; border-radius: 14px; border: 1.5px solid var(--ct-line); background: var(--ct-bg); color: var(--ct-ink); font: inherit; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; box-sizing: border-box; }
.ct-f textarea { padding-inline-start: 14px; resize: vertical; min-height: 150px; line-height: 1.7; }
.ct-in input:focus, .ct-f textarea:focus { border-color: var(--ct-a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ct-a) 16%, transparent); }
.ct-in:focus-within svg { color: var(--ct-a); }
.ct-count { align-self: flex-end; color: var(--ct-mut); font-size: 12px; }
.ct-submit { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ct-privacy { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ct-mut); font-size: 13px; max-width: 30rem; }
.ct-privacy svg { width: 15px; height: 15px; }
.ct-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 0; border-radius: 16px; cursor: pointer; color: #fff; font: 800 16px/1 inherit; font-family: inherit;
  background: linear-gradient(120deg, var(--ct-a), var(--ct-a2)); box-shadow: 0 16px 32px -14px var(--ct-a); transition: transform .3s cubic-bezier(.34,1.56,.64,1), filter .2s; }
.ct-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.ct-btn.is-busy { opacity: .8; pointer-events: none; }
.ct-btn.is-busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: ct-spin .8s linear infinite; }
.ct-flip { transform: scaleX(-1); }
@keyframes ct-spin { to { transform: rotate(360deg); } }

/* Ticket page */
.ct-ticket { max-width: 860px; padding-block: 34px 70px; }
.ct-sent { display: flex; gap: 14px; align-items: center; padding: 18px; margin-bottom: 22px; border-radius: 20px; background: linear-gradient(135deg, rgba(16,185,129,.14), rgba(5,150,105,.05)); border: 1px solid rgba(16,185,129,.35); }
.ct-sent__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: linear-gradient(135deg, #34D399, #059669); color: #fff; flex: none; }
.ct-sent__ic svg { width: 24px; height: 24px; }
.ct-sent strong { font-size: 16px; color: var(--ct-ink); } .ct-sent p { margin: 3px 0 0; color: var(--ct-mut); }
.ct-thead { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.ct-code { margin: 0 0 4px; color: var(--ct-mut); font-weight: 700; font-size: 13px; }
.ct-thead h1 { margin: 0; font-size: clamp(22px, 3vw, 30px); color: var(--ct-ink); }
.ct-status { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.ct-status svg { width: 16px; height: 16px; }
.ct-status--open { background: #FEF3C7; color: #92400E; } .ct-status--answered { background: #DCFCE7; color: #166534; } .ct-status--closed { background: var(--ct-soft); color: var(--ct-mut); }
.ct-thread { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ct-msg { display: flex; gap: 12px; align-items: flex-start; }
.ct-msg--staff { flex-direction: row-reverse; }
.ct-av { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ct-soft); color: var(--ct-ink); font-weight: 800; }
.ct-msg--staff .ct-av { background: linear-gradient(135deg, var(--ct-a), var(--ct-a2)); color: #fff; }
.ct-bubble { max-width: min(640px, 85%); padding: 14px 16px; border-radius: 20px; background: var(--ct-bg); border: 1px solid var(--ct-line); box-shadow: 0 12px 30px -26px rgba(10,15,40,.5); }
.ct-msg--user .ct-bubble { border-start-start-radius: 6px; }
.ct-msg--staff .ct-bubble { border-start-end-radius: 6px; background: color-mix(in srgb, var(--ct-a) 6%, var(--ct-bg)); border-color: color-mix(in srgb, var(--ct-a) 25%, var(--ct-line)); }
.ct-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13px; color: var(--ct-mut); }
.ct-meta b { color: var(--ct-ink); }
.ct-teamtag { padding: 2px 8px; border-radius: 999px; background: var(--ct-a); color: #fff; font-size: 11px; font-weight: 800; }
.ct-meta time { margin-inline-start: auto; }
.ct-body { color: var(--ct-ink); line-height: 1.8; word-wrap: break-word; }
.ct-replybox { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 22px; background: var(--ct-bg); border: 1px solid var(--ct-line); }
.ct-closed { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 16px; border-radius: 16px; background: var(--ct-soft); color: var(--ct-mut); }
.ct-closed a { color: var(--ct-a); font-weight: 800; }

@media (max-width: 900px) {
  .ct-grid { grid-template-columns: 1fr; margin-top: -56px; }
  .ct-side { order: 2; }
  .ct-row { grid-template-columns: 1fr; }
  .ct-submit { flex-direction: column-reverse; align-items: stretch; }
  .ct-btn { width: 100%; }
  .ct-thead { flex-direction: column; }
  .ct-bubble { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ct-card, .ct-btn, .ct-topic span { transition: none; } }
