/* Contact page (public_news/pages/feedback.blade.php). Theme tokens (--ink, --muted, --line, --soft, --card-bg, --red)
   so dark mode follows. */

.ct-page {
  --ct-card: var(--card-bg, #fff);
  --ct-line: var(--line, #e5e7eb);
  --ct-soft: var(--soft, #f5f6f8);
  --ct-ink: var(--ink, #111827);
  --ct-muted: var(--muted, #646b78);
  --ct-red: var(--red, #d52a31);
  --ct-radius: 14px;
  --ct-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px -18px rgba(15, 23, 42, .35);
  padding-bottom: 40px;
  font-family: "Noto Sans Devanagari", "Nirmala UI", system-ui, sans-serif;
}
html[data-theme="dark"] .ct-page { --ct-shadow: 0 0 0 1px var(--line); }

/* Hero */
.ct-hero { padding: 16px 0 70px; color: #fff; background: radial-gradient(900px 260px at 90% -30%, rgba(213, 42, 49, .45), transparent 60%), linear-gradient(135deg, #0b1f33, #13314f); }
.ct-hero .breadcrumb-trail { width: auto; max-width: none; margin: 0 0 10px; padding: 0; }
body .ct-page .ct-hero .breadcrumb-trail :is(ol, a, span) { color: rgba(255, 255, 255, .8); }
body .ct-page .ct-hero .breadcrumb-trail a { color: #fff; }
.ct-hero h1 { margin: 0; color: #fff; font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; line-height: 1.2; }
.ct-hero p { max-width: 680px; margin: 8px 0 0; color: rgba(255, 255, 255, .82); font-size: 15.5px; line-height: 1.6; }

/* Layout: info column + form card, pulled up over the hero */
.ct-layout { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: -48px; }
.ct-info { display: flex; flex-direction: column; gap: 12px; }
.ct-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--ct-radius); background: var(--ct-card); box-shadow: var(--ct-shadow); color: inherit; text-decoration: none; transition: transform .15s; }
a.ct-card:hover { transform: translateY(-2px); }
.ct-card small { display: block; color: var(--ct-muted); font-size: 12.5px; font-weight: 600; }
.ct-card b { display: block; color: var(--ct-ink); font-size: 15.5px; font-weight: 800; overflow-wrap: anywhere; }
.ct-card b.is-text { font-size: 14px; font-weight: 600; line-height: 1.5; }
.ct-card-icon { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(213, 42, 49, .1); color: var(--ct-red); font-size: 20px; }
.ct-card-icon.is-green { background: rgba(22, 163, 74, .1); color: #15803d; }
.ct-card-icon.is-amber { background: rgba(217, 119, 6, .12); color: #b45309; }
.ct-mail { background: linear-gradient(135deg, var(--ct-card), var(--ct-card)) padding-box, linear-gradient(135deg, #f97316, var(--ct-red)) border-box; border: 1.5px solid transparent; }
.ct-note { padding: 16px; border-radius: var(--ct-radius); background: var(--ct-card); box-shadow: var(--ct-shadow); }
.ct-note h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--ct-ink); font-size: 15px; font-weight: 800; }
.ct-note p { margin: 0; color: var(--ct-muted); font-size: 13.5px; line-height: 1.6; }
.ct-note ul { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--ct-line); list-style: none; }
.ct-note li a { display: inline-flex; align-items: center; gap: 2px; padding: 3px 0; color: var(--ct-ink); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.ct-note li a:hover { color: var(--ct-red); }
.ct-safe { display: flex; gap: 8px; margin: 2px 4px 0; color: var(--ct-muted); font-size: 12.5px; line-height: 1.5; }
.ct-safe i { color: #15803d; }

/* Form card */
.ct-form-card { padding: 26px 28px; border-radius: var(--ct-radius); background: var(--ct-card); box-shadow: var(--ct-shadow); }
.ct-form-title { margin: 0 0 18px; color: var(--ct-ink); font-size: 21px; font-weight: 900; }
.ct-alert { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.ct-alert.is-error { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
html[data-theme="dark"] .ct-alert.is-error { color: #fca5a5; background: rgba(220, 38, 38, .12); border-color: rgba(220, 38, 38, .35); }
.ct-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.ct-topics { margin: 0 0 18px; padding: 0; border: 0; }
.ct-topics legend { margin-bottom: 8px; padding: 0; color: var(--ct-ink); font-size: 14px; font-weight: 800; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chip { position: relative; cursor: pointer; }
.ct-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ct-chip span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1.5px solid var(--ct-line); border-radius: 999px; background: var(--ct-card); color: var(--ct-ink); font-size: 13.5px; font-weight: 700; transition: border-color .15s, background .15s, color .15s; }
.ct-chip span i { color: var(--ct-muted); }
.ct-chip:hover span { border-color: #94a3b8; }
.ct-chip input:checked + span { border-color: var(--ct-red); background: rgba(213, 42, 49, .08); color: var(--ct-red); }
.ct-chip input:checked + span i { color: var(--ct-red); }
.ct-chip input:focus-visible + span { outline: 3px solid #f59e0b; outline-offset: 2px; }

.ct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.ct-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ct-field.is-wide { grid-column: 1 / -1; }
.ct-field label { color: var(--ct-ink); font-size: 13.5px; font-weight: 700; }
.ct-field label b { color: var(--ct-red); }
.ct-field input, .ct-field textarea {
  width: 100%; min-width: 0; padding: 11px 13px; border: 1.5px solid var(--ct-line); border-radius: 10px; background: var(--ct-card); color: var(--ct-ink);
  font: inherit; font-size: 15px; line-height: 1.5; transition: border-color .15s, box-shadow .15s;
}
.ct-field textarea { resize: vertical; min-height: 150px; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: #9aa3ae; }
.ct-field input:focus, .ct-field textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59, 130, 246, .15); }
.ct-field [aria-invalid="true"] { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .1); }
.ct-error { display: block; min-height: 18px; color: #dc2626; font-size: 12.5px; font-weight: 600; }
html[data-theme="dark"] .ct-error { color: #f87171; }
.ct-field-foot { display: flex; justify-content: space-between; gap: 10px; }
.ct-count { color: var(--ct-muted); font-size: 12px; white-space: nowrap; }

.ct-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 6px; color: var(--ct-muted); font-size: 13.5px; line-height: 1.55; cursor: pointer; }
.ct-consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ct-red); }
.ct-consent a { color: var(--ct-red); font-weight: 700; }
.ct-consent input[aria-invalid="true"] { outline: 2px solid #dc2626; outline-offset: 2px; }

.ct-submit-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--ct-line); }
.ct-shield { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--ct-muted); font-size: 13px; font-weight: 600; }
.ct-shield i { font-size: 16px; }
.ct-shield.is-checking i { color: #d97706; animation: ct-pulse 1s ease-in-out infinite; }
.ct-shield.is-ready, .ct-shield.is-ready i { color: #15803d; }
.ct-shield.is-failed, .ct-shield.is-failed i { color: #dc2626; }
@keyframes ct-pulse { 50% { opacity: .35; } }
.ct-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 26px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--ct-red), #ef4444); color: #fff; font: inherit; font-size: 15.5px; font-weight: 800; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(213, 42, 49, .9); transition: transform .12s, filter .15s;
}
.ct-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ct-btn:disabled { opacity: .7; cursor: progress; transform: none; }
.ct-btn.is-busy i { animation: ct-fly .8s ease-in-out infinite alternate; }
@keyframes ct-fly { to { transform: translateX(4px); } }
.ct-btn.is-ghost { background: var(--ct-soft); color: var(--ct-ink); box-shadow: none; border: 1px solid var(--ct-line); }
.ct-btn:focus-visible, .ct-card:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

/* Success */
.ct-success { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 10px; text-align: center; outline: none; }
.ct-success-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; font-size: 38px; box-shadow: 0 14px 30px -14px rgba(21, 128, 61, .9); }
.ct-success h2 { margin: 6px 0 0; color: var(--ct-ink); font-size: 22px; font-weight: 900; }
.ct-success p { max-width: 460px; margin: 0; color: var(--ct-muted); font-size: 15px; line-height: 1.6; }
.ct-ref { padding: 6px 14px; border-radius: 999px; background: var(--ct-soft); color: var(--ct-ink) !important; font-size: 14px !important; }
.ct-success .ct-btn { margin-top: 8px; }

@media (max-width: 900px) {
  .ct-layout { grid-template-columns: minmax(0, 1fr); margin-top: -40px; }
  .ct-info { order: 2; }
  .ct-form-card { order: 1; }
}
@media (max-width: 560px) {
  .ct-hero { padding-bottom: 58px; }
  .ct-form-card { padding: 20px 16px; }
  .ct-grid { grid-template-columns: minmax(0, 1fr); }
  .ct-chip span { padding: 7px 12px; font-size: 13px; }
  .ct-submit-row { flex-direction: column-reverse; align-items: stretch; }
  .ct-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ct-page * { animation: none !important; transition: none !important; } }

.ct-about-page { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: -6px 0 16px; padding: 8px 12px; border-radius: 10px; background: var(--ct-soft); color: var(--ct-muted); font-size: 13px; }
.ct-about-page a { color: var(--ct-ink); font-weight: 700; overflow-wrap: anywhere; }
.ct-about-clear { margin-left: auto; padding: 0 4px; border: 0; background: none; color: var(--ct-muted); font-size: 18px; line-height: 1; cursor: pointer; }
