/* Website cost estimator – multi-step CF7 form */
.cms-estimator {--est-grad: linear-gradient(99deg, #0066B3 0%, #00A5CF 100%);--est-blue: #0066B3;--est-text: #111;--est-muted: #6b6b6b;--est-border: #d6d6d6;--est-track: #e5e5e5;max-width: 1000px;margin: 0 auto;padding: 50px;background: #fff;box-shadow: 0px 20px 60px #00000014;border-radius: 20px;color: var(--est-text);}
.cms-estimator *, .cms-estimator *::before, .cms-estimator *::after { box-sizing: border-box; }
.cms-estimator h3 {margin: 40px 0 20px 0px;}

/* Progress */
.cms-est-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cms-est-bars span { height: 6px; border-radius: 6px; background: var(--est-track); transition: background .3s; }
.cms-est-bars span.is-done { background: var(--est-grad); }
.cms-est-count { font-size: 16px; color: var(--est-muted); margin: 10px 0px; }

/* Steps */
.cms-est-step { display: none; }
.cms-est-step.is-active { display: block; animation: cmsEstFade .3s ease; }
@keyframes cmsEstFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cms-est-sub { font-size: 16px; color: var(--est-muted); margin: -10px 0 18px; }
.cms-est-label { display: block; font-size: 18px; letter-spacing: 0.36px;color: #000210; }
.cms-est-url-wrap { margin-bottom: 22px; }
.cms-est-url-wrap[hidden] { display: none; }
.cms-est-other-wrap { margin-top: -6px; margin-bottom: 22px; }
.cms-est-other-wrap[hidden] { display: none; }

/* Inputs */
.cms-estimator input[type="text"],
.cms-estimator input[type="email"],.cms-estimator input[type="url"],
.cms-estimator input[type="tel"] {width: 100%; height: 45px; padding: 0 20px;border: 1px solid var(--est-border); border-radius: 6px;font: inherit; font-size: 15px; color: var(--est-text); background: #fff;transition: border-color .2s;}
.cms-estimator input::placeholder { color: #a5a5a5; }
.cms-estimator input:focus { outline: none; border-color: var(--est-blue); }

/* Option buttons (CF7 radio / checkbox) */
.cms-est-options { margin-bottom: 22px; }
.cms-est-options .wpcf7-form-control-wrap,
.cms-est-options .wpcf7-form-control { display: block; }
.cms-est-options .wpcf7-form-control { display: grid; gap: 10px; }
.cms-est-cols-2 .wpcf7-form-control { grid-template-columns: repeat(2, 1fr); }
.cms-est-cols-3 .wpcf7-form-control { grid-template-columns: repeat(3, 1fr); }
.cms-est-list .wpcf7-form-control { grid-template-columns: 1fr; gap: 20px; }
.cms-est-options .wpcf7-list-item { margin: 0; display: block; }
.cms-est-options .wpcf7-list-item label {position: relative;display: flex;align-items: center;justify-content: center;min-height: 42px;padding: 15px;margin: 0;border: 1px solid var(--est-border);border-radius: 10px;background: #fff;font-size: 18px;text-align: center;cursor: pointer;letter-spacing: 0.36px;transition: border-color .2s, color .2s;-webkit-border-radius: 10px;-moz-border-radius: 10px;-ms-border-radius: 10px;-o-border-radius: 10px;}
.cms-est-list .wpcf7-list-item label { justify-content: flex-start; text-align: left; min-height: 50px; }
.cms-est-options .wpcf7-list-item label:hover { border-color: var(--est-blue); }
.cms-est-options input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.cms-est-options input[type="radio"]:focus-visible + .wpcf7-list-item-label { outline: 2px solid var(--est-blue); outline-offset: 4px; }
.cms-est-options .wpcf7-list-item-label { margin: 0; }
.cms-est-options:not(.cms-est-checks) .wpcf7-list-item.is-selected label {background: var(--est-grad); border-color: transparent; color: #fff;}

/* Checkbox cards */
.cms-est-checks .wpcf7-list-item label { justify-content: flex-start; text-align: left; gap: 12px; }
.cms-est-checks input[type="checkbox"] {
	-moz-appearance: none;
	appearance: none; -webkit-appearance: none; flex-shrink: 0;
	width: 20px; height: 20px; margin: 0; border-radius: 4px;
	background: #deeef8; cursor: pointer; position: relative;
}
.cms-est-checks input[type="checkbox"]:checked { background: var(--est-grad); }
.cms-est-checks input[type="checkbox"]:checked::after {
	content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
	border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.cms-est-checks input[type="checkbox"]:focus-visible { outline: 2px solid var(--est-blue); outline-offset: 2px; }

/* Buttons */
.cms-est-btn,
.cms-estimator input.cms-est-btn[type="submit"] {display: inline-flex;align-items: center;justify-content: center;padding: 15px 35px;border: 1px solid transparent;border-radius: 8px;background: var(--est-grad);color: #fff;font: inherit;font-size: 20px;font-weight: 400;cursor: pointer;letter-spacing: 0.4px;line-height:25px;transition: opacity .2s;}
.cms-est-btn:hover { opacity: .9; }
.cms-est-btn--outline { background: #fff; color: var(--est-text); border-color: var(--est-text); }
.cms-est-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.cms-est-error { display: none; color: #c62828; font-size: 18px; margin: 0 0 12px; }
.cms-est-error.is-visible { display: block; }

/* Result */
.cms-est-result { display: none; text-align: center; }
.cms-estimator.is-result .cms-est-progress,
.cms-estimator.is-result .cms-est-step,
.cms-estimator.is-result .cms-est-nav,
.cms-estimator.is-result .cms-est-error { display: none; }
.cms-estimator.is-result .cms-est-result { display: block; animation: cmsEstFade .3s ease; }
.cms-est-check {display: inline-flex; align-items: center; justify-content: center;width: 42px; height: 42px; border-radius: 50%; background: var(--est-grad); margin-bottom: 18px;}
.cms-est-eyebrow {color: var(--est-blue);font-size: 20px;font-weight: 600;margin: 0 0 6px;line-height: 30px;}
.cms-est-price {font-size: 44px;font-weight: 700;line-height: 66px;letter-spacing: 0;}
.cms-est-note {font-size: 18px;line-height: 30px;max-width: 700px;margin: 0 auto 24px;letter-spacing: 0.36px;color: #111111;}
/* Buttons appear once the count-up finishes */
.cms-est-result-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; visibility: hidden; opacity: 0; transition: opacity .3s; }
.cms-estimator.is-ready .cms-est-result-actions { visibility: visible; opacity: 1; }
/* "Start a Project" keeps the estimate and swaps the buttons for the lead form */
.cms-estimator.is-contact .cms-est-result-actions { display: none; }

/* Contact + thank you */
.cms-est-contact,
.cms-est-thanks { display: none; border-top: 1px solid #e6e6e6; margin-top: 28px; padding-top: 34px; }
.cms-estimator.is-contact .cms-est-contact { display: block; text-align: left; animation: cmsEstFade .4s ease; }
.cms-estimator.is-contact .cms-est-contact h3 { text-align: center; margin: 0 0 26px; }
.cms-est-thanks h3 { margin-top: 0; }
.cms-estimator.is-sent .cms-est-contact { display: none; }
.cms-estimator.is-sent .cms-est-thanks { display: block; }
.cms-est-thanks p { font-size: 16px; line-height: 1.75; max-width: 540px; margin: 0 auto; }
.cms-est-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 10px; }
.cms-est-field--full { grid-column: 1 / -1; }
.cms-est-submit { text-align: center; margin-top: 30px; }
.cms-est-small { font-size: 16px; color: var(--est-muted);}
.cms-estimator .wpcf7-not-valid-tip { font-size: 18px; margin-top: 4px; }

/* Hide CF7's generic response box on this form; the thank-you panel replaces it on success */
.wpcf7 form:has(.cms-estimator).sent .wpcf7-response-output { display: none; }
.wpcf7 form:has(.cms-estimator).invalid .wpcf7-response-output { display: none; }
.wpcf7 form:has(.cms-estimator) .wpcf7-response-output {max-width: 1000px;margin: 16px auto 0;padding: 12px 20px;background: #fff;border-radius: 10px;font-size: 16px;text-align: center;}
.wpcf7 form:has(.cms-estimator) .wpcf7-spinner { position: absolute; }

@media (max-width: 767px) {
	.cms-est-options .wpcf7-list-item label { font-size: 16px;padding: 5px 15px;}
	.cms-est-btn, .cms-estimator input.cms-est-btn[type="submit"]{padding: 10px 35px;        white-space: normal;}
	.cms-estimator { padding: 45px 15px 15px 15px; border-radius: 12px; }
	.cms-estimator h3 { font-size: 21px;margin: 20px 0 16px; }
	.cms-est-cols-3 .wpcf7-form-control { grid-template-columns: repeat(2, 1fr); }
	.cms-est-price { font-size: 19px;line-height: 25px; }
	.cms-est-fields { grid-template-columns: 1fr; }
	.cms-est-fields {gap: 5px 8px;}
	.cms-est-btn, .cms-estimator input.cms-est-btn[type="submit"] {font-size: 16px;}
	.cms-estimator.is-contact .cms-est-contact h3 {margin: 0px;}
	.cms-est-note{font-size: 16px;}
	.cms-est-small {font-size: 14px;}
	.cms-est-check {margin-bottom: 10px;}
	.cms-est-contact, .cms-est-thanks {margin-top: 0px;padding-top: 20px;}
}
@media (max-width: 480px) {
	.cms-est-cols-2 .wpcf7-form-control,
	.cms-est-cols-3 .wpcf7-form-control { grid-template-columns: 1fr; }
}
/* cost calculation popup */
a#calculationform-btn {cursor: pointer;}
div#calculationpopup {position: fixed;inset: 0;background-color: rgba(0, 0, 0, 0.5);z-index: 9999;overflow-y: auto;padding: 40px 16px;}
.calculation-popup-content {position: relative;max-width: 1100px;margin: 0 auto;border-radius: 10px;padding: 50px 30px 30px;top: 50%;transform: translateY(-50%);}
.calculation-close-btn {padding-top: 12px;position: absolute;right: 99px;font-size: 30px;line-height: 1;color: #777;cursor: pointer;}
.calculation-close-btn:hover {color: #000;}
@media (max-width: 767px) {
.calculation-popup-content {
	padding: 45px 15px 20px;
}
.calculation-close-btn {
    right: 45px;
}
}
