/* Popup Form Styles */
.popup-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.157);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-form-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-form-container {
  position: relative;
  background: white;
  border-radius: 12px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  max-width: 480px;
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(20, 3, 66, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.popup-form-overlay.active .popup-form-container {
  transform: translateY(0);
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--gray);
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: var(--primary-dark);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h3 {
    margin-top: 12px;
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--gray);
  font-size: 0.95rem;
}

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--primary-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg {
  position: absolute;
  left: 1rem;
  color: var(--primary);
}

.input-with-icon input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 3rem;
  border: 1px solid rgba(20, 3, 66, 0.1);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background-color: #f9fafc;
}

.input-with-icon input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(254, 211, 10, 0.2);
  background-color: white;
}

.form-footer {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.submit-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}

.submit-btn:hover {
  background-color: teal;
  transform: translateY(-2px);
}

.submit-btn svg {
  transition: transform 0.2s ease;
}

.submit-btn:hover svg {
  transform: translateX(3px);
}

.disclaimer {
  color: var(--gray);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .popup-form-container {
    max-width: 90%;
    padding: 1.75rem;
  }
  
  .form-header h3 {
    font-size: 1.3rem;
  }
  
  .enquiry-form {
    gap: 1.25rem;
  }
  
  .submit-btn {
    padding: 0.9rem 1.5rem;
  }
}

.filter-select {
    flex: 1 1 0; /* grow and shrink equally */
    min-width: 160px; /* prevents them from getting too narrow */
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23666" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    box-sizing: border-box;
}

.filter-select option {
    background: #fff;
    color: #333;
}