/*
 * Contact page styles — reference layout.
 * Dark hero with check points, overlapping 4-up contact card bar,
 * message form + side panels, FAQ accordion and image CTA.
 * Load order: after style.css. Accordion hooks (.faq-item/.faq-q/
 * .faq-a/faq-item-open) are driven by main.js.
 */

.ct-main {
	background: #f9faf6;
	color: var(--db-text);
}

.ct-inner {
	max-width: var(--db-container);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------------- */
.ct-hero {
	position: relative;
	height: 360px;
	overflow: hidden;
	background: #122d22;
}

.ct-hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ct-hero-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(11, 31, 24, 0.95) 0%, rgba(11, 31, 24, 0.7) 55%, rgba(11, 31, 24, 0.1) 100%);
}

.ct-hero-shade-bottom {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 40%);
}

.ct-hero-inner {
	position: relative;
	z-index: 1;
	max-width: var(--db-container);
	margin: 0 auto;
	padding: 0 24px;
	height: 100%;
	display: flex;
	align-items: center;
}

.ct-hero-content {
	width: 100%;
	padding: 32px 0;
}

.ct-hero-title {
	color: #fff;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	max-width: 480px;
	margin: 0;
}

.ct-hero-subtitle {
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	line-height: 1.45;
	max-width: 380px;
	margin: 12px 0 0;
}

.ct-hero-points {
	margin-top: 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ct-hero-point {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ct-hero-point-check {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #1a5a32;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ct-hero-point-text {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.7);
}

.ct-hero-point-title {
	color: #fff;
	font-weight: 600;
	margin-right: 4px;
}

/* ---------------------------------------------------------------------------
 * Contact cards bar
 * ------------------------------------------------------------------------- */
.ct-cards-wrap {
	position: relative;
	z-index: 20;
	margin-top: -32px;
}

.ct-cards {
	background: var(--db-card);
	border: 1px solid #eef1ea;
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
	padding: 20px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

.ct-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	min-width: 0;
}

.ct-card-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #e8f3e4;
	color: #164a2e;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 2px;
}

.ct-card-icon-wa {
	color: #25d366;
	background: #e8f3e4;
}

.ct-card-body {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.ct-card-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b7280;
}

.ct-card-value {
	font-size: 14px;
	font-weight: 600;
	color: #0e2f24;
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ct-card-sub {
	font-size: 11.5px;
	line-height: 1.35;
	color: #6b7280;
	margin-top: 2px;
}

/* ---------------------------------------------------------------------------
 * Main grid
 * ------------------------------------------------------------------------- */
.ct-section {
	padding: 40px 0 48px;
}

.ct-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

.ct-form-card,
.ct-panel {
	background: var(--db-card);
	border: 1px solid #eef1ea;
	border-radius: 16px;
	padding: 20px;
}

.ct-form-card h2 {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
}

.ct-form-sub {
	font-size: 12.5px;
	color: #6b7280;
	margin: 4px 0 0;
}

.ct-form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin-top: 20px;
}

.ct-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ct-field-full {
	grid-column: 1 / -1;
}

.ct-field label {
	font-size: 12px;
	font-weight: 600;
	color: var(--db-text);
}

.ct-field label span[aria-hidden] {
	color: #ef4444;
}

.ct-field input,
.ct-field select,
.ct-field textarea {
	width: 100%;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: var(--db-card);
	padding: 9px 12px;
	font-size: 14px;
	color: var(--db-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ct-field textarea {
	resize: none;
	line-height: 1.5;
}

.ct-field input::placeholder,
.ct-field textarea::placeholder {
	color: #9ca3af;
}

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
	outline: none;
	border-color: #164a2e;
	box-shadow: 0 0 0 3px rgba(22, 74, 46, 0.1);
}

.ct-select {
	position: relative;
}

.ct-select select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 32px;
	cursor: pointer;
}

.ct-select .db-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #6b7280;
	pointer-events: none;
}

.ct-form-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 4px;
}

.ct-submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 20px;
	border: none;
	border-radius: 999px;
	background: #164a2e;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ct-submit:hover {
	background: #123f27;
}

.ct-submit.is-loading {
	opacity: 0.7;
	cursor: wait;
}

.ct-form-note {
	font-size: 12px;
	color: #9ca3af;
}

.ct-form-status {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 13px;
}

.ct-form-status.is-success {
	color: #165a2e;
}

.ct-form-status.is-error {
	color: #b91c1c;
}

/* ---------------------------------------------------------------------------
 * Blog only mode: basic contact form
 * ------------------------------------------------------------------------- */
.ct-section-basic {
	padding: 64px 0 72px;
}

.ct-grid-basic {
	display: block;
	max-width: 640px;
	margin: 0 auto;
}

.ct-grid-basic .ct-form-card {
	padding: 28px;
}

.ct-form-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
}

/* ---------------------------------------------------------------------------
 * Side panels
 * ------------------------------------------------------------------------- */
.ct-side {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ct-panel h3 {
	font-size: 15px;
	font-weight: 700;
	margin: 0;
}

.ct-map {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	height: 170px;
	margin-top: 16px;
	background: #e5e7eb;
}

.ct-map img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ct-map-pill {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: max-content;
	max-width: calc(100% - 24px);
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border-radius: 999px;
	padding: 8px 16px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	white-space: nowrap;
	overflow: hidden;
}

.ct-map-pill .db-icon {
	color: #164a2e;
	flex-shrink: 0;
}

.ct-map-pill-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--db-text);
	margin-left: 6px;
}

.ct-map-pill-sub {
	font-size: 12px;
	color: #6b7280;
	margin-left: 8px;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 480px) {
	.ct-map-pill-sub {
		display: none;
	}
}

.ct-map-rows {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ct-map-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.ct-map-row .db-icon {
	color: #164a2e;
	flex-shrink: 0;
	margin-top: 2px;
}

.ct-map-row-title {
	font-size: 12.5px;
	font-weight: 600;
}

.ct-map-row-text {
	font-size: 11.5px;
	line-height: 1.45;
	color: #6b7280;
	margin-top: 2px;
}

/* Why contact us */
.ct-why-list {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ct-why {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.ct-why-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #e8f3e4;
	color: #164a2e;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ct-why-title {
	font-size: 14px;
	font-weight: 600;
}

.ct-why-text {
	font-size: 11.5px;
	line-height: 1.5;
	color: #6b7280;
	margin-top: 2px;
}

/* ---------------------------------------------------------------------------
 * FAQ accordion (JS: .faq-item / .faq-q / faq-item-open)
 * ------------------------------------------------------------------------- */
.ct-faq-col h3 {
	font-size: 15px;
	font-weight: 700;
	margin: 0;
}

.ct-faq-list {
	margin-top: 16px;
	background: var(--db-card);
	border: 1px solid #eef1ea;
	border-radius: 16px;
	overflow: hidden;
}

.ct-faq-item + .ct-faq-item {
	border-top: 1px solid #eef1ea;
}

.ct-faq-q {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 14px 16px;
	background: none;
	border: none;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ct-faq-q:hover {
	background: #fcfdf9;
}

.ct-faq-question {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--db-text);
}

.ct-faq-chevron {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 1px solid #e5e7eb;
	background: var(--db-card);
	color: #6b7280;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.2s ease;
}

.ct-faq-item.faq-item-open .ct-faq-chevron {
	background: #164a2e;
	color: #fff;
	border-color: #164a2e;
	transform: rotate(180deg);
}

.ct-faq-a {
	display: none;
	padding: 0 16px;
}

.ct-faq-item.faq-item-open .ct-faq-a {
	display: block;
}

.ct-faq-a p {
	font-size: 13px;
	line-height: 1.45;
	color: #6b7280;
	margin: 0;
	padding: 0 8px 14px 0;
}

/* ---------------------------------------------------------------------------
 * Image CTA
 * ------------------------------------------------------------------------- */
.ct-cta-col {
	display: flex;
}

.ct-cta {
	position: relative;
	flex: 1;
	min-height: 280px;
	border-radius: 16px;
	overflow: hidden;
	background: #e5e7eb;
}

.ct-cta > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ct-cta-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(11, 31, 24, 0.85) 0%, rgba(11, 31, 24, 0.3) 55%, rgba(11, 31, 24, 0) 100%);
}

.ct-cta-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 20px;
}

.ct-cta-body h4 {
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	margin: 0;
}

.ct-cta-body p {
	color: rgba(255, 255, 255, 0.75);
	font-size: 12.5px;
	margin: 4px 0 0;
}

.ct-cta-btn {
	margin-top: 16px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 16px;
	border-radius: 999px;
	background: #16a34a;
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease;
}

.ct-cta-btn:hover {
	background: #15803d;
	color: #fff;
}

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------- */
@media (min-width: 768px) {
	.ct-hero {
		height: 340px;
	}

	.ct-hero-shade {
		background: linear-gradient(90deg, rgba(11, 31, 24, 0.95) 0%, rgba(11, 31, 24, 0.7) 55%, rgba(11, 31, 24, 0.05) 100%);
	}

	.ct-hero-title {
		font-size: 32px;
	}

	.ct-cards-wrap .ct-inner {
		padding: 0 24px;
	}

	.ct-cards {
		grid-template-columns: repeat(2, 1fr);
		padding: 20px 24px;
	}

	.ct-form {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.ct-grid {
		grid-template-columns: repeat(12, 1fr);
	}

	.ct-form-card {
		grid-column: span 7;
		padding: 24px;
	}

	.ct-side {
		grid-column: span 5;
	}

	.ct-faq-col {
		grid-column: span 6;
	}

	.ct-cta-col {
		grid-column: span 6;
	}

	.ct-panel {
		padding: 24px;
	}

	.ct-cards {
		grid-template-columns: repeat(4, 1fr);
		gap: 0;
	}

	.ct-card + .ct-card {
		border-left: 1px solid #eef0eb;
		padding-left: 24px;
	}
}
