/* Modal Overlay */
.quote-modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quote-modal-overlay.show {
  display: flex;
  opacity: 1;
}

/* Glassmorphism Content */
.quote-modal-content {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  width: 90%;
  max-width: 900px;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.4s ease-out;
  color: #fff;
}


@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close-quote-modal {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 30px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}
.close-quote-modal:hover { color: #ffcc00; }

.modal-body-flex {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping on desktop */
  height: 85vh; /* Fixed height to enable scrolling inside */
  overflow: hidden; /* container doesn't scroll */
}

/* Glass Scrollbar for the right side */
 .modal-right::-webkit-scrollbar {
    width: 8px;
  }
  .modal-right::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
  }
  .modal-right::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
  }
.modal-right::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
  }

/* Left Side */
.modal-left {
  flex: 0 0 40%; /* Fixed width 40% */
  padding: 40px;
  background: rgba(0, 0, 0, 0.3); /* slightly darker */
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden; /* Fixed content */
  height: 100%;
}

.modal-left h3 { font-size: 18px !important; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; color: #ddd; }
.modal-left h2 { font-size: 32px; font-weight: 700; margin-bottom: 20px; color: #fff; }

.trust-boosters { margin-top: 30px; }
.trust-list { list-style: none; padding: 0; }
.trust-list li { margin-bottom: 15px; font-size: 16px; display: flex; align-items: center; color: #eee; }
.trust-list li i { color: #ffcc00; margin-right: 15px; font-size: 20px;}

/* Right Side */
.modal-right {
  flex: 1; /* Takes remaining space */
  padding: 20px 30px;
  background: rgba(255, 255, 255, 0.05);
  overflow-y: auto; /* Scrollable */
  height: 100%;
}

.modal-right h3 { margin-bottom: 25px; color: #fff; font-size: 32px !important;}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 14px; color: #ddd; }
.form-group input, .form-group textarea, .form-control-custom {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
  outline: none;
  transition: all 0.3s;
}
.form-group select option {
    background-color: #333; /* Dark background for dropdown options */
    color: #fff;
}

.form-group input:focus, .form-group textarea:focus, .form-control-custom:focus {
  border-color: #ffcc00;
  background: rgba(255, 255, 255, 0.2);
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  background: linear-gradient(45deg, #e63d00ff 0%, #c62128 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px #e2e2df42;
}

@media (max-width: 768px) {
  .modal-body-flex { 
    flex-direction: column;
    height: auto; /* Reset height */
    max-height: 85vh; /* Max height for the whole modal on mobile */
    overflow-y: auto; /* Enable scroll on the container */
 }
  .modal-left {
      flex: none;
      width: 100%;
      height: auto;
      padding: 30px;
  }
  
  .modal-right {
    flex: none;
    width: 100%;
    height: auto;
    /* Let natural flow handle it inside the scrollable container */
    overflow-y: auto; 
    padding: 20px;
  }
  .quote-modal-content { width: 95%; max-height: 90vh; }
}

body.quote-modal-open {
  overflow: hidden;
}
