/* Audi Repair Estimator. Colours come only from the site's palette aliases (--ar-*, child theme vars.css). */
.are { --are-r: 14px; --are-shadow: 0 10px 30px color-mix(in srgb, var(--ar-ink) 10%, transparent); font-family: var(--ar-font-body); color: var(--ar-text); scroll-margin-top: 110px; }
.are *, .are *::before, .are *::after { box-sizing: border-box; }
.are h3 { font-family: var(--ar-font-heading); font-weight: 800; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; color: var(--ar-ink); margin: 0 0 8px; outline: none; }
.are h4 { font-family: var(--ar-font-heading); font-weight: 800; font-size: 18px; color: var(--ar-ink); margin: 0 0 18px; }
.are p { margin: 0 0 14px; }
.are button { font: inherit; cursor: pointer; }

/* steps */
.are-steps { list-style: none; margin: 0 0 30px; padding: 0; display: flex; gap: 8px; counter-reset: are; flex-wrap: wrap; }
.are-steps li { counter-increment: are; flex: 1 1 0; min-width: 110px; position: relative; margin: 0; padding: 12px 14px 12px 50px; border-radius: 999px; background: var(--ar-white); border: 1px solid var(--ar-line); font-size: 14px; font-weight: 700; color: var(--ar-muted); transition: all var(--ar-transition); }
.are-steps li::before { content: counter(are); position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ar-surface); color: var(--ar-muted); font-family: var(--ar-font-heading); font-size: 13px; }
.are-steps li.is-on { border-color: var(--ar-accent); color: var(--ar-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ar-accent) 14%, transparent); }
.are-steps li.is-on::before { background: var(--ar-accent); color: var(--ar-white); }
.are-steps li.is-done { color: var(--ar-ink); }
.are-steps li.is-done::before { content: "\2713"; background: var(--ar-ink); color: var(--ar-white); }

/* panels */
.are-panel { animation: are-in 0.35s ease both; }
@keyframes are-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .are-panel { animation: none; } }
.are-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ar-accent); margin: 0 0 8px !important; }
.are-label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ar-ink); margin: 22px 0 10px !important; }
.are-head { margin-bottom: 22px; }
.are-head p { color: var(--ar-muted); }

/* step 1: models */
.are-models { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.are a.are-model { display: flex; flex-direction: column; text-decoration: none; background: var(--ar-white); border: 1px solid var(--ar-line); border-radius: var(--are-r); overflow: hidden; transition: transform var(--ar-transition), box-shadow var(--ar-transition), border-color var(--ar-transition); }
.are a.are-model:hover, .are a.are-model:focus-visible { transform: translateY(-4px); border-color: var(--ar-accent); box-shadow: var(--are-shadow); }
.are-model-img { aspect-ratio: 3 / 2; background: var(--ar-surface); display: grid; place-items: center; overflow: hidden; }
.are-model-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.are a.are-model:hover .are-model-img img { transform: scale(1.06); }
.are-model-name { padding: 12px 10px 14px; text-align: center; font-family: var(--ar-font-heading); font-weight: 800; font-size: 16px; color: var(--ar-ink); }
.are-dots { font-size: 40px; line-height: 1; color: var(--ar-muted); letter-spacing: 2px; }
.are-noimg { width: 60%; height: 40%; border-radius: 8px; background: var(--ar-surface-strong); }
.are-resume { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 14px 18px; background: var(--ar-white); border: 1px solid var(--ar-line); border-left: 4px solid var(--ar-accent); border-radius: 10px; }

/* step 2: year and variant */
.are-panel--year { display: grid; grid-template-columns: 340px 1fr; gap: 20px 36px; align-items: start; padding: 30px; background: var(--ar-white); border: 1px solid var(--ar-line); border-radius: var(--are-r); box-shadow: var(--are-shadow); }
.are-car { grid-row: span 4; }
.are-car-img { aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--ar-surface); margin-bottom: 16px; display: grid; place-items: center; }
.are-car-img img { width: 100%; height: 100%; object-fit: cover; }
.are-fields { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: end; }
.are-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; margin: 0; }
.are-field > span { font-size: 14px; font-weight: 700; color: var(--ar-ink); }
.are input[type=text], .are input[type=email], .are input[type=date], .are input:not([type]), .are select, .are textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--ar-muted); border-radius: 8px; background: var(--ar-white); color: var(--ar-ink); font: inherit; font-size: 16px; }
.are input:focus, .are select:focus, .are textarea:focus { outline: 3px solid color-mix(in srgb, var(--ar-accent) 30%, transparent); border-color: var(--ar-accent); }
.are-gen { flex-basis: 100%; margin: 0 !important; font-size: 14px; color: var(--ar-muted); }
.are-gen strong { color: var(--ar-ink); }
.are-variants { display: flex; flex-wrap: wrap; gap: 10px; }
.are-var { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px; border: 1px solid var(--ar-line); border-radius: 10px; background: var(--ar-white); color: var(--ar-ink); font-weight: 700; font-size: 15px; transition: all var(--ar-transition); }
.are-var em { font-style: normal; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ar-accent); }
.are-var:hover { border-color: var(--ar-ink); }
.are-var.is-on { border-color: var(--ar-accent); background: var(--ar-ink); color: var(--ar-white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ar-accent) 18%, transparent); }
.are-var.is-on em { color: var(--ar-accent-on-dark); }

/* buttons + links */
.are-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; margin-top: 24px; grid-column: 2; }
.are-actions--center { justify-content: center; }
.are .are-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 24px; border: 1px solid var(--ar-accent); border-radius: var(--ar-radius-button); background: var(--ar-accent); color: var(--ar-white); font-weight: 700; font-size: 15px; text-decoration: none; transition: all var(--ar-transition); }
.are .are-btn:hover { background: var(--ar-ink); border-color: var(--ar-ink); color: var(--ar-white); }
.are .are-btn[disabled] { opacity: 0.45; cursor: not-allowed; background: var(--ar-accent); border-color: var(--ar-accent); }
.are .are-btn--outline { background: transparent; color: var(--ar-ink); border-color: var(--ar-ink); }
.are .are-btn--outline:hover { background: var(--ar-ink); color: var(--ar-white); }
.are .are-btn--ghost { background: transparent; color: var(--ar-ink); border-color: var(--ar-line); }
.are .are-btn--ghost:hover { background: var(--ar-surface); color: var(--ar-ink); border-color: var(--ar-muted); }
.are .are-btn--full { width: 100%; margin-top: 10px; }
.are .are-link { background: none; border: 0; padding: 0; color: var(--ar-accent); font-weight: 700; font-size: 14px; text-decoration: none; border-bottom: 1px solid currentColor; }
.are .are-link:hover { color: var(--ar-ink); }

/* summary chips */
.are-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.are-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--ar-line); border-radius: 999px; background: var(--ar-white); color: var(--ar-ink); font-size: 14px; font-weight: 700; }
.are-chip span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ar-muted); }
.are-chip::after { content: "Change"; font-size: 12px; color: var(--ar-accent); border-left: 1px solid var(--ar-line); padding-left: 8px; }
.are-chip:hover { border-color: var(--ar-accent); }

/* step 3: services */
.are-svcs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.are-svc { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--ar-line); border-radius: var(--are-r); background: var(--ar-white); overflow: hidden; transition: transform var(--ar-transition), box-shadow var(--ar-transition), border-color var(--ar-transition); }
.are-svc:hover, .are-svc:focus-visible { transform: translateY(-4px); border-color: var(--ar-accent); box-shadow: var(--are-shadow); }
.are-svc-img { position: relative; aspect-ratio: 16 / 10; background: var(--ar-ink); overflow: hidden; }
.are-svc-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; transition: transform 0.4s ease; }
.are-svc:hover .are-svc-img img { transform: scale(1.06); }
.are-svc-num { position: absolute; left: 12px; top: 12px; padding: 4px 9px; border-radius: 6px; background: var(--ar-accent); color: var(--ar-white); font-family: var(--ar-font-heading); font-weight: 800; font-size: 12px; }
.are-svc-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; flex: 1; }
.are-svc-body strong { font-family: var(--ar-font-heading); font-size: 17px; line-height: 1.3; color: var(--ar-ink); }
.are-svc-body > span:not(.are-go) { font-size: 14px; line-height: 1.55; color: var(--ar-text); flex: 1; }
.are-go { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--ar-accent); }
.are-svc--unsure { background: var(--ar-ink); border-color: var(--ar-ink); justify-content: center; }
.are-svc--unsure strong { color: var(--ar-white); }
.are-svc--unsure .are-svc-body > span:not(.are-go) { color: var(--ar-text-on-dark); }
.are-svc--unsure .are-go { color: var(--ar-accent-on-dark); }

/* step 4: estimate */
.are-est { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 28px; align-items: start; }
.are-est-main { padding: 30px; background: var(--ar-white); border: 1px solid var(--ar-line); border-radius: var(--are-r); }
.are-est-main > p { font-size: 16px; line-height: 1.7; }
.are-incl { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.are-incl li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ar-ink); margin: 0; }
.are-incl li::before { content: ""; position: absolute; left: 3px; top: 0.45em; width: 12px; height: 7px; border-left: 2px solid var(--ar-accent); border-bottom: 2px solid var(--ar-accent); transform: rotate(-45deg); }
.are-est-img { aspect-ratio: 16 / 8; border-radius: 10px; overflow: hidden; margin: 6px 0 18px; }
.are-est-img img { width: 100%; height: 100%; object-fit: cover; }
.are-price { position: sticky; top: 110px; padding: 26px; background: var(--ar-white); border: 1px solid var(--ar-line); border-top: 4px solid var(--ar-accent); border-radius: var(--are-r); box-shadow: var(--are-shadow); }
.are-price-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ar-muted); margin: 0 0 4px !important; }
.are-lines { list-style: none; margin: 0; padding: 0; }
.are-lines li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 0; margin: 0; border-bottom: 1px dashed var(--ar-line); }
.are-line strong { display: block; font-size: 15px; color: var(--ar-ink); }
.are-line small { display: block; font-size: 12px; color: var(--ar-muted); }
.are-lines b { font-size: 15px; color: var(--ar-ink); white-space: nowrap; }
.are-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 12px; padding: 16px 18px; border-radius: 10px; background: var(--ar-ink); color: var(--ar-white); }
.are-total span { font-weight: 700; }
.are-total b { font-family: var(--ar-font-heading); font-size: 22px; white-space: nowrap; color: var(--ar-white); }
.are-disc, .are-note { font-size: 13px; line-height: 1.55; color: var(--ar-muted); }
.are-note { color: var(--ar-ink); }
.are .are-wa { display: block; text-align: center; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--ar-ink); text-decoration: none; border-bottom: 0; }
.are .are-wa:hover { color: var(--ar-accent); }
.are-related { margin-top: 30px; }
.are-rels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.are-rel { display: flex; align-items: center; gap: 14px; padding: 10px; text-align: left; border: 1px solid var(--ar-line); border-radius: 12px; background: var(--ar-white); transition: all var(--ar-transition); }
.are-rel:hover { border-color: var(--ar-accent); box-shadow: var(--are-shadow); }
.are-rel img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.are-rel strong { display: block; font-size: 15px; color: var(--ar-ink); }
.are-rel em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--ar-accent); }

/* step 5: quote form + done */
.are-panel--quote, .are-panel--done { padding: 32px; background: var(--ar-white); border: 1px solid var(--ar-line); border-radius: var(--are-r); box-shadow: var(--are-shadow); }
.are-panel--quote .are-actions { grid-column: auto; }
.are-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; margin-bottom: 16px; }
.are-form textarea { min-height: 110px; resize: vertical; }
.are-field--file input { min-height: 48px; padding: 10px; border: 1px dashed var(--ar-muted); border-radius: 8px; background: var(--ar-surface); font-size: 14px; width: 100%; }
.are-small { font-size: 13px; color: var(--ar-muted); margin-top: 12px !important; }
.are-small a { color: var(--ar-ink); }
.are-error { padding: 12px 14px; border-left: 4px solid var(--ar-alert); background: var(--ar-surface); color: var(--ar-ink); font-weight: 700; }
.are-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.are-panel--done { text-align: center; }
.are-panel--done p { max-width: 56ch; margin-left: auto; margin-right: auto; }
.are-done-mark { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--ar-accent); color: var(--ar-white); font-size: 30px; font-weight: 800; }

/* dark band: keep the widget light so prices stay readable */
.ar-dark .are-steps li { background: color-mix(in srgb, var(--ar-white) 6%, transparent); border-color: var(--ar-line-on-dark); color: var(--ar-text-on-dark); }
.ar-dark .are-steps li.is-on, .ar-dark .are-steps li.is-done { color: var(--ar-white); }

@media (max-width: 1100px) {
	.are-models { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.are-svcs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.are-est { grid-template-columns: 1fr; }
	.are-price { position: static; }
}
@media (max-width: 767px) {
	.are-steps { gap: 6px; }
	.are-steps li { min-width: 0; flex: 1 1 0; padding: 0; height: 36px; font-size: 0; border-radius: 999px; }
	.are-steps li::before { left: 50%; transform: translate(-50%, -50%); width: 26px; height: 26px; font-size: 12px; }
	.are-models { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.are-model-name { font-size: 15px; padding: 10px 8px 12px; }
	.are-panel--year { grid-template-columns: 1fr; padding: 20px; }
	.are-car { grid-row: auto; }
	.are-actions { grid-column: 1; justify-content: stretch; }
	.are-actions .are-btn { flex: 1 1 100%; }
	.are-svcs, .are-rels { grid-template-columns: 1fr; }
	.are-est-main, .are-price, .are-panel--quote, .are-panel--done { padding: 20px; }
	.are-incl, .are-grid { grid-template-columns: 1fr; }
	.are-resume { flex-direction: column; align-items: flex-start; }
}
.are-hint { grid-column: 2; margin: 18px 0 0 !important; font-size: 14px; color: var(--ar-muted); }
@media (max-width: 767px) { .are-hint { grid-column: 1; } }
/* theme list indentation (.entry-content ul) must not reach the widget's lists */
.are ol.are-steps, .are ul.are-lines, .are ul.are-incl { padding-left: 0; margin-left: 0; }
.are ul.are-lines li, .are ul.are-incl li { margin-left: 0; }

/* The theme paints every <button> dark on hover/focus/active (Kadence global button style). The widget's cards, chips
   and link-buttons are <button>s, so pin their own colours for every state. */
.are .are-svc:hover, .are .are-svc:focus, .are .are-svc:active,
.are .are-rel:hover, .are .are-rel:focus, .are .are-rel:active,
.are .are-chip:hover, .are .are-chip:focus, .are .are-chip:active { background: var(--ar-white); color: var(--ar-ink); }
.are .are-svc--unsure:hover, .are .are-svc--unsure:focus, .are .are-svc--unsure:active { background: var(--ar-ink); color: var(--ar-white); }
.are .are-var:hover, .are .are-var:focus, .are .are-var:active { background: var(--ar-white); color: var(--ar-ink); }
.are .are-var.is-on, .are .are-var.is-on:hover, .are .are-var.is-on:focus, .are .are-var.is-on:active { background: var(--ar-ink); color: var(--ar-white); }
.are .are-link:hover, .are .are-link:focus, .are .are-link:active { background: none; box-shadow: none; }
.are .are-svc:focus-visible, .are .are-rel:focus-visible, .are .are-chip:focus-visible, .are .are-var:focus-visible { outline: 3px solid var(--ar-focus); outline-offset: 2px; }
