/* Proposal Estimator Pro — Frontend Wizard
   All selectors are prefixed wwds_delta_ per architecture spec. */

:root {
	--pe-primary: #E24C4A;
	--pe-primary-dark: #E24C4A;
	--pe-primary-soft: #fdf4ff;
	--pe-text: #1f2430;
	--pe-muted: #6b7280;
	--pe-border: #e5e7eb;
}

/* ---------- Archive (services grid) ---------- */

.wwds_delta_archive {
	color: var(--pe-text);
	padding: 40px 20px;
}

.wwds_delta_archive_intro {
	margin-bottom: 32px;
}

.wwds_delta_eyebrow {
	display: inline-block;
	color: var(--pe-primary);
	font-weight: 700;
	letter-spacing: 0.08em;
	font-size: 13px;
	margin-bottom: 8px;
}

.wwds_delta_archive_intro h2 {
	font-size: 45px;
	margin: 4px 0 10px;
	font-weight: 500;
}

#Calpart {
	scroll-margin-top: 50px;
}

.wwds_delta_archive_intro p {
	color: var(--pe-muted);
	margin: 0;
	max-width: 640px;
}

.wwds_delta_archive_grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 24px;
}

.wwds_delta_archive_card {
	background: #fff;
	border: 1px solid var(--pe-border);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	display: flex;
	flex-direction: column;
}

.wwds_delta_archive_card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.wwds_delta_archive_card_media {
	display: block;
	aspect-ratio: 16 / 10;
	background: #f3f4f6;
	overflow: hidden;
}

.wwds_delta_archive_card_media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wwds_delta_archive_card_placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f3e8ff, #fdf4ff);
}

.wwds_delta_archive_card_body {
	padding: 18px 20px 22px;
}

.wwds_delta_archive_card_body h3 {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	color: #000;
}

.wwds_delta_archive_card_body p {
	margin: 0 0 14px;
	color: #111111;
	font-size: 14px;
	line-height: 1.5;
}

.wwds_delta_archive_card_cta {
	background: linear-gradient(262deg, #E24C4A 0%, #386BB7 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
	font-weight: 600;
	text-decoration: none;
	font-size: 16px;
}

.wwds_delta_archive_card_cta:hover {
	color: var(--pe-primary-dark);
}

/* ---------- Single quiz wrapper ---------- */

.wwds_delta_wrapper {
	max-width: 1000px;
	margin: 50px auto 100px auto;
	color: var(--pe-text);
	padding: 0 20px;
}

html body .wo_trust_sec>.elementor-container {
	padding: 0;
}

.wwds_delta_container {
	background: #fff;
}

.wwds_delta_step_header {
	margin-bottom: 20px;
}

.wwds_delta_step_header h2 {
	margin: 4px 0 8px !important;
	font-size: 43px;
	font-weight: 700;
}

.wwds_delta_step_header .wwds_delta_sub {
	color: var(--pe-muted);
	margin: 0;
	font-size: 15px;
}

/* Progress */

.wwds_delta_progress {
	margin-bottom: 50px;
}

.wwds_delta_progress_top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 8px;
	font-size: 13px;
}

.wwds_delta_step_label {
	color: #111111;
	font-weight: 700;
	font-size: 16px;
}

.wwds_delta_step_counter {
	color: var(--pe-muted);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wwds_delta_progress_bar {
	background: #eef0f4;
	border-radius: 999px;
	height: 10px;
	overflow: hidden;
}

.wwds_delta_progress_fill {
	background: linear-gradient(262deg, #E24C4A 0%, #386BB7 100%);
	height: 100%;
	transition: width 0.3s ease;
	border-radius: 10px;
}

/* ---------- Single question layout ---------- */

.wwds_delta_step_question,
.wwds_delta_step_contact {
	padding: 20px;
	border-radius: 20px;
	background-color: #F0F2F4;
}

.wwds_delta_single_q_head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 18px;
}

.wwds_delta_qnum {
	background: linear-gradient(262deg, #E24C4A 0%, #386BB7 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
	font-weight: 700;
	font-size: 18px;
}

.wwds_delta_qtext {
	font-size: 18px;
	font-weight: 700;
}

.wwds_delta_question_description {
	color: var(--pe-muted);
	font-size: 14px;
	margin-bottom: 14px;
}

.wwds_delta_option_list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wwds_delta_option_item {
	display: flex;
	align-items: center;
	gap: 14px;
	border: 1.5px solid var(--pe-border);
	border-radius: 10px;
	padding: 16px 20px;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.wwds_delta_option_item:hover {
	border-color: #121212;
}

.wwds_delta_option_item.wwds_delta_selected {
	border-color: var(--pe-primary);
	background: #e24c4a0d;
}

.wwds_delta_option_item input[type="radio"] {
	margin: 0;
	accent-color: var(--pe-primary);
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	appearance: auto;
}

.wwds_delta_option_text {
	flex: 1;
}

.wwds_delta_option_label {
	font-weight: 700;
	font-size: 15px;
}

.wwds_delta_option_description {
	color: var(--pe-muted);
	font-size: 13px;
	margin-top: 4px;
}

/* Tier badge on the right of each option */

.wwds_delta_tier {
	font-size: 14px;
	font-weight: 700;
	background: linear-gradient(262deg, #E24C4A 0%, #386BB7 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
	white-space: nowrap;
}

.wwds_delta_tier_basic {
	color: #64748b;
}

.wwds_delta_tier_standard {
	color: var(--pe-primary);
}

.wwds_delta_tier_advanced {
	color: var(--pe-primary-dark);
}

/* ---------- Legacy service-picker grid ---------- */

.wwds_delta_services_grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.wwds_delta_service_card {
	border: 2px solid var(--pe-border);
	border-radius: 10px;
	padding: 18px;
	cursor: pointer;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.wwds_delta_service_card:hover {
	border-color: #f0abfc;
	transform: translateY(-2px);
}

.wwds_delta_service_card.wwds_delta_selected {
	border-color: var(--pe-primary);
	background: var(--pe-primary-soft);
}

.wwds_delta_service_image img {
	width: 100%;
	border-radius: 6px;
	margin-bottom: 10px;
}

.wwds_delta_service_content h3 {
	margin: 0 0 6px;
	font-size: 16px;
}

.wwds_delta_service_content p {
	margin: 0;
	font-size: 13px;
	color: var(--pe-muted);
}

/* ---------- Contact form ---------- */

.wwds_delta_form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.wwds_delta_form_group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wwds_delta_form_group_full {
	grid-column: 1 / -1;
}

.wwds_delta_form_group label {
	font-size: 13px;
	font-weight: 600;
}

.wwds_delta_required {
	color: #dc2626;
}

html body .wwds_delta_input {
	border: 1px solid #d1d5db !important;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	background: #fff;
}

.wwds_delta_input:focus {
	outline: none;
	border-color: var(--pe-primary);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.10);
}

.wwds_delta_step_contact {
	padding: 40px;
	background-color: #f0f2f48a;
}

.wwds_delta_step_contact>h2 {
	font-size: 30px;
	margin-bottom: 40px;
}

/* ---------- Summary ---------- */

.wwds_delta_summary {
	text-align: center;
	max-width: 100%;
	margin: 0 auto;
}

.wwds_delta_summary_number {
	font-size: 18px;
	font-weight: 600;
	color: #121212;
	margin-bottom: 10px;
}

.wwds_delta_summary_table {
	width: 100%;
	border-collapse: collapse;
	margin: 18px 0 0 0;
	text-align: left;
}

.wwds_delta_summary_table td {
	padding: 10px 12px;
	border-bottom: 1px solid #d1d1d1;
	font-weight: 600;
	color: #121212;
}

.wwds_delta_summary_table td:first-child {
	background: linear-gradient(262deg, #E24C4A 50%, #386BB7 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
	font-weight: 600;
	text-decoration: none;
	font-size: 16px;
}

/* ---------- Error / nav ---------- */

.wwds_delta_error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	padding: 10px 14px;
	border-radius: 6px;
	margin-top: 16px;
	font-size: 14px;
}

.wwds_delta_navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 28px;
}

.wwds_delta_btn {
	border: none;
	border-radius: 999px;
	padding: 12px 28px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease, color 0.15s ease;
	font-family: inherit;
}

html body .wwds_delta_btn_primary {
	background: linear-gradient(262deg, #E24C4A 0%, #386BB7 100%) !important;
	color: #fff;
	margin-left: auto;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(192, 38, 211, 0.18);

}

.wwds_delta_btn_primary:hover {
	background: var(--pe-primary-dark);
}

.wwds_delta_btn_primary:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.wwds_delta_btn_primary:hover:not(:disabled) {
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(192, 38, 211, 0.22);
	transform: translateY(-1px);
}

.wwds_delta_btn_primary:active:not(:disabled) {
	transform: translateY(0);
}

html body .wwds_delta_btn_secondary {
	background: #fff !important;
	color: #121212;
	border: 1px solid #121212 !important;
}

.wwds_delta_btn_secondary:hover {
	border-color: var(--pe-muted);
}

@media (max-width: 600px) {
	.wwds_delta_form {
		grid-template-columns: 1fr;
	}

	.wwds_delta_container {
		padding: 0px;
	}

	.wwds_delta_step_header h2 {
		font-size: 22px;
	}
}

/* ==========================================================================
   Phase 2 additions — validation, phone field, thank-you screen, polish
   ========================================================================== */

/* ---------- Inline field validation ---------- */

.wwds_delta_optional {
	color: var(--pe-muted);
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}

.wwds_delta_input_error {
	border-color: #dc2626 !important;
	background: #fff8f8;
}

.wwds_delta_input_error:focus {
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.wwds_delta_field_error {
	display: none;
	color: #dc2626;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
}

.wwds_delta_field_help {
	color: var(--pe-muted);
	font-size: 12.5px;
	line-height: 1.4;
}

.wwds_delta_form_footer_row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.wwds_delta_char_count {
	color: var(--pe-muted);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	margin-left: auto;
}

.wwds_delta_char_count_warn {
	color: #b45309;
}

/* ---------- International phone field (intl-tel-input) ---------- */

.wwds_delta_form_group .iti {
	width: 100%;
}

.wwds_delta_form_group .iti input.wwds_delta_input {
	width: 100%;
}

.iti__dropdown-content {
	border-radius: 10px;
	border: 1px solid var(--pe-border);
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.iti__selected-country {
	border-radius: 8px 0 0 8px;
}

/* ---------- Thank you / success screen ---------- */

.wwds_delta_step_summary {
	text-align: center;
	padding: 8px 0 4px;
}

.wwds_delta_success_icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 0px;
	border-radius: 50%;
	background: var(--pe-primary-soft);
	color: var(--pe-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: wwds_delta_pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wwds_delta_pop {
	0% {
		transform: scale(0.5);
		opacity: 0;
	}

	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.wwds_delta_success_title {
	font-size: 35px;
	font-weight: 700;
	margin-bottom: 5px !important;
	margin-top: 20px;
}

.wwds_delta_success_sub {
	color: var(--pe-muted);
	margin: 0 0 24px;
	font-size: 15px;
}

.wwds_delta_summary_card {
	background: #F0F2F4;
	border-radius: 20PX;
	padding: 30px;
	text-align: left;
	margin-bottom: 20px;
}

/* ---------- Project Overview (full Q&A recap on the thank-you screen) ---------- */

.wwds_delta_overview {
	text-align: left;
	background: #F0F2F4;
	border-radius: 20PX;
	padding: 30PX;
	margin-bottom: 20px;
}

.wwds_delta_overview_title {
	font-size: 20px;
	font-weight: 700;
	color: var(--pe-primary);
	margin: 0 0 14px;
}

.wwds_delta_overview_row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 12px 16px;
	border: 1px solid var(--pe-border);
	border-radius: 8px;
	margin-bottom: 10px;
	BACKGROUND: #fff;
}

.wwds_delta_overview_row:last-child {
	margin-bottom: 0;
}

.wwds_delta_overview_question {
	color: var(--pe-text);
	font-size: 15px;
	font-weight: 700;
}

.wwds_delta_overview_answer {
	color: var(--pe-primary);
	font-size: 13px;
	font-weight: 700;
	text-align: right;
	flex-shrink: 0;
	max-width: 60%;
}

@media (max-width: 600px) {
	.wwds_delta_overview_row {
		flex-direction: column;
		gap: 4px;
	}

	.wwds_delta_overview_answer {
		text-align: left;
		max-width: 100%;
	}
}

.wwds_delta_success_note {
	color: var(--pe-muted);
	font-size: 14px;
	max-width: 480px;
	margin: 0 auto 24px;
}

/* ---------- Typical Timeline (stage cards) ---------- */

.wwds_delta_stages_title {
	font-size: 20px;
	font-weight: 700;
	color: var(--pe-primary);
	margin: 0 0 20px;
	line-height: normal;
}

.wwds_delta_stages_grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.wwds_delta_stage_card {
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.wwds_delta_stage_card_img {
	display: block;
	width: 100%;
	height: 110px;
	object-fit: cover;
}

.wwds_delta_stage_card_meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	padding: 10PX;
	flex-wrap: wrap;
}

.wwds_delta_stage_card_label {
	font-size: 13px;
	font-weight: 700;
	color: var(--pe-text);
}

.wwds_delta_stage_card_duration {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--pe-primary);
	white-space: nowrap;
}

/* ---------- Total cost + What's Next ---------- */

.wwds_delta_summary_meta {
	font-size: 13px;
	font-weight: 500;
	color: var(--pe-muted);
}

.wwds_delta_total_cost {
	font-size: 40px;
	font-weight: 800;
	margin: 4px 0 2px;
	background: linear-gradient(262deg, #E24C4A 80%, #386BB7 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
	MARGIN: 0;
	LINE-HEIGHT: NORMAL;
}

.wwds_delta_total_cost_usd {
	font-size: 16px;
	font-weight: 600;
	color: var(--pe-muted);
}

.wwds_delta_total_cost_label {
	font-size: 16px;
	font-weight: 600;
	color: var(--pe-text);
	margin: 5px 0 15px;
}

.wwds_delta_summary_divider {
	border: none;
	border-top: 1px solid #d7d5d5;
	margin: 0 0 15px;
}

.wwds_delta_whats_next_title {
	font-size: 20px;
	font-weight: 700;
	color: var(--pe-text);
	margin: 0 0 6px;
	line-height: normal;
}

.wwds_delta_whats_next_copy {
	font-size: 13.5px;
	color: var(--pe-muted);
	margin: 0 0 16px;
}


.wwds_delta_success_cta .wwds_delta_btn_secondary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 20px;
}

.wwds_delta_success_cta {
	display: flex;
	justify-content: left;
	gap: 12px;
	flex-wrap: wrap;
}

.wwds_delta_success_cta .wwds_delta_btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ---------- Selected-option animation ---------- */

.wwds_delta_option_item {
	transform: translateZ(0);
	transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.wwds_delta_option_item:active {
	transform: scale(0.99);
}

.wwds_delta_option_item.wwds_delta_selected {
	box-shadow: 0 0 0 1px var(--pe-primary), 0 6px 16px rgba(192, 38, 211, 0.12);
	animation: wwds_delta_select_pulse 0.28s ease;
}

@keyframes wwds_delta_select_pulse {
	0% {
		transform: scale(0.98);
	}

	60% {
		transform: scale(1.005);
	}

	100% {
		transform: scale(1);
	}
}

/* ---------- Buttons: refined hover/active states ---------- */



.wwds_delta_btn_secondary:hover:not(:disabled) {
	background: #fafafa;
}

.wwds_delta_btn {
	transition: background 0.15s ease, opacity 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

/* ---------- Accessible focus states ---------- */

.wwds_delta_option_item input[type="radio"]:focus-visible {
	outline: 2px solid var(--pe-primary);
	outline-offset: 2px;
}

/* ---------- Card & container polish ---------- */

.wwds_delta_container {
	transition: box-shadow 0.2s ease;
}

.wwds_delta_progress {
	transition: opacity 0.2s ease;
}


.single-proposal_service .entry-header {
	display: none;
}

.single-proposal_service .entry-content>p {
	display: none;
}

.single-proposal_service .post-navigation {
	display: none;
}

/* ---------- Mobile responsiveness ---------- */

@media (max-width: 600px) {
	.wwds_delta_success_cta {
		flex-direction: column;
	}

	.wwds_delta_success_cta .wwds_delta_btn {
		width: 100%;
	}

	.wwds_delta_summary_card {
		padding: 16px;
	}

	.wwds_delta_option_item {
		padding: 14px 16px;
	}

	.wwds_delta_form_footer_row {
		flex-wrap: wrap;
	}
}

@media screen and (max-width:575px) {
	.wwds_delta_archive_intro h2 {
		font-size: 26px;
	}

	.wwds_delta_archive_grid {
		grid-template-columns: 1fr;
	}

	.wwds_delta_step_contact {
		padding: 20px;
	}

	.wwds_delta_step_contact>h2 {
		font-size: 20px;
	}

	.wwds_delta_wrapper {
		margin: 30px auto 50px auto;
	}

	.wwds_delta_qtext {
		font-size: 16px;
		line-height: normal;
	}

	.wwds_delta_option_label {
		font-size: 14px;
		line-height: normal;
	}

	.wwds_delta_eyebrow {
		line-height: normal;
	}

	.wwds_delta_tier {
		font-size: 12px;
	}

	.wwds_delta_summary_table td {
		line-height: 25px;
	}

	.wwds_delta_summary_table td {
		font-size: 14px;
	}
}

/* ---------- Flag sprite override ----------
 * Moved to Plugin::enqueue_frontend_assets() as a PHP-generated inline
 * style with an ABSOLUTE image URL. A relative url("../vendor/...") here
 * only resolves correctly if this exact file is served from
 * assets/css/frontend.css — but WP-Rocket, Autoptimize, LiteSpeed Cache,
 * etc. commonly concatenate/move enqueued CSS into a single cached file
 * at a different path, which silently breaks every relative image URL
 * in this stylesheet (the flags become invisible even though the file
 * itself is untouched). An absolute URL has no "relative to what" problem
 * and survives that kind of rewriting. See includes/Plugin.php.
 */

/* ---------- Shortcode misconfiguration notice (editors only) ---------- */

.wwds_delta_shortcode_notice {
	background: #fff8e1;
	border: 1px solid #f0c14b;
	border-radius: 8px;
	padding: 12px 16px;
	color: #6b5000;
	font-size: 14px;
	max-width: 640px;
}

/* ---------- Thank You screen: active-response hook ---------- */
/*
 * Toggled by wizard.js on .wwds_delta_container once the quote is
 * generated. Hides the hero header and the step progress bar so the
 * Thank You screen is clean and distraction-free.
 */
.wwds_delta_container.active-response .wwds_delta_step_header,
.wwds_delta_container.active-response .wwds_delta_progress {
	display: none;
}