/* ── Quotation modal ────────────────────────────────────────────
   Shown after the hero "Generate Quotation" button prices a package.
   Uses the site's navy/gold palette so it reads as part of the brand. */

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.quote-modal[hidden] { display: none; }
body.quote-open { overflow: hidden; }

.quote-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 30, 44, 0.72);
  backdrop-filter: blur(3px);
  animation: quote-fade 0.2s ease;
}

.quote-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--white, #fff);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: quote-rise 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Poppins', var(--sys);
}
@keyframes quote-fade { from { opacity: 0; } }
@keyframes quote-rise {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
}
@media (prefers-reduced-motion: reduce) {
  .quote-backdrop, .quote-box { animation: none; }
}

.quote-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 2;
}
.quote-close:hover { background: rgba(255, 255, 255, 0.32); }
.quote-close:focus-visible { outline: 2px solid var(--gold, #EDB81A); outline-offset: 2px; }

.quote-body { padding: 0 0 24px; }

/* Price header — the one thing the customer came for. */
.quote-head {
  background: linear-gradient(135deg, var(--navy, #0E4D70), #0a3a55);
  color: #fff;
  padding: 30px 26px 24px;
  border-radius: 16px 16px 0 0;
  text-align: center;
  margin-bottom: 22px;
}
.quote-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold, #EDB81A);
  font-weight: 600;
  margin-bottom: 8px;
}
.quote-price {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.quote-cur {
  font-size: 17px;
  font-weight: 600;
  opacity: 0.75;
  margin-right: 4px;
  vertical-align: 6px;
}
.quote-sub {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}
.quote-ref {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
}
.quote-err-title { font-size: 20px; color: #fff; margin: 0; font-weight: 600; }

.quote-section { padding: 0 26px; margin-bottom: 20px; }
.quote-section h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9aa7b0;
  font-weight: 600;
  margin: 0 0 10px;
}

.quote-includes { list-style: none; margin: 0; padding: 0; }
.quote-includes li {
  position: relative;
  padding: 7px 0 7px 24px;
  font-size: 14px;
  color: var(--text, #333);
  border-bottom: 1px solid #f0f3f5;
}
.quote-includes li:last-child { border-bottom: 0; }
.quote-includes li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold, #EDB81A);
}
.quote-includes strong { font-weight: 600; }
.quote-includes span { color: #7b8894; font-size: 12.5px; }

.quote-sel { margin: 0; }
.quote-sel-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f3f5;
  font-size: 13.5px;
}
.quote-sel-row:last-child { border-bottom: 0; }
.quote-sel dt { color: #7b8894; flex-shrink: 0; }
.quote-sel dd { margin: 0; text-align: right; font-weight: 500; color: var(--navy, #0E4D70); }

.quote-note {
  margin: 0 26px 18px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #fff8e6;
  border: 1px solid #f5e2b0;
  color: #8a6a12;
  font-size: 12.5px;
  line-height: 1.6;
}

/* Confirmation that the Cloud API already delivered the quote to their phone.
   Green to read as done, next to the note's amber "needs your attention". */
.quote-sent {
  margin: 0 26px 14px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #eaf9f0;
  border: 1px solid #b8e6ca;
  color: #1a7a45;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

/* Link to the printable quotation. Outlined, so it reads as secondary to the
   green WhatsApp action rather than competing with it. */
.quote-doc {
  display: block;
  margin: 0 26px 10px;
  padding: 13px 20px;
  border-radius: 10px;
  border: 1.5px solid var(--navy, #0E4D70);
  color: var(--navy, #0E4D70);
  font-weight: 600;
  font-size: 14.5px;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
}
.quote-doc:hover { background: #f2f7fa; }
.quote-doc:focus-visible { outline: 2px solid var(--navy, #0E4D70); outline-offset: 3px; }

/* WhatsApp handoff — the primary action. */
.quote-cta {
  display: block;
  margin: 0 26px;
  padding: 15px 20px;
  border-radius: 10px;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.quote-cta:hover { background: #1eb457; transform: translateY(-1px); }
.quote-cta:focus-visible { outline: 2px solid var(--navy, #0E4D70); outline-offset: 3px; }

.quote-fine {
  margin: 12px 26px 0;
  font-size: 11.5px;
  color: #9aa7b0;
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .quote-modal { padding: 0; align-items: flex-end; }
  .quote-box {
    max-width: none;
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
  }
  .quote-price { font-size: 34px; }
  .quote-head { padding: 26px 20px 20px; }
  .quote-section, .quote-cta, .quote-doc, .quote-note, .quote-sent, .quote-fine { margin-left: 18px; margin-right: 18px; }
  .quote-section { padding: 0; }
}
