/* ==========================================================================
   หน้าติดต่อเรา contact.php — การ์ดช่องทางติดต่อ 4 ใบ + ฟอร์มส่งข้อความ + แผนที่
   โหลดต่อจาก site.css ใช้คลาสขึ้นต้นด้วย ct- ทั้งหมด ไม่กระทบหน้าอื่น
   ========================================================================== */
.ct-sec { padding: 40px 0 48px; }

/* การ์ดช่องทางติดต่อ */
.ct-channels { display: grid; margin-bottom: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ct-channel { position: relative; display: flex; min-width: 0; padding: 20px 20px 18px; flex-direction: column; gap: 3px; color: inherit; background: #fff; border: 1px solid #dcefe4; border-radius: 20px; box-shadow: 0 6px 20px rgba(0, 82, 65, .05); transition: transform .2s ease, border-color .2s ease; }
a.ct-channel:hover { border-color: var(--green-600); transform: translateY(-3px); }
.ct-ico { display: grid; width: 52px; height: 52px; margin-bottom: 10px; place-items: center; color: var(--green-700); background: #e2f6ea; border-radius: 16px; }
.ct-ico .ico { width: 27px; height: 27px; }

.ct-channel.line .ct-ico .ico { width: 30px; height: 28px; }
.ct-channel small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.ct-channel b { color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.5; word-break: break-word; }
.ct-channel b.ct-big { font-size: 22px; line-height: 1.35; }
.ct-channel em { color: var(--muted); font-size: 13px; font-style: normal; line-height: 1.55; }
.ct-go { position: absolute; top: 18px; right: 18px; display: grid; width: 32px; height: 32px; place-items: center; color: var(--green-800); background: #e2f6ea; border-radius: 50%; }
.ct-go .ico { width: 14px; height: 14px; }

/* ฟอร์ม + แผนที่ */
.ct-split { display: grid; align-items: stretch; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; scroll-margin-top: 96px; }
.ct-card { padding: 26px 28px 24px; background: #fff; border: 1px solid #dcefe4; border-radius: 20px; box-shadow: 0 6px 20px rgba(0, 82, 65, .05); }
.ct-card h2 { margin: 0 0 6px; color: var(--green-950); font-size: 24px !important; font-weight: 700; line-height: 1.35 !important; }
.ct-lead { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.ct-form { display: grid; gap: 14px; }
.ct-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ct-field { min-width: 0; }
.ct-field label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 13.5px; font-weight: 700; }
.ct-field label em { color: #d23b3b; font-style: normal; }
.ct-input { position: relative; }
.ct-input > .ico { position: absolute; top: 50%; left: 14px; width: 18px; height: 18px; color: #8db3a0; transform: translateY(-50%); pointer-events: none; }
.ct-input.ct-area > .ico { top: 16px; transform: none; }
.ct-input input,
.ct-input textarea { width: 100%; min-height: 46px; padding: 10px 14px 10px 44px; color: var(--ink); background: #fff; border: 1px solid #cfe5d9; border-radius: 12px; font: inherit; font-size: 14.5px; transition: border-color .15s ease, box-shadow .15s ease; }
.ct-input textarea { min-height: 104px; resize: vertical; line-height: 1.6; }
.ct-input input::placeholder,
.ct-input textarea::placeholder { color: #98a9a1; }
.ct-input input:focus,
.ct-input textarea:focus { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(0, 165, 104, .14); outline: 0; }
.ct-form .kk-btn { width: 100%; min-height: 50px; justify-content: center; }
.ct-note { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.ct-note .ico { width: 15px; height: 15px; margin-top: 3px; flex: none; color: var(--green-700); }
.ct-note a { margin-left: 4px; color: var(--green-700); text-decoration: underline; }

/* การ์ดแผนที่ */
.ct-mapcard { display: flex; flex-direction: column; }
.ct-map-head { display: flex; margin-bottom: 16px; align-items: center; justify-content: space-between; gap: 12px; }
.ct-map-head h2 { display: flex; margin: 0; align-items: center; gap: 10px; }
.ct-map-head h2::before { width: 5px; height: 22px; flex: none; content: ""; background: var(--green-700); border-radius: 3px; }
.ct-map-head .kk-btn { flex: none; }
.ct-map { display: block; width: 100%; min-height: 360px; flex: 1; border: 0; border-radius: 14px; }

/* คำถามที่พบบ่อย */
.ct-faq-sec { padding: 56px 0 60px; }
.ct-faq-wrap { display: grid; align-items: center; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 56px; }
.ct-eyebrow { display: inline-flex; margin-bottom: 14px; align-items: center; gap: 10px; color: var(--green-700); font-size: 14px; font-weight: 600; }
.ct-eyebrow::before { width: 26px; height: 2px; content: ""; background: var(--green-600); border-radius: 2px; }
.ct-faq-head h2 { margin: 0 0 16px; color: var(--green-950); font-size: clamp(26px, 3vw, 38px) !important; font-weight: 700; line-height: 1.3 !important; letter-spacing: -.01em; }
.ct-faq-head h2 strong { display: block; color: var(--green-700); font-weight: 700; }
.ct-faq-head p { max-width: 440px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.ct-faq { display: grid; gap: 12px; }
.ct-q { background: #fff; border: 1px solid #dcefe4; border-radius: 16px; transition: background .2s ease, border-color .2s ease; }
.ct-q[open] { background: #eef9f2; border-color: var(--green-600); }
.ct-q summary { display: flex; padding: 16px 18px; align-items: center; gap: 14px; list-style: none; cursor: pointer; }
.ct-q summary::-webkit-details-marker { display: none; }
.ct-q-ico { display: grid; width: 40px; height: 40px; flex: none; place-items: center; color: var(--green-700); background: #e2f6ea; border-radius: 12px; }
.ct-q-ico .ico { width: 21px; height: 21px; }
.ct-q-t { min-width: 0; flex: 1; color: var(--ink); font-size: 15.5px; font-weight: 700; line-height: 1.5; }
.ct-q-go { display: grid; width: 30px; height: 30px; flex: none; place-items: center; color: var(--green-800); background: #e2f6ea; border-radius: 50%; transition: transform .2s ease, background .2s ease, color .2s ease; }
.ct-q-go .ico { width: 13px; height: 13px; }
.ct-q[open] .ct-q-go { color: #fff; background: var(--green-700); transform: rotate(180deg); }
.ct-q p { margin: 0; padding: 0 20px 18px 72px; color: var(--text); font-size: 14.5px; line-height: 1.75; }
@media (max-width: 900px) {
    .ct-faq-wrap { grid-template-columns: 1fr; gap: 28px; }
    .ct-faq-head p { max-width: none; }
}
@media (max-width: 560px) {
    .ct-faq-sec { padding: 36px 0 40px; }
    .ct-q summary { padding: 14px; gap: 12px; }
    .ct-q p { padding: 0 16px 16px; }
}
@media (max-width: 1100px) {
    .ct-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .ct-sec { padding: 28px 0 36px; }
    .ct-channels { grid-template-columns: 1fr; }
    .ct-card { padding: 20px 18px; }
    .ct-row { grid-template-columns: 1fr; }
    .ct-map-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .ct-channel, .ct-q, .ct-q-go { transition: none; }
}
