.visit-popup-modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  bottom: -100px;
  right: -30px;
  width: 380px;
  transform: scale(0.7);
  background-color: #fff;
  box-shadow: 0 5px 20px #557ad1;
  border-radius: 12px;
  z-index: 9999;
  font-family: "Nunito", sans-serif;
  overflow: hidden;
}

.visit-popup-header {
  padding: 18px 25px;
  background-color: #0052cc;
  /* Matches site footer/dark theme */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.visit-popup-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: white;
  letter-spacing: 1px;
}

.visit-popup-close {
  color: white;
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.visit-popup-close:hover {
  opacity: 1;
}

.visit-popup-body {
  padding: 25px;
  background-color: #fff;
}

.visit-popup-body .form-group {
  margin-bottom: 20px;
  position: relative;
}

.visit-popup-body label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.visit-popup-body label .required {
  color: #ff4d4f;
  margin-left: 4px;
}

.visit-popup-body input,
.visit-popup-body textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 14px;
  color: #333;
  background-color: #f9f9f9;
  transition: border-color 0.3s, background-color 0.3s;
}

.visit-popup-body input:focus,
.visit-popup-body textarea:focus {
  outline: none;
  border-color: #0052cc;
  background-color: #fff;
}

.visit-popup-body textarea {
  resize: none;
  height: 100px;
}

/* Custom placeholder styling */
.visit-popup-body input::placeholder,
.visit-popup-body textarea::placeholder {
  color: #aaa;
}

/* Privacy Checkbox Styling */
.visit-popup-body .privacy-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.visit-popup-body .privacy-group input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  cursor: pointer;
}

.visit-popup-body .privacy-group label {
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 0;
  display: inline;
  cursor: pointer;
}

.visit-popup-body .privacy-group a {
  color: #0052cc;
  text-decoration: underline;
}

.visit-popup-body .submit-group {
  margin-top: 15px;
  margin-bottom: 0;
}

.visit-popup-body button {
  width: 100%;
  padding: 12px;
  background: #0052cc;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.visit-popup-body button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px #557ad1;
}

.visit-popup-body button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.visit-message {
  margin-top: 15px;
  text-align: center;
  font-size: 13px;
  min-height: 18px;
  /* Prevent jump */
}

.visit-message.success {
  color: #28a745;
}

.visit-message.error {
  color: #dc3545;
}

@media (min-width: 1200px) {
  .visit-popup-modal {
    right: 30px;
    bottom: -40px;
    transform: scale(0.78);
  }
}

@media (min-width: 1200px) {
  .visit-popup-modal {
    right: 30px;
    bottom: -40px;
    transform: scale(0.78);
  }
}

@media (min-width: 1600px) {
  .visit-popup-modal {
    right: 30px;
    bottom: 30px;
    transform: scale(1);
  }
}