/* ============================================================
   ALDA Cost Calculators - front-end styles
   Brand: deep navy ink + warm ALDA orange. Editorial, tactile,
   deliberately not a generic SaaS look.
   Everything is scoped under .alda-calc.
   ============================================================ */

.alda-calc {
	--alda-accent: #ED6A1C;
	--alda-accent-d: #cf5810;
	--alda-ink: #12243B;
	--alda-ink-2: #2c3f57;
	--alda-muted: #6a7888;
	--alda-line: #e6e8ec;
	--alda-line-2: #eef0f3;
	--alda-bg: #ffffff;
	--alda-surf: #f7f8fa;
	--alda-surf-2: #fbf6f1;
	--alda-good: #1f9d6b;
	--alda-radius: 18px;
	--alda-radius-s: 12px;
	--alda-shadow: 0 1px 2px rgba(18,36,59,.04), 0 12px 32px -12px rgba(18,36,59,.16);
	--alda-shadow-sm: 0 1px 2px rgba(18,36,59,.05), 0 4px 14px -8px rgba(18,36,59,.18);

	box-sizing: border-box;
	max-width: 760px;
	margin: 0 auto;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: var(--alda-ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	line-height: 1.5;
}
.alda-calc *, .alda-calc *::before, .alda-calc *::after { box-sizing: border-box; }
/* our component classes set display, which would otherwise beat the [hidden]
   attribute - make hidden authoritative for back button / result-screen footer */
.alda-calc [hidden] { display: none !important; }

/* ---------- template switcher (showcase) ---------- */
.alda-showcase { max-width: 760px; margin: 0 auto; }
.alda-switch {
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	margin: 0 auto 16px; padding: 10px 12px;
	background: #fff; border: 1px solid var(--alda-line);
	border-radius: 14px; box-shadow: var(--alda-shadow-sm);
}
.alda-switch__label {
	font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--alda-muted); padding-left: 4px;
}
.alda-switch__btns { display: flex; gap: 6px; flex-wrap: wrap; }
.alda-switch__btn {
	font: inherit; font-size: 13px; font-weight: 600;
	padding: 8px 14px; min-height: 40px;
	border: 1.5px solid var(--alda-line); background: #fff; color: var(--alda-ink-2);
	border-radius: 99px; cursor: pointer;
	transition: border-color .15s, background .15s, color .15s, transform .1s;
	-webkit-tap-highlight-color: transparent;
}
.alda-switch__btn:hover { border-color: #c9ced6; }
.alda-switch__btn:active { transform: translateY(1px); }
.alda-switch__btn.is-active { background: var(--alda-ink); color: #fff; border-color: var(--alda-ink); }
.alda-switch__btn:focus-visible { outline: 3px solid rgba(237,106,28,.35); outline-offset: 2px; }

.alda-intro {
	margin: 0 0 16px;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--alda-muted);
	text-align: center;
	max-width: 56ch;
	margin-left: auto;
	margin-right: auto;
}

.alda-shell {
	position: relative;
	background: var(--alda-bg);
	border: 1px solid var(--alda-line);
	border-radius: var(--alda-radius);
	box-shadow: var(--alda-shadow);
	overflow: hidden;
}

/* ---------- progress ---------- */
.alda-progress { padding: 20px 24px 0; }
.alda-progress__bar {
	height: 6px;
	background: var(--alda-line-2);
	border-radius: 99px;
	overflow: hidden;
}
.alda-progress__fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 99px;
	background: linear-gradient(90deg, var(--alda-accent), #f59148);
	transition: width .45s cubic-bezier(.4,.0,.2,1);
}
.alda-progress__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--alda-muted);
}
.alda-progress__step { color: var(--alda-ink); }

/* ---------- stage / steps ---------- */
.alda-stage { padding: 22px 24px 8px; }

.alda-step__head { margin-bottom: 20px; }
.alda-step__kicker {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--alda-accent);
	margin-bottom: 8px;
}
.alda-step__title {
	font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
	font-weight: 600;
	font-size: clamp(23px, 4.5vw, 30px);
	line-height: 1.12;
	letter-spacing: -.01em;
	margin: 0 0 6px;
	color: var(--alda-ink);
}
.alda-step__sub { margin: 0; color: var(--alda-muted); font-size: 15px; }

/* ---------- field ---------- */
.alda-field { margin-bottom: 22px; }
.alda-field:last-child { margin-bottom: 4px; }
.alda-field__head { margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.alda-field__label { font-size: 14px; font-weight: 700; color: var(--alda-ink); }
.alda-field__help { font-size: 13px; color: var(--alda-muted); }

/* ---------- option grid ---------- */
.alda-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
@media (max-width: 460px) { .alda-grid { grid-template-columns: 1fr; } }

.alda-opt {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 64px;
	padding: 13px 14px;
	text-align: left;
	background: var(--alda-bg);
	border: 1.5px solid var(--alda-line);
	border-radius: var(--alda-radius-s);
	cursor: pointer;
	font: inherit;
	color: var(--alda-ink);
	transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease, background .15s ease;
	-webkit-tap-highlight-color: transparent;
}
.alda-opt:hover { border-color: #c9ced6; box-shadow: var(--alda-shadow-sm); }
.alda-opt:active { transform: translateY(1px); }
.alda-opt:focus-visible { outline: 3px solid rgba(237,106,28,.35); outline-offset: 2px; }

.alda-opt.is-selected {
	border-color: var(--alda-accent);
	background: var(--alda-surf-2);
	box-shadow: 0 0 0 1px var(--alda-accent) inset, var(--alda-shadow-sm);
}

.alda-opt__ic {
	flex: 0 0 auto;
	width: 42px; height: 42px;
	display: grid; place-items: center;
	border-radius: 10px;
	background: var(--alda-surf);
	color: var(--alda-ink-2);
	transition: background .15s ease, color .15s ease;
}
.alda-opt.is-selected .alda-opt__ic { background: var(--alda-accent); color: #fff; }
.alda-opt__ic .alda-ico { width: 22px; height: 22px; }

.alda-opt__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.alda-opt__label { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.alda-opt__desc { font-size: 12.5px; color: var(--alda-muted); }
.alda-opt__price {
	flex: 0 0 auto;
	font-size: 12.5px; font-weight: 700;
	color: var(--alda-ink-2);
	background: var(--alda-surf);
	padding: 4px 9px; border-radius: 99px;
	white-space: nowrap;
}
.alda-opt__price--free { color: var(--alda-good); background: rgba(31,157,107,.08); }
.alda-opt.is-selected .alda-opt__price { background: #fff; color: var(--alda-accent-d); }

.alda-opt__tick {
	position: absolute; top: 8px; right: 8px;
	width: 20px; height: 20px;
	display: grid; place-items: center;
	border-radius: 99px;
	background: var(--alda-accent);
	color: #fff;
	opacity: 0; transform: scale(.5);
	transition: opacity .15s ease, transform .15s ease;
}
.alda-opt__tick .alda-ico { width: 13px; height: 13px; stroke-width: 2.4; }
.alda-opt.is-selected .alda-opt__tick { opacity: 1; transform: scale(1); }
/* keep the label clear of the tick on selected cards */
.alda-opt__body { padding-right: 14px; }

/* ---------- counter ---------- */
.alda-counter { display: flex; align-items: center; gap: 14px; }
.alda-counter__btn {
	width: 48px; height: 48px;
	border: 1.5px solid var(--alda-line);
	background: var(--alda-bg);
	border-radius: 12px;
	font-size: 22px; font-weight: 500; line-height: 1;
	color: var(--alda-ink);
	cursor: pointer;
	transition: border-color .15s, background .15s, transform .1s;
}
.alda-counter__btn:hover:not(:disabled) { border-color: var(--alda-accent); color: var(--alda-accent-d); }
.alda-counter__btn:active:not(:disabled) { transform: translateY(1px); }
.alda-counter__btn:disabled { opacity: .4; cursor: not-allowed; }
.alda-counter__val { min-width: 28px; text-align: center; font-size: 20px; font-weight: 700; }
.alda-counter__meta { font-size: 13px; color: var(--alda-muted); margin-left: 2px; }

/* ---------- footer nav ---------- */
.alda-foot {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-top: 1px solid var(--alda-line);
	background: linear-gradient(180deg, #fff, var(--alda-surf));
	position: sticky; bottom: 0;
}
/* footer holds Back (left) + Continue (right); Continue is always right-aligned */
.alda-foot .alda-btn--primary { margin-left: auto; }

.alda-btn {
	display: inline-flex; align-items: center; justify-content: center;
	gap: 7px;
	min-height: 48px;
	padding: 0 18px;
	border-radius: 12px;
	border: 1.5px solid transparent;
	font: inherit; font-weight: 600; font-size: 15px;
	cursor: pointer;
	transition: background .15s, border-color .15s, transform .1s, box-shadow .15s, opacity .15s;
	-webkit-tap-highlight-color: transparent;
}
.alda-btn .alda-ico { width: 18px; height: 18px; }
.alda-btn--primary {
	background: var(--alda-accent); color: #fff;
	box-shadow: 0 8px 18px -8px rgba(237,106,28,.7);
}
.alda-btn--primary:hover { background: var(--alda-accent-d); }
.alda-btn--primary:active { transform: translateY(1px); }
.alda-btn--primary.is-ready { box-shadow: 0 10px 22px -8px rgba(237,106,28,.8); }
.alda-btn--ghost {
	background: #fff; color: var(--alda-ink-2);
	border-color: var(--alda-line);
}
.alda-btn--ghost:hover { border-color: #c9ced6; color: var(--alda-ink); }
.alda-btn:focus-visible { outline: 3px solid rgba(237,106,28,.35); outline-offset: 2px; }

.alda-btn.shake { animation: alda-shake .4s; }
@keyframes alda-shake {
	0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-5px)} 40%,80%{transform:translateX(5px)}
}

/* ---------- result ---------- */
.alda-result { padding: 4px 0 8px; }
.alda-result__hero {
	text-align: center;
	padding: 14px 16px 22px;
	background: radial-gradient(120% 100% at 50% 0%, var(--alda-surf-2), #fff 70%);
	border-radius: var(--alda-radius);
	border: 1px solid var(--alda-line-2);
	margin-bottom: 18px;
}
.alda-result__kicker {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
	text-transform: uppercase; color: var(--alda-good);
	margin-bottom: 10px;
}
.alda-result__kicker .alda-ico { width: 16px; height: 16px; padding: 3px; background: rgba(31,157,107,.12); border-radius: 99px; stroke-width: 2.6; }
.alda-result__range {
	display: flex; align-items: center; justify-content: center;
	flex-wrap: wrap; gap: 6px 16px;
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: clamp(30px, 8vw, 50px);
	letter-spacing: -.02em;
	color: var(--alda-ink);
	line-height: 1;
}
.alda-result__dash {
	font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
	text-transform: uppercase; letter-spacing: .1em; color: var(--alda-muted);
}
.alda-result__note {
	max-width: 52ch; margin: 14px auto 0;
	font-size: 13.5px; color: var(--alda-muted); line-height: 1.55;
}

/* legal disclaimer - fine print under the estimate */
.alda-disclaimer {
	margin: 0 0 18px;
	max-width: none;
	width: 100%;
	padding: 11px 2px 0;
	border-top: 1px solid var(--alda-line-2);
	font-size: 10.5px;
	line-height: 1.5;
	color: var(--alda-muted);
	text-align: center;
	opacity: .92;
}

/* breakdown */
.alda-breakdown {
	border: 1px solid var(--alda-line);
	border-radius: var(--alda-radius-s);
	padding: 4px 16px 8px;
	margin-bottom: 18px;
}
.alda-breakdown__head {
	font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
	color: var(--alda-muted); padding: 12px 0 6px; border-bottom: 1px solid var(--alda-line-2);
}
.alda-breakdown__list { list-style: none; margin: 0; padding: 0; }
.alda-breakdown__list li {
	display: flex; justify-content: space-between; gap: 16px;
	padding: 9px 0; font-size: 14px;
	border-bottom: 1px solid var(--alda-line-2);
}
.alda-breakdown__list li:last-child { border-bottom: 0; }
.alda-breakdown__list li b { color: var(--alda-ink); font-weight: 700; white-space: nowrap; }

/* form card */
.alda-formcard {
	background: var(--alda-ink);
	color: #fff;
	border-radius: var(--alda-radius);
	padding: 22px 20px;
	margin-bottom: 16px;
}
.alda-formcard__head { margin-bottom: 16px; text-align: center; }
.alda-formcard__head h4 {
	font-family: 'Fraunces', Georgia, serif; font-weight: 600;
	font-size: 21px; margin: 0 0 6px; color: #fff;
}
.alda-formcard__head p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.7); }
.alda-formcard__fallback { text-align: center; font-size: 16px; }
.alda-formcard__fallback a, .alda-formcard a { color: #ffb27a; font-weight: 700; }

/* style CF7 inside the dark card */
.alda-formcard__form .wpcf7 { margin: 0; }
.alda-formcard__form p { margin: 0 0 12px; }
.alda-formcard__form label { display: block; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }
.alda-formcard__form input[type=text],
.alda-formcard__form input[type=tel],
.alda-formcard__form input[type=email],
.alda-formcard__form input[type=number],
.alda-formcard__form input[type=date],
.alda-formcard__form select,
.alda-formcard__form textarea {
	width: 100%;
	margin-top: 5px;
	padding: 12px 13px;
	font: inherit; font-size: 15px;
	color: var(--alda-ink);
	background: #fff;
	border: 1.5px solid transparent;
	border-radius: 10px;
	transition: border-color .15s, box-shadow .15s;
}
.alda-formcard__form input:focus,
.alda-formcard__form select:focus,
.alda-formcard__form textarea:focus {
	outline: none; border-color: var(--alda-accent);
	box-shadow: 0 0 0 3px rgba(237,106,28,.25);
}
.alda-formcard__form textarea { min-height: 92px; resize: vertical; }
/* The CF7 submit carries theme classes (button/primary/lowercase) whose hover
   rules clash with ours; lock every visual property across all states so the
   button never shifts, recolours or loses its label on mouseover. */
.alda-formcard__form .wpcf7-submit,
.alda-formcard__form .wpcf7-submit:hover,
.alda-formcard__form .wpcf7-submit:focus,
.alda-formcard__form .wpcf7-submit:active,
.alda-formcard__form .wpcf7-submit:visited {
	display: block !important;
	width: 100% !important;
	margin: 6px 0 0 !important;
	min-height: 52px !important;
	height: auto !important;
	padding: 15px 20px !important;
	background-color: var(--alda-accent) !important;
	background-image: none !important;
	color: #fff !important;
	font: 700 15.5px/1 'Inter', sans-serif !important;
	letter-spacing: .01em !important;
	text-transform: none !important;
	text-decoration: none !important;
	border: 0 !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	outline: none !important;
	transform: none !important;
	opacity: 1 !important;
	cursor: pointer;
	transition: background-color .15s ease !important;
}
.alda-formcard__form .wpcf7-submit:hover,
.alda-formcard__form .wpcf7-submit:focus {
	background-color: var(--alda-accent-d) !important;
}
.alda-formcard__form .wpcf7-submit:focus-visible {
	box-shadow: 0 0 0 3px rgba(237,106,28,.45) !important;
}
.alda-formcard__form .wpcf7-not-valid-tip { color: #ffd0b0; font-size: 12.5px; }
.alda-formcard__form .wpcf7-spinner { background-color: rgba(255,255,255,.5); }
.alda-formcard__form .wpcf7-response-output {
	border-radius: 10px; font-size: 13.5px; margin: 14px 0 0; padding: 11px 13px;
	border-color: rgba(255,255,255,.4) !important; color: #fff;
}

.alda-restart {
	display: inline-flex; margin: 0 auto;
}
.alda-result .alda-restart { display: flex; }

/* fallbacks / misc */
.alda-noscript, .alda-cf7-missing { padding: 20px; text-align: center; color: var(--alda-ink); }
.alda-cf7-source { margin: 0; }

/* entrance animation */
.animate-in { animation: alda-fade .4s cubic-bezier(.2,.7,.3,1); }
@keyframes alda-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.animate-in, .alda-progress__fill, .alda-opt, .alda-btn { animation: none !important; transition: none !important; }
}

/* tablet+ niceties */
@media (min-width: 680px) {
	.alda-progress { padding: 26px 32px 0; }
	.alda-stage { padding: 28px 32px 10px; }
	.alda-foot { padding: 16px 24px; }
}
