/**
 * Money Minds — premium Contact page
 */

.mm-contact-page {
	background:
		radial-gradient(ellipse 70% 40% at 100% 0%, rgba(201, 154, 82, 0.08), transparent 55%),
		linear-gradient(180deg, #fbf8f1 0%, #f7f3ea 48%, #fbf8f1 100%);
}

.mm-contact-hero .page-title {
	max-width: 720px;
}

.mm-contact-main {
	padding: 48px 0 24px;
}

.mm-contact-layout {
	align-items: start;
	display: grid;
	gap: 40px;
	grid-template-columns: minmax(240px, 0.88fr) minmax(0, 1.22fr);
}

.mm-contact-aside {
	display: grid;
	gap: 28px;
	padding-top: 8px;
}

.mm-contact-aside-block h2 {
	color: var(--mm-navy);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.35rem, 2vw, 1.7rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.2;
	margin: 10px 0 12px;
}

.mm-contact-aside-block > p {
	color: var(--mm-muted);
	font-size: 0.95rem;
	line-height: 1.65;
	margin: 0;
}

.mm-contact-email {
	border-bottom: 2px solid var(--mm-gold);
	color: var(--mm-navy);
	display: inline-block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.15rem;
	font-weight: 600;
	margin-top: 16px;
	padding-bottom: 2px;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.mm-contact-email:hover {
	border-color: var(--mm-navy);
	color: #164a70;
}

.mm-contact-list {
	border-top: 2px solid var(--mm-gold);
	display: grid;
	gap: 12px;
	list-style: none;
	margin: 14px 0 0;
	padding: 16px 0 0;
}

.mm-contact-list li {
	color: var(--mm-ink, #243746);
	font-size: 0.94rem;
	line-height: 1.5;
	padding-left: 18px;
	position: relative;
}

.mm-contact-list li::before {
	background: var(--mm-gold);
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	top: 0.7em;
	width: 10px;
}

.mm-contact-aside-note {
	border-left: 2px solid rgba(11, 41, 70, 0.12);
	padding-left: 16px;
}

.mm-contact-panel {
	animation: mm-contact-rise 0.55s ease both;
	background: #fffdf8;
	border: 1px solid rgba(11, 41, 70, 0.08);
	box-shadow: 0 18px 48px rgba(11, 41, 70, 0.06);
	padding: 28px 28px 24px;
}

@keyframes mm-contact-rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mm-contact-panel-head h2 {
	color: var(--mm-navy);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.5rem, 2.4vw, 1.95rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin: 10px 0 12px;
}

.mm-contact-panel-head > p {
	color: var(--mm-muted);
	font-size: 0.95rem;
	line-height: 1.65;
	margin: 0 0 22px;
}

.mm-contact-form-wrap .gform_wrapper,
.mm-contact-form-wrap .gform_wrapper.gravity-theme {
	--gf-color-primary: #0b2946;
	--gf-color-primary-rgb: 11, 41, 70;
	--gf-color-primary-contrast: #fff;
	--gf-color-primary-darker: #071c33;
	--gf-color-primary-lighter: #164a70;
	--gf-color-in-ctrl-primary: #0b2946;
	--gf-color-in-ctrl-primary-rgb: 11, 41, 70;
	--gf-color-in-ctrl-primary-darker: #071c33;
	--gf-color-in-ctrl-primary-lighter: #164a70;
	--gf-ctrl-border-color: rgba(11, 41, 70, 0.18);
	--gf-ctrl-label-color-primary: #0b2946;
	--gf-radius: 0;
	margin: 0;
}

.mm-contact-form-wrap .gform_wrapper.gravity-theme .gform_fields,
.mm-contact-form-wrap .gform_wrapper .gform_fields {
	grid-row-gap: 16px !important;
	row-gap: 16px !important;
}

.mm-contact-form-wrap .gform_wrapper.gravity-theme .gfield_label,
.mm-contact-form-wrap .gform_wrapper .gfield_label {
	color: var(--mm-navy) !important;
	font-family: Inter, Arial, sans-serif !important;
	font-size: 12px !important;
	font-weight: 750 !important;
	letter-spacing: 0.04em;
	margin-bottom: 6px !important;
}

.mm-contact-form-wrap .gform_wrapper.gravity-theme input[type="text"],
.mm-contact-form-wrap .gform_wrapper.gravity-theme input[type="email"],
.mm-contact-form-wrap .gform_wrapper.gravity-theme input[type="tel"],
.mm-contact-form-wrap .gform_wrapper.gravity-theme select,
.mm-contact-form-wrap .gform_wrapper.gravity-theme textarea,
.mm-contact-form-wrap .gform_wrapper input[type="text"],
.mm-contact-form-wrap .gform_wrapper input[type="email"],
.mm-contact-form-wrap .gform_wrapper input[type="tel"],
.mm-contact-form-wrap .gform_wrapper select,
.mm-contact-form-wrap .gform_wrapper textarea {
	background: #fff !important;
	border: 1px solid rgba(11, 41, 70, 0.14) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--mm-navy) !important;
	font-family: Inter, Arial, sans-serif !important;
	font-size: 15px !important;
	min-height: 48px;
	padding: 12px 14px !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	width: 100% !important;
}

.mm-contact-form-wrap .gform_wrapper.gravity-theme textarea,
.mm-contact-form-wrap .gform_wrapper textarea {
	min-height: 140px;
	resize: vertical;
}

.mm-contact-form-wrap .gform_wrapper.gravity-theme input:focus,
.mm-contact-form-wrap .gform_wrapper.gravity-theme select:focus,
.mm-contact-form-wrap .gform_wrapper.gravity-theme textarea:focus,
.mm-contact-form-wrap .gform_wrapper input:focus,
.mm-contact-form-wrap .gform_wrapper select:focus,
.mm-contact-form-wrap .gform_wrapper textarea:focus {
	border-color: var(--mm-gold) !important;
	box-shadow: 0 0 0 3px rgba(201, 154, 82, 0.18) !important;
	outline: none !important;
}

.mm-contact-form-wrap .gform_wrapper.gravity-theme .gform_button,
.mm-contact-form-wrap .gform_wrapper .gform_button,
.mm-contact-form-wrap .gform_wrapper input[type="submit"] {
	background: var(--mm-navy) !important;
	border: 1px solid var(--mm-navy) !important;
	border-radius: 999px !important;
	color: #fff !important;
	cursor: pointer;
	font-family: Inter, Arial, sans-serif !important;
	font-size: 13px !important;
	font-weight: 750 !important;
	letter-spacing: 0.02em;
	min-height: 48px !important;
	padding: 0 26px !important;
	transition: background 0.2s ease, transform 0.2s ease;
	width: auto !important;
}

.mm-contact-form-wrap .gform_wrapper.gravity-theme .gform_button:hover,
.mm-contact-form-wrap .gform_wrapper .gform_button:hover,
.mm-contact-form-wrap .gform_wrapper input[type="submit"]:hover {
	background: #164a70 !important;
	transform: translateY(-1px);
}

.mm-contact-form-wrap .gform_wrapper .gfield_checkbox label,
.mm-contact-form-wrap .gform_wrapper.gravity-theme .gfield_checkbox label {
	color: var(--mm-muted) !important;
	font-size: 0.88rem !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	line-height: 1.5;
}

.mm-contact-form-wrap .gform_confirmation_message,
.mm-contact-form-wrap .mm-contact-success {
	background: rgba(11, 41, 70, 0.04);
	border-left: 3px solid var(--mm-gold);
	color: var(--mm-navy);
	padding: 18px 16px;
}

.mm-contact-form-wrap .gform_confirmation_message strong,
.mm-contact-form-wrap .mm-contact-success strong {
	display: block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.25rem;
	margin-bottom: 6px;
}

.mm-contact-fallback {
	align-items: flex-start;
	display: grid;
	gap: 16px;
}

.mm-contact-fallback p {
	color: var(--mm-muted);
	margin: 0;
}

.mm-contact-privacy {
	border-top: 1px solid rgba(11, 41, 70, 0.08);
	color: #6b7b87;
	font-size: 12px;
	line-height: 1.55;
	margin: 18px 0 0;
	padding-top: 14px;
}

.mm-contact-privacy a {
	color: var(--mm-navy);
	font-weight: 650;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mm-contact-faq {
	border-top: 1px solid rgba(11, 41, 70, 0.06);
	padding: 48px 0 72px;
}

.mm-contact-faq-grid {
	display: grid;
	gap: 0;
	margin-top: 8px;
}

.mm-contact-faq-item {
	border-top: 1px solid rgba(11, 41, 70, 0.1);
	padding: 0;
}

.mm-contact-faq-item:last-child {
	border-bottom: 1px solid rgba(11, 41, 70, 0.1);
}

.mm-contact-faq-item summary {
	color: var(--mm-navy);
	cursor: pointer;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.35;
	list-style: none;
	padding: 18px 28px 18px 0;
	position: relative;
}

.mm-contact-faq-item summary::-webkit-details-marker {
	display: none;
}

.mm-contact-faq-item summary::after {
	color: var(--mm-gold);
	content: "+";
	font-family: Inter, Arial, sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	position: absolute;
	right: 0;
	top: 18px;
}

.mm-contact-faq-item[open] summary::after {
	content: "–";
}

.mm-contact-faq-item p {
	color: var(--mm-muted);
	font-size: 0.95rem;
	line-height: 1.65;
	margin: 0 0 18px;
	max-width: 640px;
}

@media (min-width: 1001px) {
	.mm-contact-main {
		padding-top: 80px;
		padding-bottom: 40px;
	}

	.mm-contact-faq {
		padding-top: 64px;
		padding-bottom: 96px;
	}

	.mm-contact-panel {
		padding: 36px 40px 32px;
	}

	.mm-contact-page .mm-container {
		width: calc(100% - 128px);
	}
}

@media (max-width: 1000px) {
	.mm-contact-layout {
		gap: 32px;
		grid-template-columns: 1fr;
	}

	.mm-contact-aside {
		gap: 22px;
		order: 2;
	}

	.mm-contact-panel {
		order: 1;
	}
}

@media (max-width: 720px) {
	.mm-contact-main,
	.mm-contact-faq {
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.mm-contact-panel {
		padding: 22px 18px 20px;
	}

	.mm-contact-form-wrap .gform_wrapper.gravity-theme .gform_button,
	.mm-contact-form-wrap .gform_wrapper .gform_button,
	.mm-contact-form-wrap .gform_wrapper input[type="submit"] {
		width: 100% !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mm-contact-panel {
		animation: none;
	}

	.mm-contact-form-wrap .gform_wrapper.gravity-theme .gform_button:hover,
	.mm-contact-form-wrap .gform_wrapper .gform_button:hover {
		transform: none;
	}
}
