/* ============================================================
   Zhongxin Energy - enquiry dialog + submission feedback
   ============================================================ */
.quote-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.quote-modal[hidden] { display: none; }
.quote-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 23, 38, .72);
  backdrop-filter: blur(3px);
}
.quote-modal-panel {
  position: relative; width: min(760px, 100%); max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 18px; padding: 34px 38px 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
  animation: quote-pop .28s ease-out;
}
@keyframes quote-pop {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.quote-modal-close {
  position: absolute; top: 14px; inset-inline-end: 18px;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: #F1F5F9; color: #334; font-size: 26px; line-height: 1; cursor: pointer;
  transition: background .2s, color .2s;
}
.quote-modal-close:hover { background: #E2E8F0; color: #0E2A4A; }
.quote-modal-eyebrow {
  margin: 0 0 8px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .18em; color: #C9A227; text-transform: uppercase;
}
.quote-modal-title { margin: 0 0 8px; font-size: clamp(22px, 3vw, 28px); color: #0D1A29; }
.quote-modal-sub { margin: 0 0 22px; font-size: 13.5px; line-height: 1.7; color: #5B6B7C; }
.quote-form .form-row { margin-bottom: 14px; }
.quote-form .field > span { font-size: 12.5px; }
.quote-form .field input, .quote-form .field textarea { font-size: 14px; }
.quote-form > .field { margin-bottom: 14px; }
.quote-form .btn-block { margin-top: 6px; }
.quote-form .btn:disabled { opacity: .65; cursor: wait; }
.quote-privacy {
  margin: 10px 0 0; font-size: 12px; line-height: 1.6;
  color: #7B8B9C; text-align: center;
}
.quote-modal-foot {
  margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #E8EDF2;
  font-size: 12.5px; color: #5B6B7C; text-align: center;
}
.quote-modal-foot a {
  color: #0E2A4A; font-weight: 700; text-decoration: none;
  direction: ltr; unicode-bidi: isolate;
}
.quote-hp {
  position: absolute !important; inset-inline-start: -9999px !important;
  width: 1px; height: 1px; opacity: 0;
}
body.quote-open { overflow: hidden; }

/* submission status */
.quote-msg {
  display: none; margin-top: 14px; padding: 11px 14px;
  border-radius: 9px; font-size: 13px; line-height: 1.6;
}
.quote-msg.is-show { display: block; }
.quote-msg.is-info    { background: #EFF5FB; color: #1B4E7A; border: 1px solid rgba(30, 92, 150, .22); }
.quote-msg.is-success { background: #EDF7F1; color: #14503A; border: 1px solid rgba(20, 80, 58, .25); }
.quote-msg.is-error   { background: #FFF3F3; color: #A93A36; border: 1px solid rgba(217, 83, 79, .3); }

/* offline fallback */
.quote-fallback {
  margin-top: 14px; padding: 16px; border: 1px dashed #C9D6E3;
  border-radius: 11px; background: #F8FAFC; text-align: center;
}
.quote-fallback[hidden] { display: none; }
.quote-fallback p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.65; color: #5B6B7C; }
.quote-fallback-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.quote-fallback .btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s;
}
.quote-fallback .btn-outline { background: #0E2A4A; color: #fff; border: 1px solid #0E2A4A; }
.quote-fallback .btn-outline:hover { background: #16375E; }
.quote-fallback .btn-ghost { background: #fff; color: #0E2A4A; border: 1px solid #C9D6E3; }
.quote-fallback .btn-ghost:hover { border-color: #0E2A4A; }

html[dir="rtl"] .quote-modal-panel { text-align: right; }
html[dir="rtl"] .quote-privacy,
html[dir="rtl"] .quote-modal-foot,
html[dir="rtl"] .quote-fallback { text-align: center; }

@media (max-width: 640px) {
  .quote-modal { padding: 12px; }
  .quote-modal-panel { padding: 26px 18px 20px; max-height: 94vh; border-radius: 14px; }
  .quote-modal-close { top: 10px; inset-inline-end: 12px; width: 34px; height: 34px; font-size: 23px; }
  .quote-form .form-row { grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
  .contact-form .quote-fallback-btns { flex-direction: column; }
  .contact-form .quote-fallback .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .quote-modal-panel { animation: none; }
}
