/* Match the home palette in both configurator and request summary. */
body {
  background: #ffffff;
}

.quote-configurator {
  --quote-text: #051b28;
  --quote-muted: #526575;
  --quote-line: #dce5eb;
  --quote-panel: #f5f7f9;
  --quote-accent: #a8470b;
  --quote-selected: #fff4ec;
  background: #ffffff;
  color: var(--quote-text);
  font-size: 16px;
  line-height: 1.6;
  color-scheme: light;
}

.quote-configurator .quote-hero-bg {
  display: none;
}

.quote-configurator :is(h1, h2, h3, strong, dd) {
  color: var(--quote-text);
}

.quote-configurator :is(h1, h2, h3) {
  font-family: var(--ydea-font-sans);
  font-weight: 800;
}

.quote-configurator :is(p, .service-category span, .privacy-check span, .summary-dl dt) {
  color: var(--quote-muted);
}

.quote-configurator :is(.urgent-check small, .material-custom-hint, .file-preview) {
  color: var(--quote-muted);
  font-size: 14px;
}

.quote-configurator :is(.privacy-check span, .summary-dl dt) {
  font-size: 14px;
}

.quote-configurator :is(.quote-submit, .quote-edit-button) {
  font-size: 16px;
  font-weight: 750;
}

.quote-configurator :is(.quote-hero-content > span, .quote-hero-copy > span, .form-field > label, .quantity-row > span, .summary-label, .summary-processes small, .summary-metric small, .contact-details dt) {
  color: var(--quote-accent);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.quote-configurator .quote-stepper::before {
  background: var(--quote-line);
}

.quote-configurator .quote-stepper strong {
  background: var(--quote-panel);
  border-color: var(--quote-line);
  color: var(--quote-muted);
}

.quote-configurator .quote-stepper span {
  color: var(--quote-muted);
  font-size: 13px;
}

.quote-configurator .quote-stepper .is-active strong {
  background: #ff914d;
  color: var(--quote-text);
  border-color: #ff914d;
  box-shadow: none;
}

.quote-configurator .quote-stepper .is-active span {
  color: var(--quote-accent);
  font-weight: 800;
}

.quote-configurator :is(.quote-glass, .summary-card, .service-category, .service-choice) {
  background: #ffffff;
  border-color: var(--quote-line);
  box-shadow: 0 4px 18px rgba(5, 27, 40, 0.04);
}

.quote-configurator .service-category::before,
.quote-configurator .service-choice::before,
.quote-configurator .service-choice::after {
  content: none;
}

.quote-configurator :is(.service-category.is-active, .service-choice.is-active, .service-category:hover, .service-choice:hover) {
  background: var(--quote-selected);
  border-color: #ff914d;
  box-shadow: inset 0 0 0 1px #ff914d;
}

.quote-configurator :is(.service-category.is-active span, .service-choice.is-active p) {
  color: var(--quote-muted);
}

.quote-configurator :is(.service-category strong, .service-choice strong) {
  font-size: 20px;
  font-weight: 800;
}

.quote-configurator .service-choice em {
  background: var(--quote-selected);
  color: var(--quote-accent);
}

.quote-configurator .service-choice.is-active em {
  background: #ff914d;
  color: var(--quote-text);
  box-shadow: none;
}

.quote-configurator .form-field :is(input, select, textarea),
.quote-configurator .quantity-control :is(input, button) {
  background: #ffffff;
  color: var(--quote-text);
  border-color: #b9cbd6;
  font-size: 16px;
  color-scheme: light;
}

.quote-configurator .form-field :is(input, select, textarea)::placeholder {
  color: var(--quote-muted);
  opacity: 1;
}

.quote-configurator .form-field select option {
  background: #ffffff;
  color: var(--quote-text);
}

.quote-configurator .form-field select option:checked {
  background: var(--quote-selected);
  color: var(--quote-text);
}

.quote-configurator .form-field select:disabled {
  background: var(--quote-panel);
  color: var(--quote-muted);
  opacity: 1;
}

.quote-configurator :is(.post-process-field, .contact-card, .quantity-row, .summary-processes) {
  background: var(--quote-panel);
  border-color: var(--quote-line);
  color: var(--quote-text);
  box-shadow: none;
}

.quote-configurator :is(.post-process-grid label, .urgent-check, .privacy-check, .contact-details div) {
  background: #ffffff;
  color: var(--quote-text);
  border-color: var(--quote-line);
}

.quote-configurator .post-process-grid span {
  color: var(--quote-text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.quote-configurator .post-process-grid span::before {
  background: #ffffff;
}

.quote-configurator .post-process-grid input:checked + span::before {
  background: #ff914d;
}

.quote-configurator :is(.post-process-grid label, .urgent-check, .privacy-check):has(input:checked) {
  background: var(--quote-selected);
  border-color: #ff914d;
  box-shadow: none;
}

.quote-configurator :is(.color-field-hint, .contact-details dd) {
  color: var(--quote-text);
  font-size: 15px;
}

.quote-configurator .quote-upload {
  background: #ffffff;
  border-color: #b9cbd6;
}

.quote-configurator .quote-upload strong {
  font-size: 18px;
}

.quote-configurator .quote-review {
  background: #ffffff;
  border-color: #ff914d;
  border-left-width: 4px;
}

.quote-configurator .quote-review strong {
  font-size: 20px;
}

.quote-configurator :is(.quote-review p, .summary-dl dd) {
  color: var(--quote-text);
  font-size: 16px;
  font-weight: 650;
}

.quote-configurator .summary-top-grid {
  border-color: #ff914d;
}

.quote-configurator .summary-card::before {
  background: #ff914d;
}

.quote-configurator :is(.summary-dl div, .summary-process-list li, .summary-top-grid section + section) {
  border-color: var(--quote-line);
}

.quote-configurator :is(.summary-dl dd, .summary-file strong, .contact-details dd) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.quote-configurator :is(.summary-metric, .summary-file) {
  background: #ffffff;
  border-color: var(--quote-line);
}

.quote-configurator .summary-metric {
  border-left: 4px solid #ff914d;
}

.quote-configurator .summary-metric strong {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
}

.quote-configurator :is(#preview-service-name, #preview-material, #preview-technology) {
  font-weight: 800;
}

.quote-configurator .summary-file small {
  margin-top: 8px;
  color: var(--quote-muted);
  font-family: var(--ydea-font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.quote-configurator .summary-process-list li {
  color: var(--quote-text);
  font-weight: 650;
}

.quote-configurator :is(.summary-hint, .quote-edit-button) {
  background: var(--quote-selected);
  color: var(--quote-accent);
  border-color: #f3c5a6;
  font-size: 15px;
}

.quote-configurator :is(.material-custom-hint-link, .privacy-check a) {
  color: var(--quote-accent);
  text-decoration: underline;
}

.quote-configurator button:focus-visible,
.quote-configurator .form-field :is(input, select, textarea):focus-visible {
  outline: 3px solid #0097b2;
  outline-offset: 3px;
}

.quote-configurator .quote-message.is-error {
  background: #fff1f2;
  border-color: #fda4af;
  color: #9f1239;
}

.quote-configurator .quote-message.is-success {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

@media (max-width: 1100px) {
  .quote-configurator .summary-layout {
    grid-template-columns: 1fr;
  }
}

/* Keep the working form in view instead of using presentation-sized blocks. */
.quote-configurator .quote-hero {
  min-height: 0;
  padding: 20px 20px 16px;
}

.quote-configurator .quote-hero-content {
  width: 100%;
  max-width: 1440px;
}

.quote-configurator .quote-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px 20px;
  text-align: left;
}

.quote-configurator .quote-hero-copy > span {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 11px;
}

.quote-configurator .quote-hero h1 {
  grid-column: 1;
  margin: 0;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.2;
}

.quote-configurator .quote-hero p {
  grid-column: 1;
  max-width: none;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.quote-configurator :is(.quote-builder, .quote-summary-page) {
  width: calc(100% - 40px);
  max-width: 1440px;
  padding-bottom: 32px;
}

.quote-configurator .quote-stepper {
  width: min(560px, calc(100% - 40px));
  margin-bottom: 18px;
}

.quote-configurator .quote-stepper::before {
  top: 14px;
}

.quote-configurator .quote-stepper div {
  gap: 4px;
}

.quote-configurator .quote-stepper strong {
  width: 28px;
  height: 28px;
  font-size: 13px;
}

.quote-configurator .quote-stepper span {
  font-size: 11px;
}

.quote-configurator .quote-section {
  margin-bottom: 18px;
}

.quote-configurator :is(.quote-glass, .summary-card) {
  padding: 18px;
}

.quote-configurator .quote-section-title {
  gap: 10px;
  margin-bottom: 12px;
}

.quote-configurator .quote-section-title span {
  width: 48px;
  height: 48px;
}

.quote-configurator .quote-section-title h2 {
  font-size: 18px;
}

.quote-configurator :is(.service-category-grid, .service-choice-grid) {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quote-configurator .service-category {
  min-height: 80px;
  padding: 12px 14px 16px;
}

.quote-configurator .service-category strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.quote-configurator .service-category span {
  font-size: 13px;
  line-height: 1.35;
}

.quote-configurator .service-category::after {
  left: 14px;
  bottom: 8px;
  height: 2px;
}

.quote-configurator .service-flow-line {
  --flow-left: calc(16.666% - 24px);
  height: 12px;
  margin-bottom: 8px;
}

.quote-configurator .service-flow-line__track,
.quote-configurator .service-flow-line__active {
  top: 6px;
}

.quote-configurator .service-flow-line__active {
  top: 4px;
  width: 48px;
  height: 6px;
  transition: left 0.24s ease;
}

.quote-configurator .service-choice {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-content: center;
  align-items: start;
  gap: 4px 10px;
  min-height: 112px;
  padding: 12px;
  text-align: left;
}

.quote-configurator .service-icon {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: center;
  width: 64px;
  height: 64px;
  margin: 0;
}

.quote-configurator .service-choice strong {
  grid-column: 2;
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.quote-configurator .service-choice p {
  grid-column: 2;
  min-height: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.quote-configurator .service-choice em {
  grid-column: 2;
  justify-self: start;
  min-height: 22px;
  padding: 0 8px;
  font-size: 10px;
}

.quote-configurator .service-choice.is-active {
  transform: none;
}

.quote-configurator :is(.quote-config-grid, .quote-details-grid) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.quote-configurator :is(.config-stack, .quote-details-grid .quote-section) {
  gap: 12px;
}

.quote-configurator .form-field {
  gap: 6px;
}

.quote-configurator .form-field > label {
  font-size: 13px;
}

.quote-configurator .form-field :is(input, select, textarea) {
  min-height: 42px;
  padding: 9px 12px;
}

.quote-configurator .form-field textarea {
  height: 86px;
}

.quote-configurator .post-process-field {
  padding: 12px;
}

.quote-configurator .post-process-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quote-configurator .post-process-grid label {
  min-height: 54px;
  padding: 8px 10px;
}

.quote-configurator .post-process-grid label::before {
  width: 72px;
  height: 72px;
  opacity: 0.28;
}

.quote-configurator .post-process-grid span {
  padding-left: 28px;
  font-size: 11.5px;
  line-height: 1.35;
  letter-spacing: 0;
}

.quote-configurator .color-grid {
  min-height: 36px;
  gap: 10px;
}

.quote-configurator .color-swatch {
  width: 36px;
  height: 36px;
}

.quote-configurator .quote-upload {
  grid-template-columns: 48px minmax(0, 1fr);
  justify-items: start;
  gap: 4px 14px;
  padding: 16px;
  text-align: left;
}

.quote-configurator .quote-upload span {
  grid-row: 1 / span 2;
  align-self: center;
  width: 48px;
  height: 48px;
}

/* The source PNGs have wide transparent margins around each drawing. */
.quote-configurator :is(.service-icon, .quote-section-title span, .quote-upload span) {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.quote-configurator :is(.service-icon img, .quote-section-title img, .quote-upload span img) {
  flex: 0 0 auto;
  width: 190%;
  height: 190%;
  max-width: none;
}

.quote-configurator .quote-upload strong {
  font-size: 15px;
}

.quote-configurator .quote-upload p {
  margin: 0;
  font-size: 13px;
}

.quote-configurator :is(.contact-card, .quantity-row, .quote-review) {
  padding: 12px;
}

.quote-configurator .contact-card strong {
  margin-bottom: 10px;
}

.quote-configurator .contact-details {
  gap: 6px;
}

.quote-configurator .contact-details div {
  grid-template-columns: minmax(max-content, 0.4fr) minmax(0, 1fr);
  gap: 10px;
  padding: 8px 10px;
}

.quote-configurator :is(.contact-details dt, .contact-details dd) {
  font-size: 13px;
}

.quote-configurator .quote-review strong {
  font-size: 17px;
}

.quote-configurator :is(.summary-layout, .summary-main, .summary-top-grid) {
  gap: 16px;
}

.quote-configurator .quote-summary-page {
  padding-top: 8px;
}

.quote-configurator .summary-card h3 {
  margin-top: 10px;
  font-size: 22px;
}

.quote-configurator :is(.summary-metric, .summary-processes, .summary-file) {
  padding: 12px;
}

@media (max-width: 640px) {
  /* Leave more room for the form and let the header scroll with the page. */
  .page-template-page-preventivo .site-header {
    position: relative;
  }

  .page-template-page-preventivo .header-inner {
    width: calc(100% - 24px);
    min-height: 0;
    gap: 6px;
    padding: 6px 0;
  }

  .page-template-page-preventivo .logo-link {
    --header-logo-size: 32px;
    --header-wordmark-size: 24px;
    gap: 8px;
  }

  .page-template-page-preventivo .brand-text {
    gap: 3px;
  }

  .page-template-page-preventivo .brand-text span {
    font-size: 8px;
  }

  .page-template-page-preventivo .main-nav {
    width: 100%;
    gap: 4px;
  }

  .page-template-page-preventivo .main-nav > a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 5px !important;
    font-size: 11px;
  }

  .page-template-page-preventivo .main-nav > a[hidden] {
    display: none;
  }

  .page-template-page-preventivo .language-switcher {
    gap: 2px;
    padding: 2px;
  }

  .page-template-page-preventivo .language-switcher a {
    min-width: 26px;
    min-height: 26px;
    padding: 0 5px;
    font-size: 10px;
  }

  .page-template-page-preventivo .user-avatar-button {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .quote-configurator .quote-hero {
    padding: 12px 12px 10px;
  }

  .quote-configurator .quote-hero-copy {
    display: grid;
    gap: 4px;
  }

  .quote-configurator .quote-hero-copy > span {
    font-size: 10px;
  }

  .quote-configurator .quote-hero-copy-config > span {
    display: none;
  }

  .quote-configurator .quote-hero h1 {
    margin: 0;
    font-size: 21px;
    line-height: 1.15;
  }

  .quote-configurator .quote-hero p {
    font-size: 12px;
    line-height: 1.35;
  }

  .quote-configurator :is(.quote-builder, .quote-stepper, .quote-summary-page) {
    width: calc(100% - 24px);
  }

  .quote-configurator .quote-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
  }

  .quote-configurator .quote-stepper::before {
    content: none;
  }

  .quote-configurator .quote-stepper div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
  }

  .quote-configurator .quote-stepper strong {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    font-size: 12px;
  }

  .quote-configurator .quote-stepper span {
    font-size: 10px;
  }

  .quote-configurator .quote-section {
    margin-bottom: 12px;
  }

  .quote-configurator :is(.quote-glass, .summary-card) {
    padding: 12px;
  }

  .quote-configurator .quote-section-title {
    gap: 8px;
    margin-bottom: 8px;
  }

  .quote-configurator .quote-section-title span {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .quote-configurator .quote-section-title h2 {
    font-size: 16px;
    line-height: 1.25;
  }

  .quote-configurator .service-category-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.3fr);
    gap: 6px;
  }

  .quote-configurator .service-category {
    min-height: 64px;
    padding: 8px 6px 14px;
    text-align: center;
  }

  .quote-configurator .service-category strong {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .quote-configurator .service-category span {
    display: none;
  }

  .quote-configurator .service-category::after {
    left: 50%;
    bottom: 6px;
    width: 24px;
    transform: translateX(-50%);
  }

  .quote-configurator :is(.service-choice-grid, .quote-config-grid, .quote-details-grid) {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quote-configurator .service-choice {
    min-height: 74px;
    padding: 8px;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 2px 8px;
  }

  .quote-configurator .service-icon {
    grid-row: 1 / span 2;
    width: 56px;
    height: 56px;
  }

  .quote-configurator .service-choice.is-active .service-icon {
    grid-row: 1 / span 3;
  }

  .quote-configurator .service-choice strong {
    font-size: 14px;
    line-height: 1.2;
  }

  .quote-configurator .service-choice p {
    font-size: 12px;
    line-height: 1.3;
  }

  .quote-configurator .service-choice:not(.is-active) :is(p, em) {
    display: none;
  }

  .quote-configurator .quote-config-grid > .config-stack:first-child {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .quote-configurator .form-field {
    min-width: 0;
    gap: 4px;
  }

  .quote-configurator .form-field > label {
    font-size: 11.5px;
    line-height: 1.3;
  }

  .quote-configurator .quote-config-grid :is(.color-field, .form-field:has(.material-custom-hint:not([hidden]))) {
    grid-column: 1 / -1;
  }

  .quote-configurator .config-stack:has(.technology-field:not([hidden])) > .form-field:has(#quote-material) {
    grid-column: 1 / -1;
  }

  .quote-configurator .form-field :is(input, select) {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px;
  }

  .quote-configurator .color-field-hint {
    margin: 0;
    font-size: 13px;
  }

  .quote-configurator .color-grid {
    min-height: 0;
  }

  .quote-configurator :is(.color-grid p, .post-process-field > p, .material-custom-hint) {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
  }

  .quote-configurator .post-process-field {
    padding: 10px;
  }

  .quote-configurator .post-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .quote-configurator .post-process-grid label {
    min-height: 44px;
    padding: 8px;
  }

  .quote-configurator .post-process-grid label:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .quote-configurator .post-process-grid span {
    padding-left: 24px;
  }

  .quote-configurator .quote-upload {
    padding: 10px;
    gap: 4px 8px;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .quote-configurator .quote-upload span {
    width: 40px;
    height: 40px;
  }

  .quote-configurator .quote-upload strong {
    font-size: 14px;
    line-height: 1.3;
  }

  .quote-configurator .quote-upload p {
    font-size: 12px;
    line-height: 1.4;
  }

  .quote-configurator .quantity-row {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .quote-configurator .quantity-control {
    gap: 4px;
  }

  .quote-configurator .quantity-control :is(input, button) {
    min-height: 44px;
  }

  .quote-configurator .quantity-control button {
    width: 44px;
  }

  .quote-configurator .contact-details div {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 6px;
    padding: 6px 8px;
  }

  .quote-configurator .contact-details div:has(#quote-contact-billing, #quote-contact-shipping) {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .quote-configurator .contact-details dd {
    text-align: left;
  }

  .quote-configurator .summary-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .quote-configurator :is(.summary-layout, .summary-main, .summary-top-grid) {
    gap: 12px;
  }

  .quote-configurator .summary-top-grid section + section {
    padding-top: 12px;
  }

  .quote-configurator :is(.summary-card h3, .summary-metric strong) {
    font-size: 20px;
  }

  .quote-configurator .summary-card p {
    font-size: 13px;
    line-height: 1.4;
  }

  .quote-configurator .summary-dl {
    gap: 0;
    margin-top: 8px;
  }

  .quote-configurator .summary-processes {
    margin-top: 12px;
  }

  .quote-configurator .summary-process-list li {
    padding: 6px 0 6px 14px;
    font-size: 13px;
  }

  .quote-configurator :is(.summary-label, .summary-metric small, .summary-processes small, .summary-dl dt) {
    font-size: 12px;
  }

  .quote-configurator .summary-dl div {
    flex-direction: row;
    gap: 10px;
    padding: 8px 0;
  }

  .quote-configurator .summary-dl dd {
    max-width: 65%;
    font-size: 14px;
    text-align: right;
  }
}
