/* =========== Quote Request Popup ===========
   Shared by every page that carries the "Get A Quote" CTA
   (home, about, products, blogs, faq). Markup is injected by
   assets/js/sv-quote-modal.js. */

.sv-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.sv-modal.is-open { display: block; }

.sv-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 22, 0.65);
  backdrop-filter: blur(2px);
}

.sv-modal__dialog {
  position: relative;
  max-width: 520px;
  width: calc(100% - 32px);
  margin: 5vh auto;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 40px 32px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: sv-modal-in 0.25s ease;
}
@keyframes sv-modal-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sv-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #F5F5F5;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.sv-modal__close:hover { background: #eee; }

.sv-modal__title {
  font-size: 24px;
  color: #202020;
  margin-bottom: 6px;
}
.sv-modal__subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 24px;
}

.sv-form-row { margin-bottom: 16px; }
.sv-form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #202020;
  margin-bottom: 6px;
}
.sv-form-row label span { color: #AE8333; margin-left: 2px; }

.sv-form-row input,
.sv-form-row select,
.sv-form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  color: #202020;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.sv-form-row input:focus,
.sv-form-row select:focus,
.sv-form-row textarea:focus {
  border-color: #AE8333;
}

.sv-form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sv-form-row--split > div { margin-bottom: 0; }

.sv-modal__submit {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  margin-top: 8px;
}
.sv-modal__submit:disabled { opacity: .65; cursor: not-allowed; }

/* Submit feedback — hidden until the AJAX call resolves */
.sv-modal__response {
  display: none;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}
.sv-modal__response.is-success {
  display: block;
  background: #d4edda;
  color: #155724;
}
.sv-modal__response.is-error {
  display: block;
  background: #f8d7da;
  color: #721c24;
}

.sv-modal__note {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin-top: 14px;
  margin-bottom: 0;
}

body.sv-modal-open { overflow: hidden; }

@media (max-width: 480px) {
  .sv-form-row--split { grid-template-columns: 1fr; }
  .sv-modal__dialog { padding: 32px 20px 24px; }
}
