/* In2Com v217 — calm, accessible validation and a consistently aligned
   Quote Tool heading. Intentionally scoped to #app: admin pages are unchanged. */

/* Keep context, mode switch and heading together instead of letting the old
   desktop floating switch overlap notices and form content. */
body:not(.customer-view) .layout { padding-top: clamp(1.1rem, 2vw, 1.6rem); }
#app .v217-quote-heading { margin: 0 0 .65rem; min-width: 0; }
#app .v217-quote-heading .v214-step-toolbar {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  min-height: 44px;
  margin: 0 0 .75rem;
}
#app .v217-quote-heading .step-count {
  display: block;
  flex: 0 1 auto;
  margin: 0;
  color: #58748b;
  font-size: .81rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: .035em;
  white-space: nowrap;
}
#app .v217-quote-heading .v214-step-toolbar .mode-row {
  position: static;
  float: none;
  inset: auto;
  flex: 0 0 auto;
  z-index: auto;
  max-width: 100%;
  margin: 0;
  padding: 0 .68rem;
  background: #eaf5fb;
  border: 1px solid #c7dfea;
  border-radius: 999px;
  box-shadow: none;
}
#app .v217-quote-heading .v214-step-toolbar .mode-row .switch {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  color: #12304a;
}
#app .v217-quote-heading .v214-step-toolbar .mode-row .switch-label {
  color: #12304a;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
#app .v217-quote-heading .step-title {
  clear: both;
  margin: 0 0 .55rem;
  line-height: 1.14;
  text-wrap: balance;
}
#app .v217-quote-heading + .lede { margin-top: 0; }

/* Keep other serious wizard errors visually consistent, without losing severity. */
#app .notice.error {
  background: #fff;
  color: #913e34;
  border: 1px solid #d6e2eb;
  border-left: 3px solid #b9584a;
  box-shadow: 0 3px 15px rgba(18, 48, 74, .045);
}

/* Errors: use a compact, calm card rather than a large red-filled alert. */
#app .v217-validation {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .8rem .95rem;
  margin: .35rem 0 1.15rem;
  background: #ffffff;
  color: #17344d;
  border: 1px solid #d6e2eb;
  border-left: 3px solid #b9584a;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(18, 48, 74, .045);
  scroll-margin-top: 1.5rem;
}
#app .v217-validation:focus { outline: none; }
#app .v217-validation-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: .04rem;
  border-radius: 50%;
  background: #f8e9e5;
  color: #9a3d30;
  font-size: .9rem;
  font-weight: 800;
}
#app .v217-validation-content { min-width: 0; flex: 1; }
#app .v217-validation-content > strong { display: block; font-size: .94rem; line-height: 1.45; }
#app .v217-validation ul { margin: .15rem 0 0; padding: 0; list-style: none; }
#app .v217-validation li { margin: .2rem 0 0; color: #526a7d; font-size: .92rem; line-height: 1.48; }
#app .v217-validation-jump {
  border: none;
  background: transparent;
  padding: 0;
  color: #20577a;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: #b0c5d4;
  text-underline-offset: .15em;
}
#app .v217-validation-jump:hover { color: #074d7a; text-decoration-color: currentColor; }
#app .v217-validation-jump:focus-visible { outline: 2px solid #087bbd; outline-offset: 3px; border-radius: 3px; }
#app .v217-question-invalid { border-left: 3px solid #c97763; padding-left: .8rem; margin-left: -.8rem; }
#app .v217-field-help-error {
  margin: .45rem 0 .1rem;
  color: #a3473a;
  font-size: .86rem;
  line-height: 1.45;
  font-weight: 600;
}
#app .v217-question-invalid .choice { border-color: #b8cbd9; }
#app .v217-question-invalid .choice:focus-within { border-color: #087bbd; }

@media (max-width: 600px) {
  #app .v217-quote-heading .v214-step-toolbar { gap: .4rem; margin-bottom: .85rem; }
  #app .v217-quote-heading .v214-step-toolbar .mode-row { padding: 0 .47rem; }
  #app .v217-quote-heading .v214-step-toolbar .mode-row .switch-label { font-size: .76rem; }
  #app .v217-quote-heading .step-count { font-size: .78rem; }
  #app .v217-validation { padding: .75rem .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  #app .v217-validation, #app .v217-quote-heading * { transition-duration: 0s !important; }
}
@media print { #app .v217-quote-heading .mode-row { display: none; } }
