/* ============================================================
   soodu.id — Hubungi Kami (publik) + Pesan Masuk (admin)
   ============================================================ */
.ct-wrap { max-width: 1000px; margin: 20px auto 48px; padding: 0 16px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: start; color: #1f2933; }
.ct-wrap-narrow { max-width: 560px; display: block; }
.ct-intro h1 { font-size: 2rem; font-weight: 700; margin: 8px 0 10px; }
.ct-intro p { color: #4b5563; line-height: 1.65; margin: 0 0 16px; }
.ct-illustration { width: 120px; height: auto; }
.ct-points { margin: 0; padding: 0; }
.ct-points li { display: flex; align-items: center; gap: 8px; color: #4b5563; font-size: .92rem; margin-bottom: 8px; list-style: none; }
.ct-points i { color: #27b441; font-size: 20px; }

.ct-card { background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 24px; }
.ct-alert { background: #fdecea; color: #b3261e; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: .92rem; }

.ct-field { margin: 0 0 16px; padding: 0; border: 0; }
.ct-field[hidden] { display: none; }
.ct-field > label, .ct-field legend { display: block; font-weight: 600; font-size: .9rem; color: #374151; margin-bottom: 6px; padding: 0; }
.ct-field input[type=text], .ct-field input[type=tel], .ct-field input[type=email], .ct-field select, .ct-field textarea {
   box-sizing: border-box; width: 100%; height: 44px; margin: 0; padding: 0 12px; font: inherit; font-size: 1rem;
   border: 1px solid #d1d5db; border-radius: 8px; background: #fff; box-shadow: none; color: inherit;
}
.ct-field textarea { height: auto; min-height: 140px; padding: 10px 12px; line-height: 1.55; resize: vertical; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { outline: none; border-color: #27b441 !important; box-shadow: 0 0 0 3px rgba(39,180,65,.15) !important; }
.ct-invalid input, .ct-invalid select, .ct-invalid textarea { border-color: #e53935 !important; }
.ct-error { display: block; color: #e53935; font-size: .85rem; margin-top: 4px; }
.ct-counter { display: block; text-align: right; color: #9ca3af; font-size: .8rem; margin-top: 2px; }

.ct-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ct-segment label { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border: 1px solid #d1d5db; border-radius: 8px; cursor: pointer; font-weight: 600; color: #4b5563; font-size: .95rem; }
.ct-segment label i { font-size: 20px; }
.ct-segment label.active { border-color: #27b441; background: #f1faf3; color: #1d8f33; box-shadow: 0 0 0 1px #27b441 inset; }
/* sembunyikan radio bawaan tanpa menghilangkannya dari keyboard/pembaca layar (menimpa gaya Materialize) */
.ct-segment input[type=radio] { position: absolute !important; opacity: 0 !important; pointer-events: none; width: 1px; height: 1px; }
.ct-segment input[type=radio]:focus-visible + i { outline: 2px solid #27b441; outline-offset: 2px; border-radius: 4px; }

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

.ct-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border: 0; border-radius: 24px; background: #27b441; color: #fff !important; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.ct-submit:hover { background: #1d8f33; }
.ct-submit:disabled { opacity: .7; cursor: wait; }
.ct-link { color: #1d8f33; text-decoration: underline; }
.ct-muted { color: #6b7280; font-size: .9rem; }

.ct-done { text-align: center; padding: 36px 28px; }
.ct-done h1 { font-size: 1.7rem; font-weight: 700; margin: 8px 0 10px; }
.ct-done p { color: #4b5563; line-height: 1.6; }
.ct-done-icon { font-size: 64px; color: #27b441; }
.ct-done-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 20px; }
.ct-done-actions .ct-submit { width: auto; padding: 0 28px; }

@media (max-width: 768px) {
   .ct-wrap { grid-template-columns: 1fr; gap: 16px; }
   .ct-intro h1 { font-size: 1.6rem; }
   .ct-illustration { width: 84px; }
   .ct-card { padding: 18px 16px; }
}

/* ============================================================
   Admin: Pesan Masuk
   ============================================================ */
.ct-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ct-tabs a { padding: 6px 12px; border-radius: 16px; background: #f1f1f1; color: #444; font-size: .9rem; }
.ct-tabs a.active { background: #616161; color: #fff; }
.ct-chip { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: .78rem; font-weight: 600; color: #fff; white-space: nowrap; }
.ct-chip.baru { background: #e53935; }
.ct-chip.dibaca { background: #f39c12; }
.ct-chip.dibalas { background: #27b441; }
.ct-chip.selesai { background: #9e9e9e; }
.ct-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ct-table-wrap table td:first-child { min-width: 120px; }
.ct-row-new td { font-weight: 700; }
.ct-row-new td .ct-snippet { font-weight: 400; }
.ct-snippet { color: #777; font-size: .85rem; display: block; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-channel-ico { font-size: 18px; vertical-align: middle; color: #555; }
.ct-empty-admin { text-align: center; padding: 40px 16px; color: #777; }
.ct-empty-admin i { font-size: 48px; color: #ccc; }

.ct-msg-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: flex-start; }
.ct-msg-head h5 { margin: 0 0 4px; font-size: 1.3rem; }
.ct-msg-meta { color: #777; font-size: .9rem; }
.ct-msg-meta a { color: #1d8f33; }
.ct-bubble { background: #f4f8f5; border-left: 4px solid #27b441; border-radius: 6px; padding: 12px 14px; margin: 14px 0 6px; white-space: pre-wrap; line-height: 1.6; overflow-wrap: anywhere; }
.ct-bubble.admin { background: #f5f7fb; border-left-color: #3478c8; }
.ct-reply-meta { font-size: .82rem; color: #777; margin-top: 14px; }
.ct-reply-meta .fail { color: #e53935; font-weight: 600; }
.ct-reply-box textarea { min-height: 150px; border: 1px solid #ccc; border-radius: 6px; padding: 10px; box-sizing: border-box; font: inherit; line-height: 1.5; resize: vertical; }
.ct-reply-box textarea:focus { border-color: #27b441; outline: none; }
.ct-reply-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.ct-templates { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ct-templates button { border: 1px solid #ddd; background: #fafafa; border-radius: 14px; padding: 3px 10px; font-size: .8rem; cursor: pointer; }
.ct-templates button:hover { border-color: #27b441; }
.ct-side dt { color: #888; font-size: .8rem; margin-top: 10px; }
.ct-side dd { margin: 2px 0 0; overflow-wrap: anywhere; }
