[data-global-quote-modal] {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s;
}

[data-global-quote-modal].is-open {
  visibility: visible;
  opacity: 1;
}

[data-global-quote-modal] .quote-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 11, .66);
  backdrop-filter: blur(8px);
}

[data-global-quote-modal] .quote-modal-panel {
  position: relative;
  width: min(100%, 47rem);
  max-height: min(48rem, calc(100svh - 2.5rem));
  overflow: auto;
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, .32);
  transform: translateY(1rem) scale(.985);
  transition: transform .42s cubic-bezier(.2, .8, .2, 1);
}

[data-global-quote-modal].is-open .quote-modal-panel {
  transform: translateY(0) scale(1);
}

[data-global-quote-modal] .quote-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid #dedfda;
  border-radius: 50%;
  background: #fff;
  color: #171817;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

[data-global-quote-modal] .quote-modal-close:hover {
  border-color: #f15a24;
  color: #f15a24;
}

[data-global-quote-modal] .quote-modal-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .35rem;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
}

[data-global-quote-modal] .quote-modal-progress span {
  height: 3px;
  background: #dadbd6;
  transition: background .3s ease;
}

[data-global-quote-modal] .quote-modal-progress span.is-active {
  background: #f15a24;
}

[data-global-quote-modal] .quote-step {
  animation: globalQuoteStepIn .32s ease both;
}

[data-global-quote-modal] .quote-step-number {
  margin: 0;
  color: #f15a24;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
}

[data-global-quote-modal] .quote-step h2,
[data-global-quote-modal] .quote-success h2 {
  max-width: none;
  margin: .55rem 0 1rem;
  color: #171817;
  font: 600 clamp(2.35rem, 5vw, 3.8rem)/1.03 "Manrope", sans-serif;
  letter-spacing: -.045em;
}

[data-global-quote-modal] .quote-step > p:not(.quote-step-number),
[data-global-quote-modal] .quote-success p {
  max-width: 39rem;
  margin: 0;
  color: #646660;
  font-size: 1rem;
  line-height: 1.6;
}

[data-global-quote-modal] .quote-service-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  margin: 2rem 0 1.1rem;
  padding: 0;
  border: 0;
}

[data-global-quote-modal] .quote-service-options legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

[data-global-quote-modal] .quote-service-options label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 4.5rem;
  padding: .75rem;
  border: 1px solid #d9dad5;
  border-radius: .55rem;
  background: #fff;
  color: #232421;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

[data-global-quote-modal] .quote-service-options label:hover {
  transform: translateY(-1px);
  border-color: #f15a24;
}

[data-global-quote-modal] .quote-service-options input {
  position: absolute;
  opacity: 0;
}

[data-global-quote-modal] .quote-service-options label:has(input:checked) {
  border-color: #f15a24;
  background: #f15a24;
  color: #fff;
}

[data-global-quote-modal] .quote-service-options input:focus-visible + span {
  outline: 2px solid #171817;
  outline-offset: .35rem;
}

[data-global-quote-modal] .quote-modal-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}

[data-global-quote-modal] .quote-modal-fields label {
  display: grid;
  gap: .45rem;
  color: #353633;
  font-size: .76rem;
  font-weight: 600;
}

[data-global-quote-modal] .quote-modal-fields input,
[data-global-quote-modal] .quote-modal-fields textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: .8rem .9rem;
  border: 1px solid #d7d8d3;
  border-radius: .45rem;
  outline: 0;
  background: #fff;
  color: #171817;
  font: inherit;
  font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

[data-global-quote-modal] .quote-modal-fields textarea {
  min-height: 6.5rem;
  resize: vertical;
}

[data-global-quote-modal] .quote-modal-fields input:focus,
[data-global-quote-modal] .quote-modal-fields textarea:focus {
  border-color: #f15a24;
  box-shadow: 0 0 0 3px rgba(241, 90, 36, .12);
}

[data-global-quote-modal] .quote-photo-upload {
  position: relative;
  min-height: 3.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

[data-global-quote-modal] .quote-photo-upload .file-dropzone {
  min-height: 5.6rem;
  padding: 1rem 1.25rem;
  border: 2px dashed #f15a24;
  border-radius: .75rem;
  background: #fffaf7;
}

[data-global-quote-modal] .quote-photo-upload .file-dropzone:hover {
  border-color: #d94716;
  background: #fff3eb;
}

[data-global-quote-modal] .quote-photo-upload small {
  display: block;
  margin-top: .15rem;
  color: #797b74;
  font-weight: 500;
}

[data-global-quote-modal] .quote-photo-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  opacity: 0;
  cursor: pointer;
}

[data-global-quote-modal] .quote-next,
[data-global-quote-modal] .quote-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.2rem;
  margin-top: 1.45rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: .45rem;
  background: #f15a24;
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

[data-global-quote-modal] .quote-next:hover,
[data-global-quote-modal] .quote-submit:hover {
  background: #d94716;
  transform: translateY(-1px);
}

[data-global-quote-modal] .quote-step-error {
  min-height: 1.1rem;
  margin: .8rem 0 0;
  color: #b42318;
  font-size: .78rem;
  font-weight: 600;
}

[data-global-quote-modal] .quote-field-wide {
  grid-column: 1 / -1;
}

[data-global-quote-modal] .quote-privacy {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin-top: 1.15rem;
  color: #5f615b;
  font-size: .76rem;
  line-height: 1.5;
}

[data-global-quote-modal] .quote-privacy input {
  width: auto;
  min-height: auto;
  margin-top: .14rem;
  accent-color: #f15a24;
}

[data-global-quote-modal] .quote-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

[data-global-quote-modal] .quote-back {
  padding: 0;
  border: 0;
  background: transparent;
  color: #171817;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

[data-global-quote-modal] .quote-success {
  padding: 2rem 0;
  animation: globalQuoteStepIn .32s ease both;
}

[data-global-quote-modal] .quote-success > span {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #f15a24;
  color: #fff;
  font-weight: 800;
}

[data-global-quote-modal] .quote-success .quote-back {
  margin-top: 1.5rem;
  color: #f15a24;
}

body.quote-modal-open {
  overflow: hidden;
}

@keyframes globalQuoteStepIn {
  from { opacity: 0; transform: translateX(.75rem); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 580px) {
  [data-global-quote-modal] { padding: .7rem; }
  [data-global-quote-modal] .quote-modal-panel { max-height: calc(100svh - 1.4rem); padding: 1.25rem; border-radius: .75rem; }
  [data-global-quote-modal] .quote-modal-close { top: .7rem; right: .7rem; }
  [data-global-quote-modal] .quote-modal-progress { margin-bottom: 2rem; }
  [data-global-quote-modal] .quote-service-options { grid-template-columns: 1fr 1fr; margin-top: 1.5rem; }
  [data-global-quote-modal] .quote-service-options label { min-height: 3.8rem; }
  [data-global-quote-modal] .quote-modal-fields { grid-template-columns: 1fr; }
  [data-global-quote-modal] .quote-field-wide { grid-column: auto; }
  [data-global-quote-modal] .quote-step-actions { align-items: stretch; flex-direction: column-reverse; }
  [data-global-quote-modal] .quote-step-actions > * { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  [data-global-quote-modal],
  [data-global-quote-modal] .quote-modal-panel,
  [data-global-quote-modal] .quote-step,
  [data-global-quote-modal] .quote-success { animation: none; transition: none; }
}
