/**
 * หน้าติดต่อเรา (templates/contact.php)
 *
 * โครงหน้าอยู่ใน page-shell.css · ไฟล์นี้มีเฉพาะการ์ดช่องทางติดต่อ ช่องทางโซเชียล และกล่องแบบสอบถาม
 * ใช้การ์ดพื้น --cds-surface ขอบ --orb-line มุม 4px ชุดเดียวกับหน้าอื่นของธีม
 *
 * @package Cyber_Deep_Space
 */

.site-main--contact ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-main--contact a {
	text-decoration: none;
}

.pg--contact {
	padding-block-end: 90px;
}

/* ==========================================================================
   1. การ์ดช่องทางติดต่อ
   ========================================================================== */

.ct-cards {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	align-items: stretch;
	gap: 16px;
}

/* ที่อยู่มีข้อความยาวกว่าช่องอื่น จึงอยู่คอลัมน์ซ้ายสูงเท่ากับสามช่องทางที่เหลือรวมกัน */
.ct-card--wide {
	grid-row: span 3;
}

@media (max-width: 61.99rem) {
	.ct-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.ct-card--wide {
		grid-row: auto;
	}
}

.ct-card {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 14px;
	height: 100%;
	padding: 20px;
	background: var(--cds-surface);
	border: 1px solid var(--orb-line);
	border-radius: 4px;
}

.ct-card__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: var(--cds-accent);
	background: color-mix(in oklch, var(--cds-accent) 14%, transparent);
	border-radius: 50%;
}

.ct-card__icon svg {
	width: 22px;
	height: 22px;
}

.ct-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.ct-card__body p {
	margin: 0;
}

.ct-card__title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--orb-text-dim);
}

.ct-card__value {
	font-size: 19px;
	font-weight: 600;
	line-height: 1.4;
	font-variant-numeric: tabular-nums;
}

.ct-card__value a {
	color: var(--cds-text);
}

.ct-card__value a:hover,
.ct-card__value a:focus-visible {
	color: var(--cds-accent);
}

.ct-card__org {
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.55;
}

.ct-card__text {
	font-size: 14.5px;
	line-height: 1.75;
	color: var(--orb-text-soft);
	text-wrap: pretty;
}

.ct-card__link {
	align-self: start;
	margin-block-start: 2px;
	font-size: 13.5px;
	font-weight: 600;
	color: #53a8f5;
}

.ct-card__link:hover,
.ct-card__link:focus-visible {
	text-decoration: underline;
}

/* ==========================================================================
   2. ช่องทางโซเชียล
   ========================================================================== */

.ct-heading {
	margin: 40px 0 16px;
	font-size: 20px;
	font-weight: 700;
}

/* โซเชียลมี 4 ช่องทางเสมอ — แบ่ง 4 ช่องเท่ากันเต็มแถว (เดิม auto-fill เว้นคอลัมน์ว่างไว้บนจอกว้าง)
   จอกลาง 2 ช่อง จอเล็ก 1 ช่อง เพื่อไม่ให้ช่องสุดท้ายเดี่ยวอยู่ลำพัง */
.ct-social {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

@media (max-width: 61.99rem) {
	.ct-social {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 29.99rem) {
	.ct-social {
		grid-template-columns: minmax(0, 1fr);
	}
}

.ct-social a,
.ct-social__item {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) 16px;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: var(--cds-surface);
	border: 1px solid var(--orb-line);
	border-radius: 4px;
	transition: border-color 0.2s;
}

.ct-social a:hover,
.ct-social a:focus-visible {
	border-color: color-mix(in oklch, var(--cds-accent) 45%, var(--orb-line));
}

/* ช่องทางที่หลังบ้านยังไม่ระบุลิงก์ — หน้าตาเหมือนช่องอื่น แต่ไม่ใช่ลิงก์ (ไม่มีมือ ไม่มีเอฟเฟกต์ตอนชี้) */
.ct-social__item--off {
	cursor: default;
}

.ct-social__icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: var(--social-fg, #1a1a1a);
	background: #fff;
	border: 1px solid #c9ccd1;
	border-radius: 50%;
}

.ct-social__icon svg {
	width: 1.3rem;
	height: 1.3rem;
}

.ct-social__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ct-social__name {
	font-size: 15px;
	font-weight: 500;
	color: var(--cds-text);
}

.ct-social__handle {
	overflow: hidden;
	font-size: 13px;
	color: var(--orb-text-dim);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ct-social__arrow {
	font-size: 13px;
	color: var(--orb-text-dim);
}

/* ==========================================================================
   3. กล่องแบบสอบถาม
   ========================================================================== */

.ct-survey {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	margin-block-start: 44px;
	padding: 26px 28px;
	background: var(--cds-surface);
	border: 1px solid var(--orb-line);
	border-radius: 4px;
}

.ct-survey__copy {
	min-width: min(100%, 320px);
	max-width: 760px;
}

.ct-survey__copy p {
	margin: 0;
}

.ct-survey__kicker {
	margin-block-end: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--cds-highlight);
}

.ct-survey__title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
}

.ct-survey__text {
	font-size: 15px;
	line-height: 1.8;
	color: var(--orb-text-soft);
	text-wrap: pretty;
}

/* แผนที่ฝังจากหลังบ้าน (iframe) — กว้างเต็มกล่อง สัดส่วนคงที่ ไม่ล้นจอเล็ก */
.ct-map {
	margin-block-start: 16px;
	overflow: hidden;
	border: 1px solid var(--orb-line);
	border-radius: 4px;
}

.ct-map iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}
