/**
 * The governed Contact / Request a Quote form.
 *
 * ONE stylesheet for the ONE quote form, wherever it is rendered: the two tabs on the Contact page,
 * and the item-specific form embedded on each quote-only detail page. It was extracted from the
 * Contact template's scoped style block so that embedding the form elsewhere could never mean
 * copying its CSS, which is how two forms quietly drift apart.
 *
 * It styles only the markup the plugin's ce_pe_quote_form_render() emits, plus the Contact page's
 * radio-driven tabs. It adds no form behaviour and no JavaScript.
 *
 * Approved breakpoints only: 640, 768, 1024, 1280. DDR-001 tokens only. No em dashes.
 */

/* Native intake form (rendered by the plugin) in the live form language: rounded inputs,
   sentence-case labels. */
.ce-quote-form__row { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; }
.ce-quote-form__row label { font-size: 0.82rem; font-weight: var(--ce-fw-semibold); letter-spacing: 0.03em; color: var(--ce-color-text); }
.ce-quote-form__row input, .ce-quote-form__row select, .ce-quote-form__row textarea { width: 100%; padding: 12px 14px; border: 1.5px solid rgba(28, 26, 23, 0.15); border-radius: var(--ce-radius-btn); font: inherit; font-size: 0.92rem; color: var(--ce-color-text); background: var(--ce-color-bg-page); outline: none; transition: border-color var(--ce-transition); }
.ce-quote-form__row input:focus, .ce-quote-form__row select:focus, .ce-quote-form__row textarea:focus { border-color: var(--ce-color-rust); }
.ce-quote-form__row textarea { resize: vertical; min-height: 130px; }
.ce-quote-form__context { background: var(--ce-rust-pale); border-left: 3px solid var(--ce-color-rust); border-radius: 0 var(--ce-radius-btn) var(--ce-radius-btn) 0; padding: 10px 14px; font-size: 0.9rem; margin: 0 0 20px; }
.ce-req { color: var(--ce-color-rust); }

/* A product locked by the page it is embedded on. Presented as a stated fact the customer can
   read and confirm, not as a field to fill in. The server never trusts this input. */
.ce-quote-form__row--locked input { background: var(--ce-color-bg-cream); color: var(--ce-color-text); font-weight: var(--ce-fw-semibold); cursor: default; }

/* Optional artwork. Kept deliberately light: one field, one hint line, no upload furniture,
   so the quote form does not become visually heavy. */
.ce-quote-form__opt { font-size: 0.72rem; font-weight: var(--ce-fw-medium); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ce-color-text-muted); margin-left: 8px; }
.ce-quote-form__artwork input[type="file"] { padding: 10px 12px; font-size: 0.86rem; background: var(--ce-color-bg-cream); cursor: pointer; }
.ce-quote-form__artwork input[type="file"]::file-selector-button { font: inherit; font-size: 0.78rem; font-weight: var(--ce-fw-bold); letter-spacing: 0.04em; color: var(--ce-color-text); background: var(--ce-color-bg-page); border: 1px solid rgba(28, 26, 23, 0.3); border-radius: var(--ce-radius-pill); padding: 7px 14px; margin-right: 12px; cursor: pointer; }
.ce-quote-form__artwork input[type="file"]::file-selector-button:hover { background: var(--ce-color-rust); border-color: var(--ce-color-rust); color: var(--ce-color-bg-page); }
.ce-quote-form__hint { font-size: 0.8rem; line-height: 1.6; color: var(--ce-color-text-muted); }
.ce-quote-form__hint a { color: var(--ce-color-rust); text-decoration: underline; }
.ce-quote-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ce-quote-form__actions { margin: 8px 0 0; }

/* Two-column field grid on wider forms; single column on small screens. */
.ce-quote-form__grid { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
.ce-quote-form__row--wide { grid-column: 1 / -1; }
.ce-quote-form__row--full { grid-column: 1 / -1; }
.ce-quote-form__actions .ce-btn, .ce-quote-form__actions button { width: 100%; justify-content: center; padding: 15px; }

/* Submission result, shown next to the form the customer used. */
.ce-quote-note { padding: 14px 16px; margin: 0 0 20px; font-size: 0.93rem; border-radius: var(--ce-radius-btn); }
.ce-quote-note--ok { background: rgba(46, 120, 64, 0.10); border: 1px solid rgba(46, 120, 64, 0.35); }
.ce-quote-note--err { background: rgba(140, 56, 32, 0.10); border: 1px solid rgba(140, 56, 32, 0.35); }
.ce-quote-note a { color: var(--ce-color-rust); font-weight: var(--ce-fw-semibold); text-decoration: underline; }

/* Owner-approved two tabs on one page (Contact only). Radio inputs drive the panels, so no
   JavaScript is needed and the tabs stay keyboard operable. */
.ce-tabs__radio { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.ce-tabs__nav { display: flex; gap: 6px; border-bottom: 1px solid var(--ce-color-border); margin: 0 0 26px; }
.ce-tabs__tab { cursor: pointer; font-size: 0.86rem; font-weight: var(--ce-fw-bold); letter-spacing: 0.02em; color: var(--ce-color-text-mid); padding: 12px 18px; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--ce-transition), border-color var(--ce-transition); }
.ce-tabs__tab:hover { color: var(--ce-color-rust); }
.ce-tabs__panel { display: none; }
#ce-tab-general:checked ~ .ce-tabs__nav label[for="ce-tab-general"],
#ce-tab-quote:checked ~ .ce-tabs__nav label[for="ce-tab-quote"] { color: var(--ce-color-rust); border-bottom-color: var(--ce-color-rust); }
#ce-tab-general:checked ~ .ce-tabs__panel--general,
#ce-tab-quote:checked ~ .ce-tabs__panel--quote { display: block; }
.ce-tabs__radio:focus-visible ~ .ce-tabs__nav label { outline: 2px solid var(--ce-color-rust); outline-offset: 3px; }

@media (min-width: 768px) {
	.ce-quote-form__grid { grid-template-columns: 1fr 1fr; }
	.ce-quote-form__actions .ce-btn, .ce-quote-form__actions button { width: auto; min-width: 240px; }
}
