#quote-dialog {
  --q-ink: #183b32;
  width: min(30rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: clamp(18px, 4.5vw, 32px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff9ed;
  color: var(--q-ink);
  border: 1px solid #a08d73;
  border-radius: 16px;
}
body:has(#quote-dialog[open]) { overflow: hidden }
#quote-dialog [hidden] { display: none }
#quote-dialog::backdrop { background: rgb(13 32 26 / 78%) }
#quote-dialog h2 { font-size: clamp(1.85rem, 6vw, 2.55rem); line-height: 1.08; margin: .55rem 0 1.25rem; color: var(--q-ink) }
#quote-dialog h2:focus { outline: none }
#quote-dialog p { margin: .55rem 0 .9rem; font-size: .95rem; line-height: 1.45 }
#quote-dialog p:empty { margin: 0 }
#quote-dialog button, #quote-dialog a { font: inherit; cursor: pointer }
#quote-dialog button { min-height: 44px; color: inherit }
.q-head, .q-footer, .q-count, .q-count > div:last-child { display: flex; align-items: center; justify-content: space-between; gap: .45rem }
#quote-progress { color: #75442f; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; font-size: .74rem }
#quote-close, .q-count button { min-width: 44px; border: 1px solid #b8aa94; border-radius: 50%; background: transparent }
#quote-dialog #quote-close { font-size: 1.5rem; line-height: 1 }
#quote-dialog label { display: block; color: var(--q-ink); font: inherit; font-weight: 650; margin: 0 }
.q-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem }
#quote-dialog input, #quote-dialog textarea { box-sizing: border-box; width: 100%; min-width: 0; min-height: 46px; margin: .4rem 0; padding: .65rem; border: 1px solid #948670; border-radius: 6px; background: #fffdf7; color: #17392f; font: inherit; font-size: 16px }
#quote-dialog textarea { resize: vertical; line-height: 1.4 }
#quote-dialog .q-primary { width: 100%; margin-top: 1rem; border: none; border-radius: 24px; background: #194638; color: white; font-weight: 700 }
#quote-dialog .q-secondary, #quote-back { border: 0; background: transparent; text-decoration: underline; text-underline-offset: .18em }
.q-secondary { width: 100% }
.q-footer { border-top: 1px solid #cdbfa7; margin-top: .9rem; padding-top: .45rem; flex-wrap: wrap }
.q-footer a { display: inline-flex; min-height: 44px; align-items: center; color: #294d3f; text-decoration: underline; text-underline-offset: .18em }
.q-count { padding: .5rem 0; border-bottom: 1px solid #d8cbb5 }
.q-count small { display: block; color: #536454 }
.q-count output { min-width: 1.45rem; text-align: center }
.q-count button:disabled { opacity: .45; cursor: default }
.q-chips { display: flex; flex-wrap: wrap; gap: .5rem }
#quote-dialog .q-chip { padding: .4rem .85rem; border-radius: 24px; background: transparent; border: 1px solid #9d8f78 }
#quote-dialog .q-chip[aria-pressed=true] { color: white; background: #245540; border-color: #245540 }
#quote-note-label { padding-top: .6rem }
.q-privacy { margin-top: .85rem; font-size: .86rem }
.q-privacy summary { cursor: pointer }
@media (max-width: 360px) { .q-dates { grid-template-columns: 1fr } }

/* One calendar keeps both ends of a stay within the available width. */
#quote-dialog .q-dates {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; border:1px solid #ae9d84; border-radius:12px; overflow:hidden}
#quote-dialog .q-dates button {min-width:0; padding:.5rem .75rem; text-align:start; background:transparent; border:0; border-radius:0; line-height:1.25}
#quote-dialog .q-dates button + button {border-inline-start:1px solid #ae9d84}
#quote-dialog .q-dates button[aria-pressed=true] {background:#e7ecdf; box-shadow:inset 0 -3px #245440}
#quote-dialog .q-dates button:disabled {opacity:1; color:#616458; cursor:default}
.q-dates small, .q-dates strong {display:block}
.q-dates small {font-size:.77rem}
.q-dates strong {margin-top:.15rem; font-size:1rem}
#q-calendar {touch-action:pan-y pinch-zoom}
.q-month-bar {display:flex; align-items:center; justify-content:space-between; margin-top:.45rem}
.q-month-bar strong::first-letter {text-transform:uppercase}
#quote-dialog .q-month-bar button {width:44px; border:0; border-radius:50%; background:transparent; font-size:1.55rem}
#quote-dialog .q-month-bar button:disabled {opacity:.28; cursor:default}
.q-week,.q-days {display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); text-align:center}
.q-week span {font-size:.76rem; color:#536454; padding:.15rem 0; text-transform:capitalize}
#quote-dialog .q-days button {min-width:0; min-height:44px; padding:0; border:0; border-radius:12px; background:transparent; font-variant-numeric:tabular-nums}
#quote-dialog .q-days button:disabled {color:#817b70; cursor:default}
#quote-dialog .q-days .in-range {background:#e3eadb; border-radius:0}
#quote-dialog .q-days button[aria-pressed=true] {background:#204c3c; color:white; font-weight:700}
#quote-dialog .q-days [aria-current=date] {text-decoration:underline; text-underline-offset:4px}
#quote-dialog button:focus-visible {outline:2px solid #944e32; outline-offset:-3px}
#quote-dialog .q-primary:disabled {background:#e0dfd2; color:#51584d; cursor:default}
#quote-dialog #quote-nights {margin:.45rem 0 0; text-align:center}
#quote-dialog [data-step="0"] .q-primary {margin-top:.45rem}
@media(max-width:540px){
  #quote-dialog {box-sizing:border-box; width:100%; max-width:100%; max-height:94vh; max-height:94dvh; margin:auto 0 0; border-radius:18px 18px 0 0; padding:14px max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
  #quote-dialog h2 {margin:.35rem 0 .75rem}
}
