/* =========================================================
   CONTACT PAGE
========================================================= */

.ht-contact-page {
	background: #ffffff;
	min-height: calc(100vh - 100px);
}

/* =========================================================
   HEADER
========================================================= */

.ht-contact-header {
	max-width: 900px;
	margin: 0 auto;
	padding: 110px 20px 30px;
	text-align: center;
}

.ht-contact-title {
	margin: 0 0 14px;
	color: var(--primary-dark);
	font-size: clamp(38px, 5vw, 58px);
	font-weight: 600;
	letter-spacing: -1.5px;
}

.ht-contact-subtitle {
	max-width: 800px;
	margin: 0 auto;
	color: #64748b;
	font-size: 17px;
	line-height: 1.7;
}

/* =========================================================
   MAIN CONTENT
========================================================= */

.ht-contact-container {
	max-width: 1380px;
	margin: 0 auto;
	padding: 20px 35px 80px;
}

.ht-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.25fr;
	gap: 55px;
	align-items: stretch;
}

/* =========================================================
   CONTACT INFORMATION
========================================================= */

.ht-contact-info {
	padding: 20px 10px;
}

.ht-contact-info-item {
	display: flex;
	gap: 24px;
	padding: 26px 0;
	border-bottom: 1px solid #dbe3ec;
}

.ht-contact-info-item:first-child {
	padding-top: 5px;
}

.ht-contact-info-item:last-child {
	border-bottom: none;
}

.ht-contact-icon {
	flex: 0 0 70px;
	width: 70px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #eef6ff;
	color: var(--primary-dark);
	font-size: 28px;
}

.ht-contact-info-content {
	padding-top: 1px;
}

.ht-contact-info-content h3 {
	margin: 0 0 7px;
	color: var(--primary-dark);
	font-size: 21px;
	font-weight: 600;
}

.ht-contact-info-content p {
	margin: 0;
	color: #475569;
	font-size: 17px;
	line-height: 1.65;
}

.ht-contact-info-content a {
	color: #475569;
	font-size: 17px;
	text-decoration: none;
}

.ht-contact-info-content a:hover {
	color: var(--primary-light);
}

/* =========================================================
   FORM CARD (behaviour: js/pages/contact.js)
========================================================= */

.ht-contact-form-card {
	--cf-gold: #fca311;
	--cf-error: #dc2626;
	--cf-ease: cubic-bezier(0.22, 1, 0.36, 1);

	position: relative;
	padding: 34px;
	border: 1px solid #e6edf6;
	border-radius: 24px;
	background: #ffffff;
	box-shadow: 0 24px 60px rgba(27, 54, 93, 0.09);
}

/* Gold line along the top edge */
.ht-contact-form-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 34px;
	right: 34px;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: linear-gradient(90deg, var(--cf-gold), #ffd27a);
}

.ht-cf-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 24px;
}

.ht-cf-head-icon {
	display: grid;
	flex: 0 0 48px;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
	color: #ffffff;
	font-size: 18px;
	box-shadow: 0 10px 22px rgba(27, 54, 93, 0.25);
}

.ht-cf-title {
	margin: 0;
	color: var(--primary-dark);
	font-size: 22px;
	font-weight: 700;
}

.ht-cf-subtitle {
	margin: 2px 0 0;
	color: #64748b;
	font-size: 14px;
}

/* Spam trap: off screen for people, still filled in by bots */
.ht-cf-trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* "I'm looking to" chips */
.ht-cf-interest {
	margin: 0 0 22px;
	padding: 0;
	border: 0;
}

.ht-cf-interest legend {
	float: none;
	width: auto;
	margin-bottom: 10px;
	padding: 0;
	color: var(--primary-dark);
	font-size: 15px;
	font-weight: 600;
}

.ht-cf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ht-cf-chip {
	position: relative;
	cursor: pointer;
}

.ht-cf-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ht-cf-chip span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 15px;
	border: 1px solid #dbe3ee;
	border-radius: 999px;
	background: #f8fafc;
	color: #475569;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ht-cf-chip span i {
	font-size: 12px;
	color: #94a3b8;
	transition: color 0.2s ease;
}

.ht-cf-chip:hover span {
	border-color: var(--primary-light);
	transform: translateY(-1px);
}

.ht-cf-chip input:checked + span {
	border-color: var(--primary-dark);
	background: var(--primary-dark);
	color: #ffffff;
	box-shadow: 0 8px 18px rgba(27, 54, 93, 0.22);
}

.ht-cf-chip input:checked + span i {
	color: var(--cf-gold);
}

.ht-cf-chip input:focus-visible + span {
	outline: 2px solid var(--cf-gold);
	outline-offset: 2px;
}

/* Fields */
.ht-cf-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.ht-contact-form-group {
	margin-bottom: 18px;
}

.ht-contact-form-group label {
	display: block;
	margin-bottom: 8px;
	color: var(--primary-dark);
	font-size: 15px;
	font-weight: 600;
}

.ht-cf-optional {
	color: #94a3b8;
	font-size: 13px;
	font-weight: 400;
}

.ht-cf-field {
	position: relative;
}

.ht-cf-field > i {
	position: absolute;
	top: 50%;
	left: 17px;
	color: #94a3b8;
	font-size: 15px;
	transform: translateY(-50%);
	pointer-events: none;
	transition: color 0.2s ease;
}

.ht-cf-field input,
.ht-cf-field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1.5px solid #dbe3ee;
	border-radius: 14px;
	background: #f8fafc;
	color: var(--text-main);
	font-family: inherit;
	font-size: 15px;
	outline: none;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ht-cf-field input {
	height: 52px;
	padding: 0 16px 0 46px;
}

.ht-cf-field textarea {
	display: block;
	min-height: 140px;
	padding: 14px 16px;
	line-height: 1.6;
	resize: vertical;
}

.ht-cf-field input::placeholder,
.ht-cf-field textarea::placeholder {
	color: #a0aec0;
}

.ht-cf-field input:hover,
.ht-cf-field textarea:hover {
	border-color: #c3cfdf;
}

.ht-cf-field input:focus,
.ht-cf-field textarea:focus {
	border-color: var(--primary-light);
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(44, 82, 130, 0.1);
}

.ht-cf-field:focus-within > i {
	color: var(--primary-dark);
}

/* Invalid field (set by contact.js) */
.ht-contact-form-group.has-error .ht-cf-field input,
.ht-contact-form-group.has-error .ht-cf-field textarea {
	border-color: var(--cf-error);
	background: #fffafa;
	box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.ht-contact-form-group.has-error .ht-cf-field > i {
	color: var(--cf-error);
}

.ht-contact-form-group.has-error .ht-cf-field {
	animation: cfShake 0.4s ease;
}

.ht-cf-error {
	display: block;
	min-height: 0;
	margin-top: 6px;
	color: var(--cf-error);
	font-size: 13px;
}

.ht-cf-error:empty {
	display: none;
}

.ht-cf-meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.ht-cf-count {
	margin-top: 6px;
	margin-left: auto;
	color: #94a3b8;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.ht-cf-count.is-near-limit {
	color: #b45309;
}

/* Submit */
.ht-contact-submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 54px;
	margin-top: 4px;
	padding: 0 28px;
	border: none;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
	color: #ffffff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 12px 26px rgba(27, 54, 93, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ht-contact-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 32px rgba(27, 54, 93, 0.3);
}

.ht-contact-submit:hover .ht-cf-submit-icon {
	transform: translateX(4px);
}

.ht-contact-submit:focus-visible {
	outline: 3px solid var(--cf-gold);
	outline-offset: 3px;
}

.ht-cf-submit-icon {
	transition: transform 0.25s var(--cf-ease);
}

.ht-cf-spinner {
	display: none;
	width: 20px;
	height: 20px;
	border: 2.5px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: cfSpin 0.7s linear infinite;
}

.ht-contact-submit.is-sending {
	cursor: wait;
	opacity: 0.9;
	transform: none;
}

.ht-contact-submit.is-sending .ht-cf-submit-icon {
	display: none;
}

.ht-contact-submit.is-sending .ht-cf-spinner {
	display: inline-block;
}

.ht-cf-note {
	margin: 14px 0 0;
	color: #94a3b8;
	font-size: 13px;
	text-align: center;
}

.ht-cf-note i {
	margin-right: 4px;
	font-size: 11px;
}

.ht-cf-note a {
	color: var(--primary-light);
	font-weight: 500;
}

/* =========================================================
   ALERT (errors from the server)
========================================================= */

.ht-contact-alert {
	display: none;
	scroll-margin-top: 96px; /* clear of the fixed navbar when scrolled to */
	margin-bottom: 20px;
	padding: 13px 16px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.5;
}

.ht-contact-alert.show {
	display: block;
	animation: cfFadeIn 0.3s var(--cf-ease);
}

.ht-contact-alert.success {
	border: 1px solid #bbf7d0;
	background: #f0fdf4;
	color: #166534;
}

.ht-contact-alert.error {
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #991b1b;
}

/* =========================================================
   SUCCESS (replaces the form after sending)
========================================================= */

.ht-cf-success {
	padding: 28px 8px 14px;
	text-align: center;
	outline: none;
	animation: cfFadeIn 0.45s var(--cf-ease);
}

.ht-cf-success[hidden] {
	display: none;
}

.ht-cf-success-icon {
	width: 84px;
	height: 84px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: #ecfdf3;
	animation: cfPop 0.5s var(--cf-ease);
}

.ht-cf-success-icon svg {
	width: 84px;
	height: 84px;
	fill: none;
	stroke: #16a34a;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ht-cf-success-icon circle {
	stroke: #bbf7d0;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: cfDraw 0.6s 0.1s ease forwards;
}

.ht-cf-success-icon path {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: cfDraw 0.4s 0.5s ease forwards;
}

.ht-cf-success-title {
	margin: 0 0 8px;
	color: var(--primary-dark);
	font-size: 24px;
	font-weight: 700;
}

.ht-cf-success-text {
	max-width: 360px;
	margin: 0 auto 24px;
	color: #64748b;
	font-size: 15px;
	line-height: 1.6;
}

.ht-cf-success-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.ht-cf-success-wa,
.ht-cf-again {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 46px;
	padding: 0 20px;
	border-radius: 12px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease;
}

.ht-cf-success-wa {
	border: 0;
	background: #25d366;
	color: #ffffff;
}

.ht-cf-success-wa:hover {
	color: #ffffff;
	transform: translateY(-2px);
}

.ht-cf-again {
	border: 1.5px solid #dbe3ee;
	background: #ffffff;
	color: var(--primary-dark);
}

.ht-cf-again:hover {
	background: #f8fafc;
	transform: translateY(-2px);
}

@keyframes cfSpin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes cfShake {
	20%,
	60% {
		transform: translateX(-4px);
	}

	40%,
	80% {
		transform: translateX(4px);
	}
}

@keyframes cfFadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

@keyframes cfPop {
	from {
		opacity: 0;
		transform: scale(0.6);
	}
}

@keyframes cfDraw {
	to {
		stroke-dashoffset: 0;
	}
}

@media (prefers-reduced-motion: reduce) {

	.ht-contact-form-card *,
	.ht-contact-form-card *::before {
		animation: none !important;
		transition: none !important;
	}

	.ht-cf-success-icon circle,
	.ht-cf-success-icon path {
		stroke-dashoffset: 0;
	}
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

	.ht-contact-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.ht-contact-info {
		padding: 0;
	}

}

@media (max-width: 767px) {

	.ht-contact-header {
		padding: 40px 20px 25px;
	}

	.ht-contact-title {
		font-size: 40px;
	}

	.ht-contact-subtitle {
		font-size: 15px;
	}

	.ht-contact-container {
		padding: 15px 18px 55px;
	}

	.ht-contact-form-card {
		padding: 26px 18px;
		border-radius: 20px;
	}

	.ht-contact-form-card::before {
		left: 18px;
		right: 18px;
	}

	.ht-cf-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.ht-contact-info-item {
		gap: 17px;
	}

	.ht-contact-icon {
		flex-basis: 58px;
		width: 58px;
		height: 58px;
		font-size: 22px;
	}

	.ht-contact-info-content h3 {
		font-size: 18px;
	}

	.ht-contact-info-content p,
	.ht-contact-info-content a {
		font-size: 14px;
	}

}

@media (max-width: 480px) {

	.ht-contact-title {
		font-size: 34px;
	}

	.ht-contact-info-item {
		align-items: flex-start;
	}

	.ht-contact-icon {
		flex-basis: 50px;
		width: 50px;
		height: 50px;
		font-size: 19px;
	}

}

/* =========================================================
   2026-10 redesign: quick contact cards, office + map, cities, promises
========================================================= */
.ht-contact-header {
	max-width: 1100px;
}

.ht-cu-quick {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 28px;
	text-align: left;
}

.ht-cu-quick-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border: 1px solid #e3eaf3;
	border-radius: 16px;
	background: #fff;
	color: var(--primary-dark);
	text-decoration: none;
	transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.ht-cu-quick-card:hover {
	border-color: #c3d2e6;
	box-shadow: 0 10px 24px rgba(27, 54, 93, 0.08);
	color: var(--primary-dark);
	transform: translateY(-2px);
}

.ht-cu-quick-card b {
	display: block;
	font-size: 15px;
	font-weight: 600;
}

.ht-cu-quick-card small {
	display: block;
	color: #7a8aa3;
	font-size: 12.5px;
}

.ht-cu-quick-ico {
	display: flex;
	flex: 0 0 46px;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	font-size: 20px;
}

.ht-cu-quick-ico.is-wa { background: #e7f9ee; color: #1d9e75; }
.ht-cu-quick-ico.is-call { background: #eaf0f8; color: #1b365d; }
.ht-cu-quick-ico.is-mail { background: #fff4de; color: #854f0b; }

.ht-contact-grid {
	gap: 28px;
	align-items: start;
}

.ht-contact-info {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 0;
}

.ht-cu-card {
	padding: 20px 22px;
	border: 1px solid #e3eaf3;
	border-radius: 18px;
	background: #fff;
}

.ht-cu-card-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	color: var(--primary-dark);
	font-size: 17px;
	font-weight: 600;
}

.ht-cu-address {
	margin: 0 0 12px;
	color: #51627c;
	font-size: 14.5px;
	line-height: 1.6;
}

.ht-cu-map {
	display: block;
	width: 100%;
	height: 190px;
	margin-bottom: 10px;
	border: 0;
	border-radius: 12px;
	background: #e8edf4;
}

.ht-cu-link {
	color: #185fa5;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.ht-cu-cities {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ht-cu-city {
	padding: 5px 13px;
	border: 1px solid #dbe4ef;
	border-radius: 999px;
	background: #f8fafc;
	color: var(--primary-dark);
	font-size: 13px;
	font-weight: 500;
}

.ht-cu-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	text-align: center;
}

.ht-cu-stats b {
	display: block;
	color: var(--primary-dark);
	font-size: 20px;
	font-weight: 700;
}

.ht-cu-stats small {
	color: #7a8aa3;
	font-size: 12px;
}

.ht-cf-select {
	width: 100%;
	height: 52px;
	padding: 0 16px 0 46px;
	border: 1.5px solid #dbe3ee;
	border-radius: 14px;
	background: #f8fafc;
	color: var(--text-main);
	font-family: inherit;
	font-size: 15px;
	outline: none;
	cursor: pointer;
}

.ht-cf-select:focus {
	border-color: var(--primary-light);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(44, 82, 130, 0.1);
}

@media (max-width: 767px) {
	.ht-cu-quick {
		grid-template-columns: 1fr;
		gap: 10px;
		margin-top: 20px;
	}

	.ht-cu-quick-card {
		padding: 12px 14px;
	}

	.ht-cu-card {
		padding: 16px;
	}
}

/* Two quick cards (WhatsApp, email) */
.ht-cu-quick {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 767px) {
	.ht-cu-quick {
		grid-template-columns: 1fr;
	}
}
