/* ============================================================
   Vanguard Roofing AZ — Floating "Get a Free Quote" widget
   Self-contained styles. Uses literal brand colors so it
   renders identically on every page regardless of theme.
   navy #1a1d3a · navy-deep #0f1124 · gold #c9a04a
   ============================================================ */
.vg-quote {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
}

.vg-quote__pill {
  background: #c9a04a;
  color: #1a1d3a;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  font-family: 'Cabinet Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(201, 160, 74, 0.4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.vg-quote__pill:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(201, 160, 74, 0.5); }
.vg-quote__pill svg { width: 18px; height: 18px; flex-shrink: 0; }

.vg-quote__panel {
  position: absolute;
  bottom: calc(100% + 1rem);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 3rem);
  background: #1a1d3a;
  color: #e6e8f0;
  border: 1px solid rgba(201, 160, 74, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  transform-origin: bottom right;
  transform: scale(0.85) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.vg-quote.is-open .vg-quote__panel {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.vg-quote__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: rgba(230, 232, 240, 0.7);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}
.vg-quote__close:hover { color: #ffffff; }

.vg-quote__eyebrow { color: #c9a04a; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.vg-quote__panel h3 { font-family: 'Cabinet Grotesk', system-ui, sans-serif; font-weight: 800; font-size: 1.15rem; color: #ffffff; margin: 0.4rem 0 0.5rem; line-height: 1.25; }
.vg-quote__tag { color: rgba(230, 232, 240, 0.7); font-size: 0.85rem; margin: 0 0 1rem; }

.vg-quote__field { margin-bottom: 0.85rem; }
.vg-quote__field label { display: block; font-size: 0.8rem; color: rgba(230, 232, 240, 0.7); margin-bottom: 0.35rem; font-weight: 500; }
.vg-quote__field input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(201, 160, 74, 0.2);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.vg-quote__field input:focus { outline: none; border-color: #c9a04a; }
.vg-quote__field input::placeholder { color: rgba(230, 232, 240, 0.4); }

.vg-quote__submit {
  width: 100%;
  background: #c9a04a;
  color: #1a1d3a;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 1.25rem;
  font-family: 'Cabinet Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}
.vg-quote__submit:hover { background: #e0bb6a; }
.vg-quote__submit:active { transform: scale(0.98); }
.vg-quote__submit svg { width: 16px; height: 16px; }

.vg-quote__success { text-align: center; padding: 0.5rem 0.25rem; }
.vg-quote__success-icon {
  width: 52px; height: 52px;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid #22c55e;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.vg-quote__success-icon svg { width: 26px; height: 26px; color: #22c55e; }
.vg-quote__success h4 { font-family: 'Cabinet Grotesk', system-ui, sans-serif; font-weight: 800; color: #ffffff; font-size: 1.1rem; margin: 0 0 0.5rem; }
.vg-quote__success p { color: rgba(230, 232, 240, 0.7); font-size: 0.88rem; margin: 0; }
.vg-quote__success a { color: #c9a04a; font-weight: 700; text-decoration: none; }

@media (max-width: 600px) {
  .vg-quote { right: 1rem; bottom: 1rem; }
  .vg-quote__pill { padding: 0.75rem 1.15rem; font-size: 0.85rem; }
  .vg-quote__panel { width: calc(100vw - 2rem); right: 0; }
}
