/* Form feedback follows the site's blue / white editorial palette. */
.dialog-is-enhanced[open] { animation: dms-dialog-enter 280ms cubic-bezier(.2,.7,.2,1) both; }
.dialog-is-enhanced[open]::backdrop { animation: dms-backdrop-enter 220ms ease both; }
.dialog-is-enhanced .dialog-close { transition: color .2s, background .2s, transform .2s; }
.dialog-is-enhanced .dialog-close:focus-visible { background: #e9f3fa; color: #0753a2; }
.dialog-is-enhanced .dialog-close:active { transform: scale(.94); }
.service-dialog.dialog-is-enhanced .detail-visual { overflow: hidden; }
.service-dialog.dialog-is-enhanced[open] .detail-visual img { animation: dms-detail-image-enter 700ms cubic-bezier(.2,.7,.2,1) both; }

.quote-progress { margin-top: 24px; }
.quote-progress-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; color: #73899b; font-size: 11px; line-height: 1.5; }
.quote-progress-count { color: #0753a2; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.quote-progress-track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin-top: 10px; }
.quote-progress-track > span { display: block; height: 3px; border-radius: 2px; background: #e4ebf0; transition: background .25s ease; }
.quote-progress-track > .is-filled { background: #6e9dc4; }
.quote-progress.is-complete .quote-progress-track > .is-filled { background: #0753a2; }
#quote-form .form-grid { margin-top: 22px; }
#quote-form .quote-field { position: relative; }
#quote-form .quote-field > span:first-child { padding-right: 22px; transition: color .2s; }
#quote-form .quote-field:focus-within > span:first-child { color: #0753a2; }
#quote-form :is(input,select,textarea) { transition: border-color .2s, box-shadow .2s, background .2s; }
#quote-form :is(input,select,textarea):focus { outline: 2px solid #0753a2; outline-offset: 2px; border-color: #6c97bb; background: #fbfdff; box-shadow: 0 0 0 5px #0753a209; }
#quote-form .is-invalid :is(input,select,textarea):not(:focus) { border-color: #b86148; }
.quote-field-mark { position: absolute; right: 0; top: 1px; color: #0753a2; font-size: 12px; line-height: 16px; opacity: 0; transform: translateY(3px); transition: opacity .2s, transform .2s; pointer-events: none; }
.quote-field.is-complete .quote-field-mark { opacity: 1; transform: none; }
#quote-form .quote-message-count { color: #8a9aaa; font-size: 10px; line-height: 1.2; font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; }
#quote-form > .primary-button { position: relative; overflow: hidden; transition: background .2s, box-shadow .2s, transform .2s; }
#quote-form > .primary-button:active { transform: translateY(1px); }
#quote-form > .primary-button::after { content: ''; width: 18px; height: 18px; flex: 0 0 18px; margin-left: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='1.5'%3E%3Cpath d='M4 16 16 4M4 4h12v12'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
#quote-form > .primary-button > span[aria-hidden] { display: none; }

#quote-result:not([hidden]) { animation: dms-brief-enter 300ms ease both; }
.quote-result-heading { display: flex; align-items: center; gap: 13px; padding: 19px 0 16px; border-top: 1px solid #d9e4ec; }
.quote-result-check { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; background: #eaf3fa; color: #0753a2; border-radius: 50%; font-size: 16px; }
.quote-result-heading h3 { font-size: 16px; line-height: 1.4; font-weight: 550; margin: 0; }
.quote-result-heading p { color: #788fa1; font-size: 11px; line-height: 1.6; margin: 5px 0 0; }
#quote-summary { border-left: 2px solid #83accd; }
.quote-dialog .summary-actions { flex-wrap: wrap; }
.quote-dialog .summary-actions .secondary-button { min-height: 44px; transition: background .2s, border-color .2s, transform .2s; }
.quote-dialog .summary-actions .secondary-button:active { transform: translateY(1px); }

@media (hover: hover) and (pointer: fine) {
  .dialog-is-enhanced .dialog-close:hover { color: #0753a2; background: #e9f3fa; transform: rotate(90deg); }
  #quote-form > .primary-button:hover { box-shadow: 0 5px 18px #0753a21a; }
  #quote-form > .primary-button:hover::after { transform: translate(2px,-2px); }
  .quote-dialog .summary-actions .secondary-button:hover { background: #f1f7fb; border-color: #89aecd; }
}
@media (max-width: 720px) {
  .quote-progress { margin-top: 20px; }
  .quote-progress-header { font-size: 10px; }
  .quote-result-heading { padding-top: 16px; }
  .quote-result-heading h3 { font-size: 15px; }
}
@keyframes dms-dialog-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dms-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes dms-detail-image-enter { from { transform: scale(1.025); } to { transform: scale(1); } }
@keyframes dms-brief-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .dialog-is-enhanced[open], .dialog-is-enhanced[open]::backdrop, .service-dialog.dialog-is-enhanced[open] .detail-visual img, #quote-result:not([hidden]) { animation: none; }
  .dialog-is-enhanced .dialog-close, .quote-progress-track > span, #quote-form .quote-field > span:first-child, #quote-form :is(input,select,textarea), .quote-field-mark, #quote-form > .primary-button, #quote-form > .primary-button::after, .quote-dialog .summary-actions .secondary-button { transition: none; }
  .dialog-is-enhanced .dialog-close:hover, #quote-form > .primary-button:hover::after { transform: none; }
}
