/* TOPOSEL Contact Us page — scoped to .toposel-page--contact. */

.toposel-page--contact .toposel-contact {
	padding: 100px 0;
	background: #FFFFFF;
}
.toposel-page--contact .toposel-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
	gap: 36px;
	max-width: 1080px;
	align-items: stretch;
}
.toposel-page--contact .toposel-contact__info {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}
.toposel-page--contact .toposel-contact__info .toposel-label {
	font-size: 14px;
}
.toposel-page--contact .toposel-section-heading {
	font-size: 42px;
	line-height: 44px;
}
.toposel-page--contact .toposel-contact__info .toposel-section-text {
	font-size: 15px;
	line-height: 22px;
}
.toposel-page--contact .toposel-contact__cards {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 6px;
}
.toposel-page--contact .toposel-contact-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px 26px;
	border-radius: 2px;
	background: var(--toposel-soft-bg);
}
.toposel-page--contact .toposel-contact-card:nth-child(2).is-visible {
	animation-delay: 0.15s;
}
.toposel-page--contact .toposel-contact-card__icon {
	flex: 0 0 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--toposel-primary);
	color: #FFFFFF;
}
/* Mail card: the supplied icon is a filled square, so no round backdrop. */
.toposel-page--contact .toposel-contact-card__icon--mail {
	background: none;
	border-radius: 0;
}
.toposel-page--contact .toposel-contact-card__icon--mail img {
	display: block;
	width: 38px;
	height: auto;
}
.toposel-page--contact .toposel-contact-card__title {
	margin: 0 0 6px;
	color: var(--toposel-heading);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}
.toposel-page--contact .toposel-contact-card__text {
	margin: 0;
	color: var(--toposel-copy);
	font-size: 14px;
	line-height: 1.45;
}
.toposel-page--contact .toposel-contact-card__text a {
	color: var(--toposel-copy);
	text-decoration: none;
	transition: color 0.2s ease;
}
.toposel-page--contact .toposel-contact-card__text a:hover,
.toposel-page--contact .toposel-contact-card__text a:focus-visible {
	color: var(--toposel-primary);
}

/* Form card */
.toposel-page--contact .toposel-contact__form-card {
	min-width: 0;
	padding: 26px 26px 30px;
	background: #FFFFFF;
	border-radius: 4px;
	box-shadow: 0 0 24px rgba(17, 24, 39, 0.08);
}
.toposel-page--contact .toposel-contact__form-title {
	margin: 0 0 14px;
	color: var(--toposel-heading);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}
.toposel-page--contact .toposel-contact__form-text {
	margin: 0 0 22px;
	color: var(--toposel-copy);
	font-size: 15px;
	line-height: 1.5;
}

/* Contact Form 7 fields (the form's own validation and messages are kept). */
.toposel-page--contact .toposel-contact__form .wpcf7 form > p,
.toposel-page--contact .toposel-contact__form .additional-fields > p {
	margin: 0 0 14px;
}
.toposel-page--contact .toposel-contact__form .wpcf7-form-control-wrap {
	display: block;
	margin-bottom: 14px;
}
.toposel-page--contact .toposel-contact__form br {
	display: none;
}
.toposel-page--contact .toposel-contact__form input[type="text"],
.toposel-page--contact .toposel-contact__form input[type="email"],
.toposel-page--contact .toposel-contact__form input[type="tel"],
.toposel-page--contact .toposel-contact__form input[type="url"],
.toposel-page--contact .toposel-contact__form input[type="number"],
.toposel-page--contact .toposel-contact__form select,
.toposel-page--contact .toposel-contact__form textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 9px 12px;
	border: 1px solid #C9CDD4;
	border-radius: 4px;
	background-color: #FFFFFF;
	color: var(--toposel-heading);
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.toposel-page--contact .toposel-contact__form select {
	height: 42px;
	padding-right: 36px;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23090B0E' stroke-width='1.8'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px 8px;
	cursor: pointer;
}
.toposel-page--contact .toposel-contact__form textarea {
	min-height: 96px;
	resize: vertical;
}
.toposel-page--contact .toposel-contact__form input:focus,
.toposel-page--contact .toposel-contact__form select:focus,
.toposel-page--contact .toposel-contact__form textarea:focus {
	border-color: var(--toposel-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(78, 47, 218, 0.15);
}
.toposel-page--contact .toposel-contact__form input[type="submit"],
.toposel-page--contact .toposel-contact__form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 4px 0 0;
	padding: 12px 28px;
	border: 0;
	border-radius: 50px;
	background: var(--toposel-primary);
	color: #FFFFFF;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 20px;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}
.toposel-page--contact .toposel-contact__form input[type="submit"]:hover,
.toposel-page--contact .toposel-contact__form input[type="submit"]:focus-visible {
	background: #3312a8;
}
.toposel-page--contact .toposel-contact__form input[type="submit"]:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
.toposel-page--contact .toposel-contact__form .wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 13px;
}
.toposel-page--contact .toposel-contact__form .wpcf7-response-output {
	margin: 14px 0 0;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 14px;
}
.toposel-page--contact .toposel-contact__form .wpcf7-spinner {
	vertical-align: middle;
}
.toposel-page--contact .toposel-contact__form-missing a {
	color: var(--toposel-primary);
	font-weight: 600;
}

@media (max-width: 1024px) {
	.toposel-page--contact .toposel-contact {
		padding: 80px 0;
	}
	/* Reference: on tablet and mobile the form card comes after the details. */
	.toposel-page--contact .toposel-contact__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
		max-width: 720px;
	}
	.toposel-page--contact .toposel-section-heading {
		font-size: 36px;
		line-height: 1.15;
	}
}

@media (max-width: 767px) {
	.toposel-page--contact .toposel-contact {
		padding: 60px 0;
	}
	.toposel-page--contact .toposel-section-heading {
		font-size: 30px;
		line-height: 1.23;
	}
	/* Reference: label, heading and text centred; each contact card is centred with its icon on top. */
	.toposel-page--contact .toposel-contact__info {
		align-items: center;
		text-align: center;
	}
	.toposel-page--contact .toposel-contact__info .toposel-label {
		font-size: 16px;
	}
	.toposel-page--contact .toposel-contact__info .toposel-section-heading {
		max-width: 290px; /* breaks after "Us" like the reference */
	}
	.toposel-page--contact .toposel-contact__info .toposel-section-text {
		font-size: 14.5px;
		line-height: 20px;
	}
	.toposel-page--contact .toposel-contact__cards {
		align-self: stretch;
		gap: 22px;
	}
	.toposel-page--contact .toposel-contact-card {
		flex-direction: column;
		align-items: center;
		gap: 10px;
		padding: 16px 14px;
		text-align: center;
	}
	.toposel-page--contact .toposel-contact-card__icon {
		flex-basis: auto;
		width: 46px;
		height: 46px;
	}
	.toposel-page--contact .toposel-contact-card__icon--mail img {
		width: 40px;
	}
	.toposel-page--contact .toposel-contact-card__title {
		margin-bottom: 4px;
		font-size: 18px;
	}
	.toposel-page--contact .toposel-contact-card__text {
		font-size: 13px;
	}
	.toposel-page--contact .toposel-contact__form-card {
		padding: 22px 18px 26px;
	}
}

/* ---------- Form animations (fields appear / disappear / change) ----------
   Classes are added by toposel-pages.js only while an animation runs; without JavaScript or with
   reduced motion nothing here applies and the form behaves exactly as before. */
@keyframes toposelFormIn {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes toposelFormRefresh {
	from {
		opacity: 0.55;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes toposelFormOut {
	from {
		opacity: 1;
		transform: none;
	}
	to {
		opacity: 0;
		transform: translateY(-8px);
	}
}

.toposel-page--contact .toposel-form-enter > * {
	animation: toposelFormIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
	animation-delay: calc(var(--toposel-fi, 0) * 70ms);
}

.toposel-page--contact .toposel-form-refresh > * {
	animation: toposelFormRefresh 0.35s ease both;
	animation-delay: calc(var(--toposel-fi, 0) * 35ms);
}

.toposel-page--contact .toposel-form-leave {
	animation: toposelFormOut 0.25s ease both;
}

/* Validation messages and the result message slide in instead of popping. */
.toposel-page--contact .wpcf7-not-valid-tip,
.toposel-page--contact .wpcf7 form.invalid .wpcf7-response-output,
.toposel-page--contact .wpcf7 form.sent .wpcf7-response-output,
.toposel-page--contact .wpcf7 form.failed .wpcf7-response-output {
	animation: toposelFormIn 0.3s ease both;
}

@media (prefers-reduced-motion: reduce) {
	.toposel-page--contact .toposel-form-enter > *,
	.toposel-page--contact .toposel-form-refresh > *,
	.toposel-page--contact .toposel-form-leave,
	.toposel-page--contact .wpcf7-not-valid-tip,
	.toposel-page--contact .wpcf7 form .wpcf7-response-output {
		animation: none;
	}
}
