/*
 * Realestech · Contact page (Figma frame "Contact", node 2112:9441).
 * Loaded only by page-contact.php, after figma-shared.css and figma-pages.css.
 */

/* ---------- 01 HERO ---------- */
.ct-hero { padding: 105px 0; }
.ct-hero__intro { display: flex; flex-direction: column; gap: 28px; width: 690px; max-width: 100%; }

/* ---------- 02 ENQUIRY FORM ---------- */
.ct-enquiry { padding: 105px 0; }
.ct-enquiry__inner { display: flex; align-items: flex-start; gap: 126px; }
.ct-enquiry__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; width: 384px; flex: 0 0 384px; }
.ct-enquiry__title { width: 351px; max-width: 100%; }
.ct .ct-existing {
	display: flex; flex-direction: column; gap: 4px; width: 100%;
	margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--color-line-default);
}
.ct-existing .fp-link { min-height: 36px; }

.ct-form-panel { width: 690px; flex: 0 1 690px; min-height: 750px; padding: 48px; background: var(--color-surface-warm); }
.ct-form { display: flex; flex-direction: column; gap: 22px; }
.ct-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ct-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ct-field label, .ct-roles legend { font: 500 13px/normal var(--font-body); color: var(--color-brand-navy); }
.ct-field input, .ct-field textarea {
	display: block; width: 100%; height: 50px; margin: 0; padding: 0 14px;
	background: #fff; border: 1px solid var(--color-line-default); border-radius: 0;
	font: 400 15px/normal var(--font-body); color: var(--color-brand-navy);
	transition: border-color .2s ease;
}
.ct-field textarea { height: 120px; padding: 12px 14px; line-height: 1.5; resize: none; }
.ct-field input:hover, .ct-field textarea:hover { border-color: var(--color-line-strong); }
.ct-field input:focus, .ct-field textarea:focus { border-color: var(--color-brand-navy); }
.ct-field input[aria-invalid="true"] { border-color: #b42318; }
.ct .ct-field__error { font: 500 12px/16px var(--font-body); color: #b42318; margin-top: -2px; }
.ct-field__error:empty { display: none; }

.ct-roles { margin: 0; padding: 0; border: 0; min-width: 0; }
.ct-roles legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; }
.ct-roles__grid { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ct-role {
	position: relative; display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 16px;
	border: 1px solid var(--color-text-muted); cursor: pointer;
	font: 400 14px/normal var(--font-body); color: var(--color-brand-navy);
	transition: background-color .2s ease, border-color .2s ease;
}
.ct-role:hover { border-color: var(--color-brand-navy); }
.ct-role input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ct-role__dot { width: 16px; height: 16px; flex: none; border: 1px solid var(--color-text-muted); border-radius: 8px; background: transparent; }
.ct-role:has(input:checked) { background: #c4d3ec; border-color: var(--color-brand-navy); }
.ct-role input:checked + .ct-role__dot { border: 5px solid var(--color-brand-navy); background: #fff; }
.ct-role input:focus-visible + .ct-role__dot { outline: 2px solid var(--color-brand-aqua); outline-offset: 2px; }

.ct-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 6px; }
.ct .ct-form__privacy { width: 300px; font: 400 12px/19.2px var(--font-body); color: var(--color-text-body); }
.ct-form__submit { cursor: pointer; }
.ct-form__submit[disabled] { opacity: .7; cursor: progress; }
.ct .ct-form__status { font: 500 14px/20px var(--font-body); color: var(--color-brand-navy); }
.ct .ct-form__status:empty { display: none; }
.ct .ct-form__status.is-error { padding: 12px 14px; background: #fdecea; color: #8a1c13; border-left: 3px solid #b42318; }

/* Honeypot: off-screen for people, still in the DOM for bots */
.ct-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 04 OFFICE ---------- */
.ct-office { padding: 105px 0; }
.ct-office__inner { display: flex; align-items: center; gap: 126px; }
.ct-office__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; width: 486px; flex: 0 0 486px; }
.ct-office__head { display: flex; flex-direction: column; gap: 24px; }
.ct-details { width: 100%; margin: 0; border-top: 1px solid var(--color-brand-navy); }
.ct-details__row { display: flex; align-items: flex-start; gap: 24px; min-height: 68px; padding: 22px 0; border-bottom: 1px solid var(--color-line-default); }
.ct-details dt { flex: 0 0 102px; padding-top: 3px; }
.ct-details dd { margin: 0; font: 400 15px/22px var(--font-heading); color: var(--color-brand-navy); }
.ct-details address { font: inherit; font-style: normal; color: inherit; }
.ct-details .fp-tag { font-size: 12.3px; line-height: 20px; }
.ct-office__copy > .fp-link { min-height: 24px; }
.ct-map { width: 588px; flex: 0 1 588px; height: 520px; background: #cccccc; overflow: hidden; }
.ct-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.25); }

/* ---------- 05 SUPPORT ---------- */
.ct-support { padding: 110px 0; background: var(--color-surface-warm); }
.ct-support__inner { display: flex; align-items: center; gap: 126px; }
.ct-support__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; width: 690px; flex: 0 1 690px; }
.ct-support__links { width: 384px; flex: 0 0 384px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-line-default); }
.ct-support__links a {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0;
	border-bottom: 1px solid var(--color-line-default);
	font: 300 16px/normal var(--font-heading); color: var(--color-brand-navy);
}
.ct-support__links a img { width: 10px; height: 10px; transition: transform .2s ease; }
.ct-support__links a:hover img { transform: translate(2px, -2px); }

/* ================= Responsive ================= */
@media (max-width: 1279px) {
	.ct-enquiry__inner, .ct-office__inner, .ct-support__inner { gap: 64px; }
	.ct-enquiry__intro { flex-basis: 300px; width: 300px; }
	.ct-office__copy { flex-basis: 420px; width: 420px; }
	.ct-support__links { flex-basis: 340px; width: 340px; }
}

/* 768–1023: tablet (8 columns, 48 margin, 120 section padding) */
@media (max-width: 1023px) {
	.ct-hero { padding: 96px 0 80px; }
	.ct-enquiry, .ct-office { padding: 0 0 var(--space-section); }
	.ct-support { padding: var(--space-section) 0; }
	.ct-enquiry__inner, .ct-office__inner, .ct-support__inner { flex-direction: column; align-items: stretch; gap: 48px; }
	.ct-enquiry__intro, .ct-office__copy, .ct-support__copy, .ct-support__links { width: 100%; flex: none; max-width: 588px; }
	.ct-form-panel { width: 100%; flex: none; min-height: 0; }
	.ct-map { width: 100%; flex: none; height: 420px; }
}

/* ≤767: mobile (4 columns, 24 margin, 80 section padding) */
@media (max-width: 767px) {
	.ct-hero { padding: 56px 0; }
	.ct-hero__intro { gap: 20px; }
	.ct-enquiry__intro { gap: 20px; }
	.ct .ct-existing { margin-top: 8px; }
	.ct-form-panel { margin: 0 -24px; width: auto; padding: 40px 24px 32px; }
	.ct-form__row, .ct-roles__grid { grid-template-columns: 1fr; }
	.ct-role { height: auto; min-height: 50px; padding: 12px 16px; }
	.ct-form__footer { flex-direction: column; align-items: stretch; gap: 20px; }
	.ct .ct-form__privacy { width: auto; }
	.ct-form__submit { justify-content: center; height: 52px; }
	.ct-office__copy { gap: 32px; }
	.ct-details__row { flex-direction: column; gap: 6px; min-height: 0; padding: 18px 0; }
	.ct-details dt { flex: none; padding-top: 0; }
	.ct-map { height: 320px; margin: 0 -24px; width: auto; }
	.ct-support__copy { gap: 20px; }
}
