/*--------------------------------------------------------------
# Contact page — matches site bg-light + white header + black footer
--------------------------------------------------------------*/

.speedup-contact-page,
.speedup-contact-page.has-bg-light-background-color {
	background-color: var(--wp--preset--color--bg-light, #fcf9f3) !important;
}

/* Parallax footer gap shows same bg as main (not body default) */
body:has(.speedup-contact-page) .wp-site-blocks {
	background-color: var(--wp--preset--color--bg-light, #fcf9f3);
}

.speedup-contact-page__inner {
	background: transparent;
}

.speedup-contact {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	width: 100%;
	max-width: 700px;
	margin: 0 auto;
}

.speedup-contact *,
.speedup-contact *::before,
.speedup-contact *::after {
	box-sizing: border-box;
}

.speedup-contact .screen {
	position: relative;
	background: var(--wp--preset--color--white, #f0ece4);
	border-radius: 16px;
	border: 1px solid var(--wp--preset--color--border, #ebe4d8);
	box-shadow: 0 8px 28px rgba(71, 67, 59, 0.08);
	overflow: hidden;
}

.speedup-contact .screen::after {
	display: none;
}

.speedup-contact .screen-header {
	display: flex;
	align-items: center;
	padding: 10px 20px;
	background: var(--wp--preset--color--bg-light, #fcf9f3);
	border-bottom: 1px solid var(--wp--preset--color--border, #ebe4d8);
}

.speedup-contact .screen-header-left {
	margin-inline-end: auto;
}

.speedup-contact .screen-header-button {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-inline-end: 3px;
	border-radius: 8px;
	background: #ddd;
}

.speedup-contact .screen-header-button.close {
	background: var(--wp--preset--color--primary, #dd2c00);
}

.speedup-contact .screen-header-button.maximize {
	background: #e8e925;
}

.speedup-contact .screen-header-button.minimize {
	background: #74c54f;
}

.speedup-contact .screen-header-right {
	display: flex;
}

.speedup-contact .screen-header-ellipsis {
	width: 3px;
	height: 3px;
	margin-inline-start: 2px;
	border-radius: 8px;
	background: #bbb;
}

.speedup-contact .screen-body {
	display: flex;
	background: var(--wp--preset--color--white, #f0ece4);
}

.speedup-contact .screen-body-item {
	flex: 1;
	padding: 50px;
}

.speedup-contact .screen-body-item.left {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.speedup-contact .app-title {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: baseline;
	gap: 0.35em;
	position: relative;
	color: var(--wp--preset--color--primary, #dd2c00);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	white-space: nowrap;
}

.speedup-contact .app-title::after {
	content: "";
	display: block;
	position: absolute;
	inset-inline-start: 0;
	bottom: -10px;
	width: 25px;
	height: 4px;
	background: var(--wp--preset--color--primary, #dd2c00);
}

.speedup-contact .app-contact {
	margin-top: 0;
	padding-top: 32px;
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--text-gray, #47433b);
	line-height: 1.6;
	text-align: left;
	align-self: flex-start;
}

.speedup-contact .app-form-group {
	margin-bottom: 15px;
}

.speedup-contact .app-form-group.message {
	margin-top: 40px;
}

.speedup-contact .app-form-group.buttons {
	margin-bottom: 0;
	display: flex;
	justify-content: flex-start;
	gap: 16px;
	flex-wrap: wrap;
}

.speedup-contact .app-form-control {
	width: 100%;
	padding: 10px 0;
	background: none;
	border: none;
	border-bottom: 1px solid var(--wp--preset--color--border, #ebe4d8);
	color: var(--wp--preset--color--text-dark, #47433b);
	font-size: 14px;
	font-weight: 600;
	outline: none;
	transition: border-color 0.2s;
	font-family: inherit;
}

.speedup-contact .app-form-control::placeholder {
	color: #9a958c;
}

.speedup-contact .app-form-control:focus {
	border-bottom-color: var(--wp--preset--color--primary, #dd2c00);
}

.speedup-contact .app-form-control--phone,
.speedup-contact input[type="tel"] {
	direction: ltr;
	text-align: right;
	unicode-bidi: plaintext;
}

.speedup-contact textarea.app-form-control {
	resize: vertical;
	min-height: 48px;
}

.speedup-contact .app-form-button {
	background: none;
	border: none;
	color: var(--wp--preset--color--primary, #dd2c00);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	outline: none;
	font-family: inherit;
	padding: 0;
}

.speedup-contact .app-form-button:hover {
	color: #a82000;
}

.speedup-contact .app-form-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.speedup-contact .app-form-status {
	margin-top: 16px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	min-height: 1.5em;
}

.speedup-contact .app-form-status.is-ok {
	color: #2f9e44;
}

.speedup-contact .app-form-status.is-err {
	color: var(--wp--preset--color--primary, #dd2c00);
}

.speedup-contact .speedup-contact-honeypot {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
	overflow: hidden;
}

@media screen and (max-width: 600px) {
	.speedup-contact-page__inner {
		padding-top: 40px !important;
		padding-bottom: 48px !important;
	}

	.speedup-contact .screen-body {
		flex-direction: column;
		padding: 40px 24px;
	}

	.speedup-contact .screen-body-item {
		padding: 0;
	}

	.speedup-contact .screen-body-item.left {
		margin-bottom: 30px;
		order: -1;
	}

	.speedup-contact .app-title::after {
		display: none;
	}
}
