/* Shared feedback surface. Checkout and page-level calculators retain their styles. */
.form-wrapper .cb-modal.wf-modal {
    width: min(94vw, 1160px);
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 26px 32px;
    border-radius: 16px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: #7893a7 #eef3f7;
    scrollbar-width: thin;
}
.wf-modal .cb-frame { min-width: 0; }
.wf-modal .cb-panel-head, .wf-modal .so-head { margin: 0 0 24px; padding: 0 54px 0 0; text-align: left; }
.wf-modal .cb-panel-head .ttl, .wf-modal .so-title { font-size: 28px; line-height: 1.2; text-transform: none; text-wrap: balance; margin: 0; }
.wf-modal .cb-panel-head .sub, .wf-modal .so-sub { font-size: 15px; line-height: 1.45; margin: 8px 0 0; max-width: 74ch; }
.wf-modal .so-kicker { display: none; }
.wf-modal .cont.form { width: 100%; margin: 0; padding: 0; }
.wf-modal .cb-close { z-index: 5; }
.wf-form, .form-wrapper form.wf-form { display: block; width: 100%; min-width: 0; margin: 0; }
.wf-form *, .wf-form *::before, .wf-form *::after { box-sizing: border-box; }
.wf-form [hidden] { display: none !important; }
.wf-form ::selection { color: #fff; background: #1a5f8f; }
.wf-form :is(input, textarea) { caret-color: #1a5f8f; }
.wf-form :is(a, button, input, textarea, select):focus-visible { outline: 3px solid #1f8ecc; outline-offset: 3px; }
.wf-form :is(input, textarea)::placeholder { color: #626e7b; opacity: 1; }
.wf-form .wf-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; }
.wf-form :is(.wf-params, .wf-contacts) { min-width: 0; text-align: left; }
.wf-form .wf-contacts { padding-left: 32px; border-left: 1px solid #dce3e9; }
.wf-form .wf-section-title { font-size: 19px; font-weight: 700; line-height: 1.35; margin: 0 0 16px; color: #2d3440; }
.wf-form :is(.wf-field, .so-field, .form-block) { display: block; min-width: 0; width: 100%; margin: 0 0 14px; padding: 0; }
.wf-form :is(.wf-field > span:first-child, .wf-label, .sb-form-label, .so-label) { display: block; margin: 0 0 6px; color: #2d3440; font-size: 14px; line-height: 1.4; font-weight: 600; }
.wf-form :is(.wf-field input, .wf-field select, .wf-field textarea, .wf-unit-control input) {
    width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px;
    border: 1px solid #c8d0d8; border-radius: 8px; background: #f5f7fa; color: #2d3440;
    font-family: inherit; font-size: 16px; line-height: 1.4; box-shadow: none;
}
.wf-form :is(.so-field input, .so-field select, .sb-form-label + input, .cb-select__trigger) { min-height: 50px; font-size: 16px; }
.wf-form textarea, .form-wrapper .wf-form textarea { min-height: 76px; height: 76px; font-size: 16px; }
.wf-form .so-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.wf-form .so-group { display: block; margin: 0 0 14px; padding: 0; }
.wf-form .so-choice { margin: 12px 0; padding: 0; border: 0; }
.wf-form .so-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.wf-form .so-chip { min-width: 0; flex: 0 1 auto; }
.wf-form .so-chip > span { min-height: 44px; padding: 10px 12px; font-size: 13px; line-height: 1.35; white-space: normal; }
.wf-form .wf-dimensions { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.wf-form .wf-size-row { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); align-items: end; gap: 8px; }
.wf-form .wf-axis { min-width: 0; display: block; margin: 0; }
.wf-form .wf-axis > span:first-child { display: block; margin: 0 0 6px; color: #465464; font-size: 13px; line-height: 1.4; }
.wf-form .wf-axis:nth-child(5) { grid-column: 1 / 2; margin-top: 3px; }
.wf-form .wf-times:nth-child(4) { display: none; }
.wf-form .wf-unit-control { position: relative; display: block; }
.wf-form .wf-unit-control input { padding-right: 42px; font-variant-numeric: tabular-nums; }
.wf-form .wf-unit { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); font-size: 15px; color: #465464; pointer-events: none; }
.wf-form .wf-times { padding-bottom: 13px; font-size: 22px; text-align: center; color: #465464; }
.wf-form :is(.wf-hint, .wf-note, .wf-file small) { display: block; font-size: 12px; line-height: 1.5; color: #526170; margin: 8px 0 12px; }
.wf-form .wf-note a { color: #1a5f8f; text-underline-offset: 3px; }
.wf-form .wf-unknown { display: flex; gap: 9px; align-items: flex-start; margin: 8px 0 0; color: #465464; font-size: 13px; line-height: 1.45; cursor: pointer; }
.wf-form .wf-unknown input { appearance: auto; flex: 0 0 20px; width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: #1a5f8f; opacity: 1; position: static; }
.wf-form .wf-unit-control input:disabled { color: #687481; background: #edf1f4; cursor: not-allowed; }
.wf-form .wf-intro { font-size: 17px; line-height: 1.65; color: #526170; max-width: 36ch; margin: 0; }
#service-order-wrapper .wf-form .so-quote { margin: 16px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid #dce3e9; border-radius: 0; background: transparent; }
#service-order-wrapper .wf-form .so-quote h4 { margin: 0 0 8px; font-size: 17px; }
#service-order-wrapper .wf-form .so-quote p { margin: 8px 0; font-size: 12px; line-height: 1.45; }
#service-order-wrapper .wf-form .so-quote [data-so-total] { font-size: 17px; color: #1a5f8f; font-weight: 700; }
.wf-form .wf-quote-details { font-size: 12px; }
.wf-form .wf-quote-details summary { cursor: pointer; color: #1a5f8f; min-height: 32px; padding: 6px 0; }
.wf-form .wf-quote-details dl { overflow-wrap: anywhere; }
.wf-form .so-requote { padding: 8px 12px; min-height: 36px; font-size: 12px; }
.wf-form .wf-recap { margin-top: 16px; padding-top: 14px; border-top: 1px solid #dce3e9; font-size: 14px; line-height: 1.5; }
.wf-form.so-form .wf-recap { margin: 0; padding: 0; border: 0; }
.wf-form .wf-summary { margin: 8px 0; overflow-wrap: anywhere; }
.wf-form .wf-file input { font-size: 13px; padding: 8px; height: auto; }
.wf-form .wf-file input::file-selector-button { min-height: 34px; padding: 6px 10px; border: 0; border-radius: 5px; color: #1a5f8f; background: #e3edf5; font: inherit; cursor: pointer; margin-right: 8px; }
.wf-form .wf-footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 36%); align-items: center; gap: 14px 28px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #dce3e9; }
.wf-form .wf-footer .form-block, .wf-form .so-agree { margin: 0; }
.wf-form .wf-footer :is(.cb-submit, .so-submit) { width: 100%; min-height: 52px; margin: 0; padding: 13px 20px; text-transform: none; font-size: 17px; line-height: 1.4; border-radius: 8px; }
.wf-form .wf-footer :is(.agree-check, .so-agree) { font-size: 12px; line-height: 1.5; }
.wf-form :is(.wf-error, .wf-field-error) { grid-column: 1 / -1; margin: 8px 0 0; color: #a61f43; font-size: 13px; line-height: 1.45; }
.wf-form [aria-invalid="true"] { border-color: #a61f43; }
.wf-form :is(.wf-step-nav, .wf-next, .wf-edit) { display: none; }
@media (min-width: 768px) and (max-height: 780px) {
    .form-wrapper .cb-modal.wf-modal { padding: 22px 28px; }
    .wf-modal .cb-panel-head, .wf-modal .so-head { margin-bottom: 18px; }
    .wf-form .wf-footer { margin-top: 16px; padding-top: 14px; }
    .wf-form .wf-section-title { margin-bottom: 12px; }
}
@media (max-width: 767px) {
    .form-wrapper .cb-modal.wf-modal { width: calc(100vw - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); padding: 22px 18px; margin: 0; border-radius: 16px; }
    .wf-modal .cb-panel-head, .wf-modal .so-head { padding-right: 44px; margin-bottom: 16px; }
    .wf-modal .cb-panel-head .ttl, .wf-modal .so-title { font-size: 22px; line-height: 1.25; }
    .wf-modal .cb-panel-head .sub, .wf-modal .so-sub { font-size: 13px; }
    .wf-modal .cb-close { width: 36px; height: 36px; top: 0; right: 0; }
    .wf-form .wf-layout { display: block; }
    .wf-form .wf-contacts { padding: 0; border: 0; }
    .wf-form .wf-section-title { font-size: 17px; margin-bottom: 14px; }
    .wf-form.wf-short .wf-params { display: none; }
    .wf-form.wf-long .wf-step-nav { display: flex; min-height: 40px; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
    .wf-form .wf-step-text { font-size: 12px; line-height: 1.45; color: #1a5f8f; margin-left: auto; }
    .wf-form :is(.wf-back, .wf-edit) { border: 0; padding: 8px 0; min-height: 40px; background: transparent; color: #1a5f8f; font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
    .wf-form .wf-edit { display: inline-block; }
    .wf-form .wf-footer { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 14px; margin-top: 16px; }
    .wf-form.wf-long:not(.wf-step-two) .wf-footer > :not(.wf-next):not(.wf-error) { display: none; }
    .wf-form.wf-long:not(.wf-step-two) .wf-next { display: block; min-height: 52px; padding: 12px 18px; border: 0; border-radius: 8px; background: #1a5f8f; color: #fff; font: inherit; font-size: 16px; cursor: pointer; }
    .wf-form .wf-next:hover { background: #154f78; }
    .wf-form .wf-size-row { gap: 6px; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); }
    .wf-form .wf-axis:nth-child(5) { grid-column: 1 / -1; max-width: 58%; }
    .wf-form .so-file-btn { min-height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
    .wf-modal, .wf-form *, .wf-form *::before, .wf-form *::after { scroll-behavior: auto; transition: none; animation: none; }
}

#service-order-wrapper .wf-form .so-quote dl { font-size: 12px; gap: 4px 10px; margin: 8px 0; }

/* Keep the ordinary laptop composition within one view. */
@media (min-width: 768px) {
    .wf-form .wf-size-row:has(.wf-axis:nth-child(5)) { grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr); }
    .wf-form .wf-size-row:has(.wf-axis:nth-child(5)) .wf-times:nth-child(4) { display: block; }
    .wf-form .wf-size-row:has(.wf-axis:nth-child(5)) .wf-axis:nth-child(5) { grid-column: auto; margin: 0; }
}
#service-order-wrapper .wf-form [data-so-quote-status][data-state="ready"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 767px) {
    .form-wrapper .wf-modal .so-sub { display: none; }
    #service-order-wrapper .wf-form textarea { min-height: 64px; height: 64px; }
    #service-order-wrapper .wf-form .so-quote { margin-top: 12px; padding-top: 12px; }
    .form-wrapper .wf-modal .wf-form .wf-section-title { margin-bottom: 12px; }
    .form-wrapper .wf-modal .wf-form .wf-footer { position: sticky; bottom: -22px; z-index: 3; background: #fff; padding-bottom: 12px; }
    .form-wrapper .wf-modal { scroll-padding-bottom: 132px; }
}

@media (min-width: 768px) {
    .wf-form .wf-extras[data-wf-profile="cards"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
    .wf-form .wf-extras[data-wf-profile="cards"] > :is(.wf-note, .wf-dimensions) { grid-column: 1 / -1; }
    .wf-form .wf-extras[data-wf-profile="cards"] > :is(.wf-field, .wf-note, .wf-dimensions) { margin: 0; }
}
@media (min-width: 1024px) and (max-height: 780px) {
    #service-order-wrapper .wf-form .so-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* Inline delivery leads stay one column inside their existing page panel. */
.wf-form.wf-inline .wf-layout { display: block; }
.wf-form.wf-inline.wf-short .wf-params { display: none; }
.wf-form.wf-inline .wf-contacts { padding: 0; border: 0; }
.wf-form.wf-inline .wf-footer { grid-template-columns: minmax(0, 1fr); }
