.rst-contact-detail-card {
	min-height: 160px;
}

.rst-contact-details-grid {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.contact-page .rst-contact-section {
	background: linear-gradient(180deg, #ffffff 0%, #eef4fa 100%);
}

.rst-contact-grid {
	align-items: start;
}

.rst-contact-copy h1,
.rst-contact-form-card h2 {
	margin: 0 0 18px;
	color: var(--navy);
	font-size: clamp(34px, 4vw, 54px);
	line-height: 1.04;
	letter-spacing: -0.04em;
}

.rst-contact-form-card h2 {
	font-size: clamp(30px, 3vw, 42px);
}

.rst-contact-intro {
	max-width: 720px;
	margin-bottom: 32px;
}

.rst-contact-intro p {
	margin: 0 0 16px;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.8;
}


.rst-contact-detail-card p {
	white-space: pre-line;
}

.rst-contact-form-card {
	padding: 38px;
	position: sticky;

}

.rst-contact-form-wrap {
	margin-top: 24px;
}

.rst-contact-form-wrap form {
	display: grid;
	gap: 16px;
}

.rst-contact-form-wrap label {
	display: block;
	margin-bottom: 8px;
	color: var(--navy);
	font-weight: 700;
}

.rst-contact-form-wrap input,
.rst-contact-form-wrap select,
.rst-contact-form-wrap textarea {
	width: 100%;
	min-height: 52px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--text);
	font: inherit;
}

.rst-contact-form-wrap textarea {
	min-height: 150px;
	resize: vertical;
}

.rst-contact-form-wrap input:focus,
.rst-contact-form-wrap select:focus,
.rst-contact-form-wrap textarea:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 4px rgba(54, 85, 122, 0.10);
}

.rst-contact-form-wrap input[type="submit"],
.rst-contact-form-wrap button[type="submit"] {
	width: auto;
	min-height: 54px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #3e5d84, #27466d);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 14px 36px rgba(39, 70, 109, 0.32);
	cursor: pointer;
}

.rst-contact-form-wrap .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 13px;
}

.rst-contact-form-wrap .wpcf7-response-output {
	margin: 18px 0 0 !important;
	padding: 14px 16px !important;
	border-radius: var(--radius-sm);
}

.contact-grid{
    display: grid;
    gap: 34px;
    align-items: start;
}


.page-template-page-contact .rst-contact-hero .hero-copy-block h1 {
	max-width: 820px !important;
}

.page-template-page-contact .rst-contact-hero .lead {
	max-width: 760px !important;
}

@media (min-width: 991px) {
	.contact-grid{
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }
}

@media (max-width: 1100px) {
	.rst-contact-form-card {
		position: static;
	}
}

@media (max-width: 900px) {
	.rst-contact-details-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.rst-contact-form-card {
		padding: 24px;
	}

	.rst-contact-copy h1,
	.rst-contact-form-card h2 {
		font-size: 32px;
	}
}

