/* =====================================================
   QUOTE MODAL
   ===================================================== */

/* ---------- Overlay ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay:not([hidden]) {
  opacity: 1;
}

.modal-overlay[hidden] {
  display: none !important;
}

/* ---------- Modal card ---------- */
.modal {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 36px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay:not([hidden]) .modal {
  transform: translateY(0) scale(1);
}

/* Scrollbar styling */
.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

/* ---------- Close button ---------- */
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: #555555;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.modal__close:hover {
  background: #2e7d32;
  color: #ffffff;
  transform: rotate(90deg);
}

/* ---------- Header ---------- */
.modal__header {
  margin-bottom: 28px;
  text-align: center;
}

.modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111111;
  margin: 0 0 8px;
  line-height: 1.2;
}

.modal__subtitle {
  font-size: 0.95rem;
  color: #666666;
  margin: 0;
}

/* ---------- Form ---------- */
.modal__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal__form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #333333;
  letter-spacing: 0.02em;
}

/* ---------- Input wrapper with icon ---------- */
.modal__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.modal__icon {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  pointer-events: none;
  line-height: 1;
  z-index: 1;
}

.modal__input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #222222;
  background: #f9fafb;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.modal__input:focus {
  border-color: #2e7d32;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

.modal__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ---------- Submit button ---------- */
.modal__submit {
  width: 100%;
  padding: 14px;
  background: #2e7d32;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  margin-top: 6px;
}

.modal__submit:hover {
  background: #1b5e20;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.35);
}

.modal__submit:active {
  transform: translateY(0);
}

/* ---------- Disclaimer ---------- */
.modal__disclaimer {
  font-size: 0.8rem;
  color: #888888;
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.modal__link {
  color: #2e7d32;
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
  .modal {
    padding: 28px 20px;
    border-radius: 16px;
  }
}
