.offerte {
  min-width: 0;
  width: 100%;
  padding: clamp(1.1rem, 2.6vw, 2rem);
  color: var(--ink, #1b2e43);
  background: #fff;
  border: 1px solid var(--line, #dbe4e9);
  border-radius: clamp(1rem, 2vw, 1.5rem);
  box-shadow: 0 14px 40px #10294312;
  scroll-margin-top: 1rem;
}

.quote-header h2 {
  margin: 0 0 .38rem;
  font-size: clamp(1.25rem, 1.85vw, 1.8rem);
  line-height: 1.15;
  color: var(--navy, #102943);
}

.quote-header p {
  margin: 0;
  color: #435970;
}

.quote-header p { font-size: .93rem; line-height: 1.45; }
.quote-progress { margin: .95rem 0 .75rem; }
.offerte .form-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.quote-progress ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .38rem;
  margin: .45rem 0 0;
  padding: 0;
  list-style: none;
}

.quote-progress li {
  display: flex;
  align-items: center;
  gap: .28rem;
  min-height: 34px;
  min-width: 0;
  padding: .24rem .32rem;
  border-radius: .42rem;
  font-size: .75rem;
  font-weight: 650;
  color: #435970;
  background: #edf2f5;
}

.quote-progress li span {
  flex: 0 0 1.19rem;
  display: grid;
  place-items: center;
  width: 1.19rem;
  height: 1.19rem;
  border: 1px solid #9cacbb;
  border-radius: 50%;
  font-size: .66rem;
}

.quote-progress li[aria-current="step"] { background: #fff0e6; color: #893008; }
.quote-progress li[aria-current="step"] span { color: #fff; border-color: var(--orange, #b44413); background: var(--orange, #b44413); }
.quote-progress li.is-complete { color: #fff; background: var(--navy, #102943); }
.quote-progress li.is-complete span { border-color: #a0b0c0; }

.offerte [hidden] { display: none !important; }
.offerte fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.offerte legend { color: var(--navy, #102943); font-weight: 750; font-size: 1rem; margin: 0 0 .45rem; padding: 0; }
.offerte legend:focus { outline: none; }

.quote-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: .55rem;
}

.offerte label {
  display: block;
  margin: 0 0 .64rem;
  color: var(--navy, #102943);
  font-size: .84rem;
  line-height: 1.35;
  font-weight: 680;
}

.offerte input:not([type="hidden"], [type="checkbox"]),
.offerte textarea,
.offerte select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: .22rem 0 0;
  border: 1px solid #a7b6c5;
  border-radius: .55rem;
  color: var(--ink, #1b2e43);
  background: #fff;
  padding: .48rem .56rem;
  font: inherit;
  font-weight: 450;
  font-size: 1rem;
}

.offerte input::placeholder { color: #5d6c7d; opacity: 1; }
.offerte textarea { min-height: 64px; resize: vertical; }
.offerte :is(input, textarea, select)[aria-invalid="true"] { border-color: #b33825; }
.offerte :is(input, textarea, select, button, summary, a):focus-visible { outline: 3px solid #b44413; outline-offset: 2px; }
.offerte .quote-optional { font-size: .74rem; color: #50667b; font-weight: 450; }

.quote-task-list {
  margin: 0 0 .74rem;
  padding: 0 .62rem;
  background: #f4f8fa;
  border: 1px solid var(--line, #dbe4e9);
  border-radius: .6rem;
}

.quote-task-list summary {
  position: relative;
  color: var(--navy, #102943);
  border-radius: .35rem;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 720;
}

.quote-task-count {
  padding: .12rem .3rem;
  margin-inline-start: .34rem;
  border-radius: .35rem;
  color: #fff;
  background: var(--navy, #102943);
}

.quote-tasks { padding: 0 0 .44rem; }
.quote-tasks label {
  display: flex;
  gap: .52rem;
  align-items: center;
  min-height: 44px;
  margin: 0;
  cursor: pointer;
}

.quote-tasks label + label { border-top: 1px solid var(--line, #dbe4e9); }
.quote-tasks input[type="checkbox"] {
  appearance: auto;
  flex: 0 0 auto;
  display: inline-block;
  width: 1.04rem;
  min-height: 0;
  height: 1.04rem;
  margin: 0;
  padding: 0;
  accent-color: var(--navy, #102943);
}

.quote-tasks label span { color: var(--navy, #102943); font-size: .84rem; font-weight: 570; }

.quote-actions {
  display: flex;
  gap: .5rem;
  align-items: stretch;
  margin-top: .84rem;
}

.quote-actions button { min-height: 48px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.quote-actions button:active:not(:disabled) { box-shadow: inset 0 0 0 2px #10294331; }
.quote-actions button:disabled { opacity: .7; cursor: wait; }
.quote-actions .quote-next {
  flex: 1;
  text-align: center;
  justify-content: center;
  border: 1px solid transparent;
}

.quote-back {
  border-radius: .55rem;
  color: var(--navy, #102943);
  background: #fff;
  border: 1px solid #a7b6c5;
  font: inherit;
  font-size: .9rem;
  font-weight: 680;
  padding: .42rem .72rem;
}

.quote-privacy,
.quote-help {
  margin: .62rem 0 0;
  color: #435970;
  line-height: 1.45;
  font-size: .79rem;
}

.quote-help { margin-top: -.2rem; }
.quote-review {
  margin: .72rem 0 0;
  border-radius: .72rem;
  background: #f4f8fa;
  padding: .82rem;
}

.quote-review h3 {
  margin: 0 0 .18rem;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--navy, #102943);
}

.quote-review div + div {
  margin-top: .68rem;
  padding-top: .24rem;
  border-top: 1px solid var(--line, #dbe4e9);
}

.quote-review div > p {
  display: flex;
  gap: .2rem;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  font-size: .8rem;
  font-weight: 700;
}

.quote-review button {
  flex-shrink: 0;
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: .16em;
  color: #893008;
  font: inherit;
  min-height: 44px;
  padding: 0 .12rem;
  cursor: pointer;
}

.quote-review dl {
  display: grid;
  grid-template-columns: minmax(5rem, .78fr) minmax(0, 1.22fr);
  gap: .26rem .4rem;
  margin: 0;
  font-size: .78rem;
}

.quote-review dt { color: #435970; }
.quote-review dd { margin: 0; font-weight: 560; overflow-wrap: anywhere; }
.quote-review dd summary { cursor: pointer; }
.quote-review dd p { white-space: pre-line; }
.offerte label .quote-field-error { display: block; margin: .26rem 0 0; color: #8c271a; font-size: .78rem; font-weight: 620; }

.quote-error {
  margin: .5rem 0 .75rem;
  padding: .64rem .7rem;
  border: 1px solid #e3afa4;
  border-radius: .5rem;
  color: #812416;
  background: #fff0ee;
  font-size: .88rem;
  line-height: 1.36;
}

.quote-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.quote-location.quote-long-place { grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); }

@container (max-width: 290px) {
  .quote-fields:not(.quote-location) { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .quote-location { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .quote-location.quote-long-place { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .quote-location .quote-optional { white-space: nowrap; }
}

.offerte { container-type: inline-size; }

@media (max-width: 410px) {
  .offerte { padding: .96rem; }
  .quote-back { padding-inline: .45rem; }
}
