/* =====================================================================================================
   REMAINING STOREFRONT PAGES (CHG-031): forgot / reset password, resend confirmation, Contact Us, signed-out page, plain text CMS pages
   (privacy policy, enable cookies, training videos, not-approved notice) and the 404 page. No design file exists for them: they follow the
   login page (bluesprings-login.css) - cream page, serif title, one white rounded card, 50px inputs, navy pill buttons. CSS only.
   The service pages with their own designed content (cleaning, installation, ...) are NOT touched.
   ===================================================================================================== */
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .customer-account-logoutsuccess, .contact-index-index, .cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route),
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .customer-account-logoutsuccess, .contact-index-index, .cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route) .page-wrapper { background: var(--bs-cream); color: var(--bs-ink); font-family: var(--bs-font-text); }

body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .customer-account-logoutsuccess, .contact-index-index, .cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route) .page-main { max-width: 1488px; width: 100%; box-sizing: border-box; margin: 0 auto; padding: 28px 24px 96px !important; display: flex; flex-direction: column; gap: 24px; align-items: center; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .customer-account-logoutsuccess, .contact-index-index, .cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route) .page-main > a#contentarea { display: none; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .customer-account-logoutsuccess, .contact-index-index, .cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route) .page-main > .page.messages { width: 100%; max-width: 860px; margin: 0; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .customer-account-logoutsuccess, .contact-index-index, .cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route) .page-main > .page.messages:not(:has(.message)) { display: none; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .customer-account-logoutsuccess, .contact-index-index, .cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route) .page-main > .columns { width: 100%; max-width: 860px; margin: 0; padding: 0; float: none; display: block; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .customer-account-logoutsuccess, .contact-index-index, .cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route) .columns > .column.main { width: 100%; max-width: none; margin: 0; padding: 0; float: none; box-sizing: border-box; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .customer-account-logoutsuccess, .contact-index-index, .cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route) .column.main > input[name="form_key"],
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .customer-account-logoutsuccess, .contact-index-index, .cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route) .column.main > #authenticationPopup { display: none; }
/* 404 page: the old "compare / wish list" side boxes are not wanted */
body.cms-no-route .columns > .sidebar { display: none !important; }

/* title */
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .customer-account-logoutsuccess, .contact-index-index, .cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route) .page-main > .page-title-wrapper { width: 100% !important; max-width: 860px; margin: 0 !important; padding: 0 !important; text-align: left; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .customer-account-logoutsuccess, .contact-index-index, .cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route) .page-title-wrapper .page-title { margin: 0; padding: 0; font-family: var(--bs-font-display); font-weight: 500; font-size: clamp(34px, 3.2vw, 48px); letter-spacing: -0.02em; line-height: normal; text-align: left; text-transform: none; color: var(--bs-ink); }
/* a page whose only heading is inside the content (404) */
body.cms-no-route .page-main > .page-title-wrapper:not(:has(.page-title)) { display: none; }

/* white card around the form / text */
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation) .column.main > form.form { width: 100%; max-width: 560px; margin: 0; padding: clamp(24px, 3vw, 40px); background: #FFFFFF; border-radius: 28px; float: none; }
body.contact-index-index .column.main > #contact-container { width: 100%; max-width: 560px; margin: 0; padding: clamp(24px, 3vw, 40px) !important; background: #FFFFFF; border-radius: 28px; float: none; }
body.contact-index-index #contact-container .contact-form-wrap { width: 100%; padding: 0; margin: 0; float: none; max-width: none; }
body.contact-index-index #contact-container > .contact-form-wrap ~ * { display: none; }
body.contact-index-index #contact-container::before, body.contact-index-index #contact-container::after { content: none; display: none; }
/* text pages: the CMS content sits in one card */
body:is(.cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route, .customer-account-logoutsuccess) .columns > .column.main { background: #FFFFFF; border-radius: 28px; padding: clamp(24px, 3vw, 40px); }

/* form fields (same as the login page) */
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form fieldset::before, body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form fieldset::after { content: none; display: none; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form fieldset > br { display: none; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form .field { margin: 0; padding: 0; width: auto; float: none; display: flex; flex-direction: column; gap: 6px; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form .field::before, body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form .field::after { content: none; display: none; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form .field.note { font-size: 15px; line-height: 1.5; color: var(--bs-ink-2); text-align: left !important; padding: 0 !important; margin: 0 !important; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form .field > label.label { display: block; float: none; width: auto; margin: 0; padding: 0; text-align: left; font-size: 14px; font-weight: 600; line-height: normal; color: var(--bs-ink); }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form .field.required > label.label span::after { content: none !important; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form .field > .control { margin: 0; padding: 0; width: auto; float: none; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form input.input-text { width: 100%; height: 50px; box-sizing: border-box; margin: 0; border: 1px solid #CFC7BA; border-radius: 12px; padding: 0 14px; background: #FBFAF7; font-family: var(--bs-font-text); font-size: 16px; color: var(--bs-ink); box-shadow: none; }
body.contact-index-index form.form textarea.input-text { width: 100%; height: auto; min-height: 130px; box-sizing: border-box; margin: 0; border: 1px solid #CFC7BA; border-radius: 12px; padding: 12px 14px; background: #FBFAF7; font-family: var(--bs-font-text); font-size: 16px; line-height: 1.4; color: var(--bs-ink); box-shadow: none; resize: vertical; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form :is(input.input-text, textarea.input-text):focus { border-color: var(--bs-navy); outline: 2px solid rgba(30, 58, 95, 0.25); outline-offset: 0; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form div.mage-error { margin: 0; font-size: 13px; color: #B42318; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form :is(input, textarea).mage-error { border-color: #B42318; }
body.contact-index-index form.form legend.legend { float: none; width: auto; margin: 0 0 4px; padding: 0; border: 0; font-family: var(--bs-font-display); font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: normal; text-transform: none; color: var(--bs-ink); }
body.contact-index-index form.form legend.legend span { font: inherit; color: inherit; text-transform: none; }
body.customer-account-createpassword form.form .field.password .control, body.customer-account-createpassword form.form .field.confirm .control { position: relative; }
body.customer-account-createpassword #password-strength-meter-container { font-size: 13px; color: var(--bs-muted); margin-top: 6px; }

/* buttons: navy pill, "Go back" link beside it */
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form .actions-toolbar { margin: 20px 0 0; padding: 0; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form .actions-toolbar::before, body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form .actions-toolbar::after { content: none; display: none; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form .actions-toolbar > .primary, body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form .actions-toolbar > .secondary { margin: 0; padding: 0; float: none; width: auto !important; text-align: left; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form button.action.primary { height: 52px; width: auto !important; border: 0; border-radius: 999px; padding: 0 28px; background: var(--bs-navy); color: #FFFFFF; font-family: var(--bs-font-text); font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: normal; line-height: normal; cursor: pointer; box-shadow: none; margin: 0; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form button.action.primary:hover { background: #17304F; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form button.action.primary span { font: inherit; color: inherit; text-transform: none; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form a.action.back, body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form a.action.back span { display: inline-block; font-family: var(--bs-font-text); font-size: 14px; font-weight: 600; text-decoration: none !important; text-transform: none; letter-spacing: normal; color: var(--bs-navy); background: none; border: 0 !important; box-shadow: none !important; padding: 0; margin: 0; }
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form a.action.back:hover, body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) form.form a.action.back:hover span { color: var(--bs-rust); }

/* text pages */
body:is(.cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route, .customer-account-logoutsuccess) .column.main { font-size: 16px; line-height: 1.6; color: var(--bs-ink-2); text-align: left; }
body:is(.cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route, .customer-account-logoutsuccess) .column.main :is(h1, h2, h3, h4, dt) { font-family: var(--bs-font-display); font-weight: 500; line-height: 1.2; letter-spacing: normal; text-transform: none; color: var(--bs-ink); margin: 28px 0 10px; }
body:is(.cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route, .customer-account-logoutsuccess) .column.main :is(h1, h2) { font-size: 26px; }
body:is(.cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route, .customer-account-logoutsuccess) .column.main :is(h3, h4, dt) { font-size: 20px; }
body:is(.cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route, .customer-account-logoutsuccess) .column.main > :is(h1, h2, h3, dl, p):first-child, body:is(.cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route, .customer-account-logoutsuccess) .column.main > dl:first-of-type dt:first-child { margin-top: 0; }
body:is(.cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route, .customer-account-logoutsuccess) .column.main :is(p, dd, li) { font-size: 16px; line-height: 1.6; color: var(--bs-ink-2); margin: 0 0 12px; }
body:is(.cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route, .customer-account-logoutsuccess) .column.main :is(ul, ol) { margin: 0 0 14px; padding-left: 22px; }
body:is(.cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route, .customer-account-logoutsuccess) .column.main dd { margin-left: 0; }
body:is(.cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route, .customer-account-logoutsuccess) .column.main a { color: var(--bs-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
body:is(.cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route, .customer-account-logoutsuccess) .column.main a:hover { color: var(--bs-rust); }
body:is(.cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route, .customer-account-logoutsuccess) .column.main :is(table) { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
body:is(.cms-privacy-policy-cookie-restriction-mode, .cms-enable-cookies, .cms-training-videos, .cms-mpcustomerapproval-not-approved, .cms-no-route, .customer-account-logoutsuccess) .column.main :is(th, td) { border: 1px solid #ECE6DC; padding: 8px 10px; text-align: left; }
body.cms-training-videos .column.main iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 16px; margin: 0 0 16px; }
body.cms-training-videos .column.main p:has(iframe) { margin: 0; }

/* messages (success / error) on these pages */
body:is(.customer-account-forgotpassword, .customer-account-createpassword, .customer-account-confirmation, .contact-index-index) .page.messages .message { margin: 0; padding: 14px 18px; border-radius: 14px; font-size: 15px; line-height: 1.4; }

/* contact: the parent theme gives the form its own card - the white container is the card now */
body.contact-index-index form.form.contact { background: none; box-shadow: none; border: 0; border-radius: 0; padding: 0; margin: 0; width: 100%; max-width: none; }
/* 404: definition titles are plain lead-in lines, not headings */
body.cms-no-route .column.main dt { font-size: 20px; font-weight: 500; }
