/* Ward's Web Requests — "Your details" step and confirmation page.
   Self-contained: works on Storefront, the child theme, or a block theme. */

:root {
	--wards-red: #b91c1c; --wards-red-dark: #991b1b; --wards-red-tint: #fef2f2;
	--wards-ink: #111827; --wards-ink-2: #374151; --wards-muted: #6b7280;
	--wards-line: #e5e7eb; --wards-bg: #f4f5f7; --wards-card: #fff;
	--wards-green: #16a34a; --wards-green-tint: #f0fdf4; --wards-amber-tint: #fffbeb; --wards-amber-line: #fde68a;
	--wards-radius: 10px; --wards-shadow: 0 1px 2px rgba(17,24,39,.04);
}
body.wards-request-page, body.wards-request-page .site-content { background: var(--wards-bg); }
body.wards-request-page { overflow-x: hidden; }
body.wards-request-page .content-area, body.wards-request-page .site-main { width: 100%; float: none; margin-right: 0; }
body.wards-request-page .col-full { max-width: 1280px; }
body.wards-request-page .entry-header, body.wards-request-page .woocommerce-breadcrumb + .entry-header { display: none; }

/* Breakout: the app must render at its designed width even when the theme
   keeps the checkout page in a narrow content column (measured live: the
   column squeezed the app to ~670px and the summary covered the cards).
   Width is viewport-based and the left margin centers the app on the page
   container, so this holds regardless of the wrapping theme markup. */
.wards-rq { font-size: 16px; color: var(--wards-ink); width: min(1280px, calc(100vw - 32px)); max-width: 1280px; margin-left: calc(50% - min(640px, (100vw - 32px) / 2)); margin-right: 0; padding: 0 16px; }
.wards-rq *, .wards-rq *::before, .wards-rq *::after { box-sizing: border-box; }
.wards-rq__intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin: 1.25rem 0 1.5rem; }
.wards-rq__title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .4rem; color: var(--wards-ink); }
.wards-rq__sub { margin: 0; font-size: 1.1rem; color: var(--wards-muted); max-width: 640px; }

.wards-steps { list-style: none; margin: 0; padding: 0; display: flex; }
.wards-steps__item { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 130px; margin: 0; font-size: .95rem; color: var(--wards-muted); }
.wards-steps__item::before { content: ""; position: absolute; top: 18px; left: 50%; width: 100%; height: 2px; background: var(--wards-line); }
.wards-steps__item:last-child::before { display: none; }
.wards-steps__num { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; background: #e9eaee; color: var(--wards-muted); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: .4rem; text-decoration: none; }
.wards-steps__item.is-active .wards-steps__num { background: var(--wards-red); color: #fff; }
.wards-steps__item.is-active .wards-steps__label { color: var(--wards-red); font-weight: 600; }
.wards-steps__item.is-done .wards-steps__num { background: var(--wards-green); color: #fff; }
.wards-steps__item.is-done::before { background: var(--wards-green); }

.wards-rq__layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1.5rem; align-items: start; }
.wards-rq__main { min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.wards-rq__side { position: sticky; top: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }

.wards-card, .wards-step { background: var(--wards-card); border: 1px solid var(--wards-line); border-radius: var(--wards-radius); box-shadow: var(--wards-shadow); }
.wards-card__head { display: flex; align-items: center; gap: .9rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--wards-line); }
.wards-card__title { margin: 0; font-size: 1.35rem; font-weight: 700; }
.wards-rq__body { padding: 1rem 1.5rem 1.25rem; }

/* Steps */
.wards-step.is-locked { opacity: .45; }
.wards-step__head { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.5rem; }
.wards-step__num { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--wards-red); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.wards-step.is-locked .wards-step__num { background: #e9eaee; color: var(--wards-muted); }
.wards-step.is-done .wards-step__num { background: var(--wards-green); }
.wards-step__title { margin: .2rem 0 .15rem; font-size: 1.3rem; font-weight: 700; }
.wards-step__sub { margin: 0; color: var(--wards-muted); font-size: .98rem; }
.wards-step__body { padding: 0 1.5rem 1.5rem 4.6rem; }

/* Option cards */
.wards-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: .75rem; }
@media (max-width: 900px) { .wards-opts { grid-template-columns: minmax(0, 1fr); } }
.wards-opt { display: flex; align-items: center; gap: .9rem; text-align: left; padding: 1rem 1.1rem; border: 1px solid var(--wards-line); border-radius: var(--wards-radius); background: #fff; cursor: pointer; font: inherit; color: var(--wards-ink); transition: border-color .15s, background .15s, box-shadow .15s; min-width: 0; width: 100%; }
.wards-opt:hover { border-color: #cbd0d8; }
.wards-opt.is-selected { border-color: var(--wards-red); background: var(--wards-red-tint); box-shadow: 0 0 0 1px var(--wards-red); }
.wards-opt.is-disabled { opacity: .55; cursor: not-allowed; }
.wards-opt__radio { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #9ca3af; position: relative; background: #fff; }
.wards-opt__radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--wards-red); transform: scale(0); transition: transform .12s; }
.wards-opt.is-selected .wards-opt__radio { border-color: var(--wards-red); }
.wards-opt.is-selected .wards-opt__radio::after { transform: scale(1); }
.wards-opt__text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; flex: 1 1 auto; }
.wards-opt__title { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.wards-opt__sub { color: var(--wards-muted); font-size: .92rem; }
.wards-opt__price { flex: 0 0 auto; max-width: 38%; text-align: right; font-weight: 700; font-size: .95rem; line-height: 1.25; }
.wards-opt.is-selected .wards-opt__price { color: var(--wards-red); }

/* Forms */
.wards-form { display: flex; flex-direction: column; gap: .9rem; margin-top: .5rem; }
.wards-form--login { max-width: 420px; padding: 1rem; border: 1px dashed var(--wards-line); border-radius: var(--wards-radius); }
.wards-form__row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .25rem; }
.wards-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.wards-grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .9rem; }
.wards-field { display: flex; flex-direction: column; gap: .3rem; }
.wards-field__label { font-size: .92rem; font-weight: 600; color: var(--wards-ink-2); }
.wards-field__hint { font-size: .85rem; color: var(--wards-muted); }
.wards-field__error { font-size: .88rem; color: var(--wards-red-dark); font-weight: 600; }
.wards-field.has-error .wards-input { border-color: var(--wards-red); box-shadow: 0 0 0 1px var(--wards-red); }
.wards-input, .wards-rq input.wards-input, .wards-rq select.wards-select, .wards-rq textarea.wards-input { width: 100%; padding: .7rem .85rem; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; font: inherit; font-size: 1rem; color: var(--wards-ink); box-shadow: none; min-height: 46px; }
.wards-input:focus { outline: 2px solid var(--wards-red); outline-offset: 1px; border-color: var(--wards-red); }
.wards-check { display: flex; align-items: flex-start; gap: .6rem; font-size: .98rem; cursor: pointer; }
.wards-check input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--wards-red); flex: 0 0 auto; }
.wards-check.has-error { color: var(--wards-red-dark); }
.wards-banner { background: var(--wards-amber-tint); border: 1px solid var(--wards-amber-line); border-radius: 8px; padding: .75rem 1rem; font-size: .95rem; }
.wards-alert { border-radius: 8px; padding: .8rem 1rem; font-size: .95rem; }
.wards-alert--warn { background: var(--wards-amber-tint); border: 1px solid var(--wards-amber-line); }
.wards-alert--error { background: var(--wards-red-tint); border: 1px solid #fecaca; color: var(--wards-red-dark); }
.wards-muted { color: var(--wards-muted); font-size: .95rem; }
.wards-link { background: none; border: 0; padding: 0; color: var(--wards-red); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.wards-welcome, .wards-done { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; background: var(--wards-green-tint); border: 1px solid #bbf7d0; border-radius: 8px; flex-wrap: wrap; min-width: 0; }
.wards-welcome > div, .wards-done > div { flex: 1 1 200px; min-width: 0; overflow-wrap: break-word; }
.wards-welcome > .wards-link, .wards-done > .wards-link { flex: 0 0 auto; white-space: nowrap; }
.wards-done--inline { background: #fafafa; border-color: var(--wards-line); }
.wards-chips { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .25rem 0 .75rem; }
.wards-chip { font: inherit; font-size: .95rem; padding: .5rem .85rem; border: 1px solid #d1d5db; border-radius: 999px; background: #fff; cursor: pointer; color: var(--wards-ink); }
.wards-chip.is-selected { border-color: var(--wards-red); background: var(--wards-red-tint); color: var(--wards-red-dark); font-weight: 600; }
.wards-chip--lg { border-radius: 10px; padding: .7rem 1rem; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; min-width: 150px; }
.wards-chip--lg small { color: var(--wards-muted); font-weight: 400; }
.wards-days { display: flex; gap: .6rem; flex-wrap: wrap; align-items: stretch; margin-bottom: 1rem; }
.wards-days .wards-select { width: auto; min-width: 220px; }
/* Interactive calendar day picker (v0.1.12) */
.wards-cal { flex: 1 1 100%; border: 1px solid #e3e5e8; border-radius: 12px; padding: .8rem; background: #fff; }
.wards-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .55rem; }
.wards-cal__title { font-weight: 700; font-size: 1.05rem; color: var(--wards-ink); }
.wards-cal__nav { font: inherit; font-size: 1.3rem; line-height: 1; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #d1d5db; background: #fff; color: var(--wards-ink); cursor: pointer; padding: 0; }
.wards-cal__nav:disabled { opacity: .25; cursor: default; }
.wards-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wards-cal__dow { text-align: center; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--wards-muted); padding: .2rem 0; }
.wards-cal__day { font: inherit; font-weight: 600; height: 46px; border: 1px solid #e3e5e8; border-radius: 10px; background: #f6f7f8; color: var(--wards-ink); cursor: pointer; padding: 0; }
.wards-cal__day.is-today { border-color: var(--wards-red); }
.wards-cal__day.is-selected { background: var(--wards-red); border-color: var(--wards-red-dark); color: #fff; }
.wards-cal__off { height: 46px; display: flex; align-items: center; justify-content: center; color: #c6cad0; }
.wards-quote { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--wards-red); background: var(--wards-red-tint); border-radius: var(--wards-radius); margin-top: .75rem; }
.wards-quote__price { font-size: 1.4rem; font-weight: 800; white-space: nowrap; color: var(--wards-red); }
.wards-review { margin: 0 0 1rem; padding: 0; }
.wards-review__row { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--wards-line); margin: 0; }
.wards-review__row dt { color: var(--wards-muted); font-weight: 500; margin: 0; }
.wards-review__row dd { margin: 0; font-weight: 500; }
.wards-note { display: flex; align-items: flex-start; gap: .5rem; margin: .5rem 0 0; font-size: .95rem; color: var(--wards-muted); }
.wards-note__icon { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: #e5e7eb; color: var(--wards-ink-2); font-size: .72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: .1rem; }

/* Buttons */
.wards-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.35rem; border-radius: 8px; font: inherit; font-weight: 700; font-size: 1.02rem; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.wards-btn--primary, .wards-rq .wards-btn--primary { background: var(--wards-red); color: #fff; }
.wards-btn--primary:hover { background: var(--wards-red-dark); color: #fff; }
.wards-btn--primary:disabled { opacity: .6; cursor: default; }
.wards-btn--lg { width: 100%; padding: 1.05rem; font-size: 1.15rem; }
.wards-btn--ghost { background: #fff; border-color: #d1d5db; color: var(--wards-ink-2); width: 100%; margin-top: .5rem; }
.wards-summary .wards-btn { width: 100%; margin: .25rem 0; }

/* Summary */
.wards-summary__items { list-style: none; margin: 0; padding: .75rem 1.5rem 0; }
.wards-summary__items li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; font-size: .95rem; }
.wards-summary__items em { font-style: normal; color: var(--wards-muted); }
.wards-summary__lines { margin: 0; padding: .5rem 1.5rem 0; }
.wards-summary__line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0; margin: 0; }
.wards-summary__line dt { font-weight: 400; color: var(--wards-ink-2); margin: 0; float: none; width: auto; }
.wards-summary__line dd { margin: 0; font-weight: 600; text-align: right; }
.wards-summary__line--total { border-top: 1px solid var(--wards-line); margin-top: .4rem; padding-top: 1rem; }
.wards-summary__line--total dt { font-size: 1.2rem; font-weight: 700; color: var(--wards-ink); }
.wards-summary__line--total dd { font-size: 1.7rem; font-weight: 800; }
.wards-summary__line--total dd small { display: block; font-size: .8rem; font-weight: 400; color: var(--wards-muted); }
.wards-summary__basis { margin: 0; padding: 0 1.5rem 1rem; font-size: .9rem; color: var(--wards-muted); }
.wards-summary > .wards-link, .wards-summary > .wards-btn { margin: 0 1.5rem 1.25rem; display: inline-block; }
.wards-help { display: flex; gap: 1.25rem; padding: 1.5rem; }
.wards-help__title { margin: 0 0 .3rem; font-size: 1.1rem; font-weight: 700; }
.wards-help__text { margin: 0 0 .6rem; color: var(--wards-muted); font-size: .98rem; }
.wards-help__link { color: var(--wards-red); font-weight: 600; text-decoration: underline; }

/* Confirmation */
.wards-next { list-style: none; margin: 0; padding: 1rem 1.5rem; counter-reset: n; }
.wards-next li { display: grid; grid-template-columns: 34px 1fr; gap: .25rem .9rem; padding: .6rem 0; counter-increment: n; align-items: start; }
.wards-next li::before { content: counter(n); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--wards-red); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.wards-next li span { color: var(--wards-muted); font-size: .95rem; }
.wards-line { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.wards-line em { font-style: normal; color: var(--wards-muted); }
.wards-rq--done .wards-note { padding: 0 1.5rem 1.25rem; }
.wards-rq--empty { text-align: center; padding: 3rem 1rem; }

@media (max-width: 1024px) { .wards-rq__layout { grid-template-columns: minmax(0, 1fr); } .wards-rq__side { position: static; } .wards-step__body { padding: 0 1.5rem 1.5rem; } }
@media (max-width: 768px) {
	.wards-rq__intro { flex-direction: column; align-items: flex-start; }
	.wards-steps__item { min-width: 100px; font-size: .85rem; }
	.wards-opts, .wards-grid-2, .wards-grid-3 { grid-template-columns: 1fr; }
	.wards-step__body { padding: 0 1.1rem 1.25rem; }
	.wards-step__head { padding: 1rem 1.1rem; }
	.wards-review__row { grid-template-columns: 1fr; gap: .15rem; }
	.wards-days .wards-select { width: 100%; }
}

/* Confirmation buttons + account page */
.wards-rq--done .wards-card > .wards-btn { display: flex; margin: .35rem 1.5rem; width: auto; }
.wards-rq--done .wards-card > .wards-btn--ghost { margin-bottom: 1.25rem; }
.wards-check > span.wards-check__text { display: inline; }
.wards-check a { color: var(--wards-red); text-decoration: underline; }
.wards-account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0 1.5rem; }
.wards-account-stat { background: #fff; border: 1px solid var(--wards-line); border-radius: var(--wards-radius); padding: 1rem 1.25rem; }
.wards-account-stat strong { display: block; font-size: 1.8rem; line-height: 1.1; }
.wards-account-stat span { color: var(--wards-muted); font-size: .92rem; }
@media (max-width: 640px) { .wards-account-stats { grid-template-columns: 1fr; } }

/* Google Places suggestions must float above the flow and theme chrome. */
.pac-container { z-index: 100000 !important; font-family: inherit; }

/* Legal overlay (terms / privacy) — opens on top of checkout. */
.wards-modal { position: fixed; inset: 0; background: rgba(20, 22, 26, .55); z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.wards-modal__box { background: #fff; border-radius: 14px; width: 100%; max-width: 840px; height: min(86vh, 920px); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.wards-modal__head { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid #e5e7eb; }
.wards-modal__title { font-size: 16px; }
.wards-modal__spacer { flex: 1; }
.wards-modal__newtab { font-size: 13px; }
.wards-modal__close { border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; padding: 2px 6px; color: #374151; }
.wards-modal__frame { flex: 1; width: 100%; border: 0; }
