.yb-quote-dialog,
.yb-quote-dialog * {
  box-sizing: border-box;
}

.yb-quote-dialog {
  width: min(920px, calc(100vw - 32px));
  max-width: none;
  max-height: min(92dvh, 1080px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--yb-ivory);
  color: var(--yb-navy);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
  overflow: auto;
  overscroll-behavior: contain;
  font-family: Inter, Arial, sans-serif;
}

.yb-quote-dialog::backdrop {
  background: rgba(15, 24, 33, .76);
}

.yb-quote-shell { padding: clamp(24px, 4vw, 48px); }
.yb-quote-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.yb-quote-eyebrow { display: block; margin-bottom: 8px; color: var(--yb-terra-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.yb-quote-head h2 { margin: 0 0 8px; color: var(--yb-navy); font-family: Manrope, Inter, Arial, sans-serif; font-size: clamp(28px, 3vw, 36px); font-weight: 800; line-height: 1.15; }
.yb-quote-head p { max-width: 65ch; margin: 0; color: #52606a; font-size: 15px; line-height: 1.55; }
.yb-quote-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid #aab0ac; border-radius: 6px; background: transparent; color: var(--yb-navy); font-size: 30px; line-height: 1; cursor: pointer; }
.yb-quote-close:hover { background: var(--yb-sand); }
.yb-quote-dialog :focus-visible { outline: 3px solid var(--yb-terra-dark); outline-offset: 2px; }
.yb-quote-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.yb-quote-field { min-width: 0; }
.yb-quote-field-full { grid-column: 1 / -1; }
.yb-quote-field label { display: block; margin-bottom: 7px; color: var(--yb-navy); font-size: 15px; font-weight: 700; line-height: 1.35; }
.yb-quote-field label span:not([aria-hidden]) { color: #52606a; font-size: 13px; font-weight: 500; }
.yb-quote-field label span[aria-hidden] { color: var(--yb-terra-dark); }
.yb-quote-field input,
.yb-quote-field select,
.yb-quote-field textarea { display: block; width: 100%; min-height: 50px; margin: 0; padding: 11px 14px; border: 1px solid #8b9592; border-radius: 6px; background: #fff; color: var(--yb-navy); font: 16px/1.45 Inter, Arial, sans-serif; }
.yb-quote-field textarea { min-height: 120px; resize: vertical; }
.yb-quote-field input::placeholder,
.yb-quote-field textarea::placeholder { color: #657174; opacity: 1; }
.yb-quote-field input:focus,
.yb-quote-field select:focus,
.yb-quote-field textarea:focus { border-color: var(--yb-navy); outline: 3px solid rgba(155, 175, 154, .55); outline-offset: 0; }
.yb-quote-field [aria-invalid="true"] { border-color: #9c231e; }
.yb-quote-field-error { display: block; margin-top: 5px; color: #9c231e; font-size: 13px; font-weight: 600; }
.yb-quote-field-error:empty { display: none; }
.yb-quote-error-summary { margin-bottom: 18px; padding: 12px 15px; border-left: 4px solid #9c231e; background: #f9e9e5; color: #79221d; font-size: 14px; font-weight: 650; }
.yb-quote-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; color: var(--yb-navy); font-size: 14px; line-height: 1.5; }
.yb-quote-consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--yb-navy); }
.yb-quote-consent input[aria-invalid="true"] { outline: 2px solid #9c231e; outline-offset: 2px; }
.yb-quote-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.yb-quote-submit { min-width: 190px; min-height: 48px; padding: 10px 18px; border: 0; border-radius: 8px; background: var(--yb-terra); color: #fff; font: 700 15px/1.3 Inter, Arial, sans-serif; cursor: pointer; }
.yb-quote-submit:hover { background: var(--yb-terra-dark); }
.yb-quote-submit:disabled { opacity: .7; cursor: wait; }
.yb-quote-switch-line { color: #52606a; font-size: 14px; }
.yb-quote-switch { min-height: 44px; padding: 6px 0; border: 0; background: none; color: var(--yb-navy); font: 700 14px/1.3 Inter, Arial, sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.yb-quote-feedback { margin-top: 18px; padding: 13px 16px; border-radius: 6px; background: #e4ece2; color: var(--yb-navy); font-size: 14px; }
.yb-quote-feedback.is-error { background: #f9e9e5; color: #79221d; }
.yb-quote-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 680px) {
  .yb-quote-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .yb-quote-shell { padding: 22px 18px 26px; }
  .yb-quote-head { gap: 10px; margin-bottom: 22px; }
  .yb-quote-head h2 { font-size: 28px; }
  .yb-quote-fields { grid-template-columns: 1fr; gap: 14px; }
  .yb-quote-field-full { grid-column: auto; }
  .yb-quote-submit { width: 100%; }
}
