/* ============================================================
   Quote / Mockup Modal
   ============================================================ */

.quote-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9000;
  overflow-y: auto;
  padding: 5vw;
  box-sizing: border-box;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.quote-modal-overlay.is-open {
  display: block;
}

.quote-modal {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: calc(100vh - 10vw);
  margin: 0 auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  animation: modalSlideIn 0.25s ease;
  overflow: hidden;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quote-modal__header {
  position: relative;
  padding: 2rem 3rem 1.5rem 1.5rem;
  background: #fff;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.quote-modal__title {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  color: #E17512;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0;
}

.quote-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #555;
  line-height: 1;
  transition: background 0.2s ease;
}

.quote-modal__close:hover {
  background: rgba(0, 0, 0, 0.15);
}

.quote-modal__body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

/* ── Form styles (scoped inside modal) ── */

.quote-modal * {
  box-sizing: border-box;
}

.dfg-fw {
  max-width: 100%;
  padding: 2.5rem 2rem;
  font-family: Arial, sans-serif;
  background: #fff;
}


.dfg-g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.dfg-mb {
  margin-bottom: 12px;
}

.dfg-fw input[type=text],
.dfg-fw input[type=email],
.dfg-fw input[type=tel],
.dfg-fw input[type=number],
.dfg-fw select,
.dfg-fw textarea {
  width: 100%;
  padding: 16px 14px;
  font-size: 16px;
  font-family: Arial, sans-serif;
  color: #111;
  border: 1.5px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  line-height: 1;
}

.dfg-fw input::placeholder,
.dfg-fw textarea::placeholder {
  color: #555;
}

.dfg-fw select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23aaa' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
  color: #b0b0b0;
}

.dfg-fw select.chosen {
  color: #333;
}

.dfg-fw input:focus,
.dfg-fw select:focus,
.dfg-fw textarea:focus {
  border-color: #E17512;
  box-shadow: 0 0 0 3px rgba(225, 117, 18, 0.1);
}

.dfg-fw textarea {
  resize: vertical;
  min-height: 56px;
  line-height: 1.5;
}

.dfg-file-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.dfg-fw input[type=file] {
  color: #888;
  font-size: 13px;
  cursor: pointer;
  flex: 1;
}

.dfg-fw input[type=file]::file-selector-button {
  padding: 10px 16px;
  margin-right: 10px;
  cursor: pointer;
}

.dfg-file-hint {
  font-size: 11px;
  color: #bbb;
  margin-top: 5px;
}

.dfg-other-wrap {
  display: none;
  margin-top: 10px;
}

.dfg-other-wrap.visible {
  display: block;
}

.dfg-file-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.dfg-fw input[type=file] {
  width: 100%;
}

.dfg-fw .dfg-cta {
  background: #E17512;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 16px 22px;
  font-size: 15px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.dfg-fw .dfg-cta:hover {
  background: #c4650f;
}

@media (max-width: 540px) {
  .dfg-fw {
    padding: 2rem 1.25rem;
  }

  .dfg-g2 {
    grid-template-columns: 1fr;
  }

  .dfg-file-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dfg-fw .dfg-cta {
    width: 100%;
    text-align: center;
  }
}
