/* Contact / estimate page — standard header/footer; form-only content area */
.wr-contact-page .entry-content > *:first-child {
	margin-top: 0;
}

.wr-contact-page .entry-content > *:last-child {
	margin-bottom: 0;
}

.wr-contact-page .alignwide,
.wr-contact-page .alignfull {
	max-width: none;
	width: 100%;
}

/* Get Project Estimate form — matches Contact Us mockup */
.section.project-estimate {
	position: relative;
	padding-top: clamp(32px, 5vw, 56px);
	padding-bottom: clamp(48px, 8vw, 96px);
	background-color: #f3f2f8;
	--wr-estimate-sticky-top: clamp(88px, 10vh, 120px);
}

.section.project-estimate::before,
.section.project-estimate::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	pointer-events: none;
	z-index: 0;
}

.section.project-estimate::before {
	width: min(560px, 90vw);
	height: min(560px, 90vw);
	top: -140px;
	left: -100px;
	background: radial-gradient(circle, #dcc8ff 0%, transparent 68%);
}

.section.project-estimate::after {
	width: min(520px, 85vw);
	height: min(520px, 85vw);
	right: -80px;
	top: 28%;
	background: radial-gradient(circle, #ffcae8 0%, transparent 68%);
}

.section.project-estimate .container {
	position: relative;
	z-index: 1;
	max-width: 1240px;
}

.project-estimate__header {
	text-align: center;
	max-width: 760px;
	margin: 0 auto clamp(28px, 4vw, 48px);
}

.project-estimate__heading.brand,
.project-estimate__heading {
	display: flex;
	flex-flow: column;
	align-items: center;
	margin: 0 auto;
}

.project-estimate__heading .section-lable {
	margin: 0 auto 16px;
}

.project-estimate__title {
	margin: 0 0 12px;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: #0b0d1d;
}

.project-estimate__subtitle {
	margin: 0 auto;
	max-width: 580px;
	font-size: clamp(14px, 2vw, 16px);
	line-height: 1.55;
	color: #0b0d1d;
	opacity: 0.62;
}

.project-estimate-form-wrap {
	margin: 0;
}

.project-estimate__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
	gap: clamp(20px, 3vw, 28px);
	align-items: start;
}

.project-estimate__main {
	min-width: 0;
}

.project-estimate-form {
	margin: 0;
}

.project-estimate-field {
	margin-bottom: clamp(22px, 3vw, 32px);
}

.project-estimate-field.wr-field-error .project-estimate-option-radios,
.project-estimate-field.wr-field-error .project-estimate-checkbox-grid {
	outline: 2px solid #e85d4c;
	outline-offset: 4px;
	border-radius: 8px;
}

.project-estimate-field-with-label.wr-field-error .input-field {
	border-color: #e85d4c;
}

.project-estimate-field:last-child {
	margin-bottom: 0;
}

.project-estimate-field__label,
.project-estimate-field .input-label {
	display: block;
	margin-bottom: 12px;
	color: #0b0d1d;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
}

/* Radio groups — visible radio + label (services, website type, timeline) */
.project-estimate-option-radios {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.project-estimate-radio-grid--services {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.project-estimate-radio-grid--timeline {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.project-estimate-option-radio.radio-button-field {
	margin: 0;
	padding: 14px 16px 14px 12px;
	border: 1px solid #5e43fe40;
	border-radius: 16px;
	background-color: #fff;
	backdrop-filter: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.project-estimate-radio-grid--services .project-estimate-option-radio,
.project-estimate-radio-grid--timeline .project-estimate-option-radio {
	width: 100%;
	justify-content: flex-start;
}

.project-estimate-radio-grid--website-type {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.project-estimate-radio-grid--website-type .project-estimate-option-radio {
	width: 100%;
	justify-content: flex-start;
}

.project-estimate-option-radio:has(.w-radio-input:checked) {
	border-color: #5e43fe;
	background-color: #5e43fe1a;
	box-shadow: 0 0 0 1px #5e43fe33;
}

.project-estimate-option-radio:has(.w-radio-input:checked) .radio-button-label {
	color: #5e43fe;
}

.project-estimate-option-radio .radio-button {
	accent-color: #5e43fe;
	flex-shrink: 0;
	margin: 0;
}

.project-estimate-option-radio .radio-button-label {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	white-space: normal;
}

/* Checkbox groups — CMS & additional features */
.project-estimate-field__label-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 12px;
	margin-bottom: 12px;
}

.project-estimate-field__label-row .project-estimate-field__label {
	margin-bottom: 0;
}

.project-estimate-field__hint {
	font-size: 13px;
	font-weight: 500;
	color: #0b0d1d;
	opacity: 0.55;
}

.project-estimate-checkbox-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.project-estimate-checkbox-grid--cms {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.project-estimate-checkbox-grid--cms .estimate-check-option {
	width: 100%;
}

.project-estimate-checkbox-grid--features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.project-estimate-checkbox-grid--features .estimate-check-option {
	width: 100%;
}

.estimate-check-option {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid #5e43fe33;
	border-radius: 16px;
	background-color: #fff;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.estimate-check-option:hover {
	border-color: #5e43fe80;
}

.estimate-check-option:has(.estimate-check-option__input:checked) {
	border-color: #5e43fe;
	background-color: #5e43fe;
}

.estimate-check-option:has(.estimate-check-option__input:checked) .estimate-check-option__label {
	color: #fff;
}

.estimate-check-option__input {
	width: 18px;
	height: 18px;
	margin: 0;
	flex-shrink: 0;
	accent-color: #5e43fe;
	cursor: pointer;
}

.estimate-check-option:has(.estimate-check-option__input:checked) .estimate-check-option__input {
	accent-color: #fff;
}

.estimate-check-option__label {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	color: #0b0d1d;
}

/* Website type — Other text field */
.project-estimate-other-wrap {
	margin-top: 14px;
}

.project-estimate-other-wrap[hidden]:not(.is-visible) {
	display: none !important;
}

.project-estimate-other-wrap.is-visible {
	display: block;
}

.project-estimate-other-wrap .input-field {
	width: 100%;
	background: #fff;
	border-color: #5e43fe33;
	border-radius: 16px;
}

/* Sliders */
.project-estimate-slider-head {
	max-width: none;
	width: 100%;
}

.project-estimate-slider-value {
	font-size: 15px;
	font-weight: 500;
	color: #0b0d1d;
	opacity: 0.72;
	text-align: right;
	white-space: nowrap;
}

.project-estimate-field--slider .home-contact-range-track {
	margin-top: 4px;
}

.project-estimate-budget-labels {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	font-size: 14px;
	font-weight: 500;
	color: #0b0d1d;
	opacity: 0.55;
}

/* Project specification textarea */
.project-estimate-spec-wrap.field-with-icon {
	position: relative;
}

.project-estimate-spec-icon.field-icon {
	top: 16px;
	left: 16px;
}

.project-estimate-textarea.input-field.textarea {
	min-height: 152px;
	padding: 16px 16px 16px 54px;
	border: 1px solid #5e43fe33;
	border-radius: 20px;
	background-color: #fff;
	resize: vertical;
	width: 100%;
}

.project-estimate-textarea.input-field.textarea:focus {
	border-color: #5e43fe80;
}

/* Sidebar contact card — JS sticky (Lenis breaks CSS position:sticky) */
.project-estimate__sidebar.is-wr-sticky-active {
	position: relative;
	align-self: start;
	z-index: 2;
}

.project-estimate-sidebar-card.is-wr-sticky-fixed,
.project-estimate-sidebar-card.is-wr-sticky-bottom {
	z-index: 12;
}

.project-estimate__sidebar {
	align-self: start;
}

.project-estimate-sidebar-card {
	padding: clamp(22px, 3vw, 28px);
	border: 1px solid #ffffffe6;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 16px 56px #5e43fe14, 0 2px 8px #0000000a;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.project-estimate-sidebar-card .input-field {
	background-color: #fff;
	border-color: #5e43fe33;
	border-radius: 16px;
}

.project-estimate-field-with-label {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.project-estimate-submit-wrap {
	width: 100%;
	margin-top: 4px;
}

.project-estimate-submit-wrap.form-btn-wrap {
	width: 100%;
}

.project-estimate-submit-wrap .button,
.project-estimate-submit-btn.button {
	width: 100%;
	justify-content: center;
}

/* AJAX states */
.project-estimate-form-wrap.wr-contact--sending .project-estimate-form {
	opacity: 0.65;
	pointer-events: none;
}

.project-estimate-form-wrap.wr-contact--success .project-estimate-form,
.project-estimate-form-wrap.wr-contact--error .project-estimate-form {
	display: none;
}

.project-estimate-form-wrap .w-form-done,
.project-estimate-form-wrap .w-form-fail {
	display: none;
	margin-top: 24px;
	padding: 16px 20px;
	border-radius: 16px;
	text-align: center;
	font-size: 15px;
}

.project-estimate-form-wrap.wr-contact--success .w-form-done,
.project-estimate-form-wrap.wr-contact--error .w-form-fail {
	display: block;
}

.project-estimate-form-wrap.wr-contact--success .w-form-done {
	background: #5e43fe14;
	color: #5e43fe;
}

.project-estimate-form-wrap.wr-contact--error .w-form-fail {
	background: #ff4d4f14;
	color: #c41d1f;
}

/* Tablet */
@media screen and (max-width: 991px) {
	.project-estimate__grid {
		grid-template-columns: 1fr;
	}

	.project-estimate__sidebar {
		position: static;
		min-height: 0 !important;
	}

	.project-estimate-sidebar-card.is-wr-sticky-fixed,
	.project-estimate-sidebar-card.is-wr-sticky-bottom {
		position: static !important;
		top: auto !important;
		left: auto !important;
		width: auto !important;
	}

	.project-estimate-sidebar-card {
		max-width: 480px;
	}

}

/* Mobile */
@media screen and (max-width: 767px) {
	.section.project-estimate {
		padding-top: 24px;
		padding-bottom: 56px;
	}

	.project-estimate-radio-grid--services,
	.project-estimate-radio-grid--timeline {
		grid-template-columns: 1fr;
	}

	.project-estimate-radio-grid--website-type {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.project-estimate-checkbox-grid--cms {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.project-estimate-checkbox-grid--features {
		grid-template-columns: 1fr;
	}

	.project-estimate-sidebar-card {
		max-width: none;
		border-radius: 20px;
	}

	.project-estimate-textarea.input-field.textarea {
		min-height: 128px;
	}
}

@media screen and (max-width: 479px) {
	.project-estimate__title {
		font-size: 26px;
	}

	.project-estimate-slider-head {
		flex-wrap: wrap;
		gap: 4px;
	}

	.project-estimate-slider-value {
		width: 100%;
		text-align: left;
	}
}
