/* ----------------------------------------------------------
   QUOTE MODAL
---------------------------------------------------------- */

/* Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: hidden;
  animation: fadeIn 0.25s ease-out;
}

/* Modal box */
.modal-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 24px;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  position: relative;
  border-top: 6px solid #007bff;
  box-sizing: border-box;
}

/* Title */
.modal-box h2 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 700;
}

.modal-box p {
  margin-top: 0;
  margin-bottom: 20px;
  color: #555;
}

/* Form fields */
.modal-form .form-group {
  margin-bottom: 12px;
}

.modal-form .form-row {
  display: flex;
  gap: 12px;
}

.modal-form .form-row .form-group {
  flex: 1 1 0;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  font-size: 15px;
  background: #f7f7f7;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  border-color: #007bff;
  background: #fff;
  outline: none;
}

/* Submit button */
.modal-form button {
  padding: 12px 24px;
  background: #007bff;
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s ease;
}

.modal-form button:hover {
  background: #005fcc;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .modal-overlay {
    overflow-y: auto;
    align-items: flex-start;
    padding-top: 20px;
  }

  .modal-box {
    max-height: 90vh;
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .modal-box {
    padding: 18px 14px;
  }

  .modal-box h2 { margin-bottom: 6px; }
  .modal-box p { margin-bottom: 14px; }

  .modal-form input,
  .modal-form select,
  .modal-form textarea {
    padding: 10px;
    font-size: 14px;
  }

  .modal-form button {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
  }
}
