/* ==========================================================================
   Contact Page — Faithful Reproduction
   Hero photo at top + overlapping form card with horizontal label layout
   ========================================================================== */

/* ── Wrapper ─────────────────────────────────── */
.ct-page {
	background: #f4f6fb;
	width: 100%;
	max-width: 100%;
	margin: -32px 0 0;
	padding: 0 0 80px;
	min-height: 100vh;
	overflow-x: hidden;
	overflow-x: clip;
}
.ct-page *,
.ct-page *::before,
.ct-page *::after {
	box-sizing: border-box;
}
.ct-sr-title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ── Hero ────────────────────────────────────── */
.ct-hero {
	position: relative;
	width: 100%;
	height: 460px;
	background: linear-gradient(180deg, #cfe1f5 0%, #e6eef9 100%);
	overflow: hidden;
}
.ct-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}

/* ── Container that overlaps hero ────────────── */
.ct-container {
	max-width: 1100px;
	margin: -260px auto 0;
	padding: 0 32px;
	position: relative;
	z-index: 2;
}

/* ── Form Card ───────────────────────────────── */
.ct-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 48px rgba(20, 40, 80, .12);
	padding: 56px 64px;
}

/* ── Form Fields (label left + input right) ──── */
.ct-row {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
	align-items: start;
	padding: 18px 0;
	border-bottom: 1px solid #eef0f5;
}
.ct-row:first-child { padding-top: 8px; }
.ct-row:last-of-type { border-bottom: none; }

.ct-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: .9375rem;
	font-weight: 700;
	color: #1b263b;
	padding-top: 14px;
	flex-wrap: wrap;
}
.ct-badge {
	display: inline-block;
	padding: 3px 10px;
	font-size: .6875rem;
	font-weight: 700;
	border-radius: 4px;
	letter-spacing: .03em;
}
.ct-badge--req {
	background: #ffe9ea;
	color: #d83a3f;
}
.ct-badge--opt {
	background: #e7eaf3;
	color: #6c7a93;
}

.ct-input,
.ct-select,
.ct-textarea {
	width: 100%;
	padding: 14px 16px;
	font-size: .9375rem;
	font-family: inherit;
	color: #1b263b;
	background: #fff;
	border: 1px solid #d8dde7;
	border-radius: 8px;
	transition: border-color .2s, box-shadow .2s;
}
.ct-input:focus,
.ct-select:focus,
.ct-textarea:focus {
	outline: none;
	border-color: #1e4ab8;
	box-shadow: 0 0 0 3px rgba(30, 74, 184, .12);
}
.ct-input::placeholder,
.ct-textarea::placeholder {
	color: #b0b8c5;
}
.ct-select {
	appearance: none;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 44px;
}
.ct-select:invalid,
.ct-select option[value=""] { color: #b0b8c5; }
.ct-select option { color: #1b263b; }

.ct-textarea {
	resize: vertical;
	min-height: 160px;
}
.ct-charcount {
	display: block;
	text-align: right;
	font-size: .75rem;
	color: #adb5bd;
	margin-top: 6px;
}

/* ── reCAPTCHA row ───────────────────────────── */
.ct-row--recaptcha {
	border-bottom: none;
	padding: 26px 0 8px;
}
.ct-row--recaptcha .ct-recaptcha {
	grid-column: 2;
}

/* ── Submit ──────────────────────────────────── */
.ct-row--submit {
	border-bottom: none;
	padding: 24px 0 0;
	display: block;
}
.ct-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 18px 24px;
	font-size: 1.0625rem;
	font-weight: 700;
	font-family: inherit;
	color: #fff;
	background: #1e4ab8;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background .2s, transform .15s, box-shadow .2s;
	box-shadow: 0 6px 20px rgba(30, 74, 184, .25);
}
.ct-submit:hover:not(:disabled) {
	background: #163a93;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(30, 74, 184, .35);
}
.ct-submit:active:not(:disabled) {
	transform: translateY(0);
}
.ct-submit:disabled {
	opacity: .55;
	cursor: not-allowed;
}

/* ── Validation ──────────────────────────────── */
.ct-input.is-invalid,
.ct-select.is-invalid,
.ct-textarea.is-invalid {
	border-color: #d83a3f;
	box-shadow: 0 0 0 3px rgba(216, 58, 63, .12);
}

/* ── Honeypot ────────────────────────────────── */
.ct-hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
	overflow: hidden;
}

/* ── Confirmation Screen ─────────────────────── */
.ct-confirm {
	display: none;
}
.ct-confirm.is-active {
	display: block;
	animation: ctFade .3s ease;
}
.ct-confirm__title {
	font-size: 1.375rem;
	font-weight: 800;
	color: #1b263b;
	margin: 0 0 8px;
}
.ct-confirm__lead {
	font-size: .875rem;
	color: #6c7a93;
	margin: 0 0 32px;
}
.ct-confirm__row {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
	padding: 20px 0;
	border-bottom: 1px solid #eef0f5;
}
.ct-confirm__label {
	font-size: .875rem;
	font-weight: 700;
	color: #6c7a93;
}
.ct-confirm__value {
	font-size: 1rem;
	color: #1b263b;
	white-space: pre-wrap;
	word-break: break-word;
	line-height: 1.7;
}
.ct-confirm__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 32px;
}
.ct-back {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 24px;
	font-size: 1rem;
	font-weight: 700;
	font-family: inherit;
	color: #1b263b;
	background: #fff;
	border: 2px solid #d8dde7;
	border-radius: 10px;
	cursor: pointer;
	transition: background .2s, border-color .2s;
}
.ct-back:hover {
	background: #f4f6fb;
	border-color: #1b263b;
}

/* ── Success Screen ──────────────────────────── */
.ct-success {
	max-width: 720px;
	margin: -180px auto 0;
	padding: 64px 48px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 48px rgba(20, 40, 80, .12);
	text-align: center;
	position: relative;
	z-index: 2;
	animation: ctFade .5s ease;
}
.ct-success__icon {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: #e8f5e9;
	border: 3px solid #4caf50;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #2e7d32;
	margin-bottom: 24px;
}
.ct-success__title {
	font-size: 1.75rem;
	font-weight: 800;
	color: #1b263b;
	margin: 0 0 16px;
}
.ct-success__text {
	font-size: .9375rem;
	color: #495057;
	line-height: 1.9;
	margin: 0 0 32px;
}
.ct-success__text strong { color: #1b263b; }
.ct-success__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 32px;
	font-size: .9375rem;
	font-weight: 700;
	color: #fff;
	background: #1e4ab8;
	border-radius: 10px;
	text-decoration: none;
	transition: background .2s, transform .15s;
}
.ct-success__btn:hover {
	background: #163a93;
	transform: translateY(-2px);
}

/* ── Error box ───────────────────────────────── */
.ct-error {
	background: #ffebee;
	border: 1px solid #fca5a5;
	border-left: 4px solid #c62828;
	border-radius: 8px;
	padding: 16px 20px;
	margin: 0 0 28px;
}
.ct-error__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .9375rem;
	font-weight: 700;
	color: #991b1b;
	margin: 0 0 8px;
}
.ct-error__list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.ct-error__list li {
	padding-left: 16px;
	color: #991b1b;
	font-size: .8125rem;
	margin-bottom: 4px;
	position: relative;
}
.ct-error__list li::before {
	content: '\2022';
	position: absolute;
	left: 4px;
	color: #c62828;
}

/* ── Animations ──────────────────────────────── */
@keyframes ctFade {
	from { opacity: 0; transform: translateY(-12px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
	.ct-hero { height: 340px; }
	.ct-container { margin-top: -180px; padding: 0 16px; }
	.ct-card { padding: 36px 28px; }
	.ct-row,
	.ct-confirm__row {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 16px 0;
	}
	.ct-row--recaptcha .ct-recaptcha { grid-column: 1; }
	.ct-label { padding-top: 0; }
}
@media (max-width: 600px) {
	.ct-page { margin-top: -16px; padding-bottom: 60px; }
	.ct-hero { height: 280px; }
	.ct-container { margin-top: -140px; padding: 0 12px; }
	.ct-card { padding: 28px 20px; border-radius: 12px; }
	.ct-confirm__actions { grid-template-columns: 1fr; }
	.ct-success { margin-top: -120px; padding: 48px 24px; }
}
