.feedback-modal {
  display: block;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5); /* Sleek black with opacity */
  backdrop-filter: blur(5px); /* Adds a glass effect */
}

.feedback-modal-content {
  background-color: var(--body-bg);
  margin: 8% auto; /* Centered */
  padding: 25px;
  width: 90%; /* Responsive width */
  max-width: 500px; /* Restrict max width */
  border-radius: 12px; /* Smooth rounded corners */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  animation: fadeIn 0.3s ease-out; /* Smooth fade-in animation */
}

.feedback-modal-close-button {
  color: var(--h1);
  float: right;
  font-size: 24px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.feedback-modal-close-button:hover,
.feedback-modal-close-button:focus {
  cursor: pointer;
}

.hidden {
  display: none;
}

#feedback-modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feedback-label {
  font-size: 14px;
  color: #666; /* Subtle text color */
  font-weight: 500; /* Medium weight */
}

.feedback-modal-input,
.feedback-modal-textarea {
  background-color: var(--input);
  color: var(--input-txt-clr);
  padding: 12px !important; /* Comfortable padding */
  border: 1px solid #ddd !important; /* Light border */
  border-radius: 8px !important; /* Smooth rounded corners */
  font-size: 15px !important; /* Modern font size */
  transition: all 0.3s ease !important; /* Smooth focus transition */
}
/* For the placeholder text */
.feedback-modal-input::placeholder,
.feedback-modal-textarea::placeholder {
  padding-left: 16px; /* Adjust placeholder padding to start further */
  color: var(--p); /* Placeholder text color */
}
#feedback-modal-form input::placeholder {
  padding-left: 0px;
}
#feedback-modal-form textarea::placeholder {
  padding-left: 0px;
  padding-top: 0px;
}
.feedback-modal-input:focus,
.feedback-modal-textarea:focus {
  border-color: #3a86ff; /* Highlight border on focus */
  outline: none; /* Remove default outline */
  box-shadow: 0 0 4px rgba(58, 134, 255, 0.2); /* Subtle shadow effect */
}

.feedback-modal-textarea {
  resize: vertical; /* Allow vertical resizing only */
  min-height: 120px; /* Slightly larger height */
}

.feedback-modal-submit {
  border-radius: 5px;
  background: #0378a4; /* Gradient background */
  color: white; /* White text */
  padding: 12px 20px; /* Comfortable padding */
  border: none; /* No border */
  cursor: pointer; /* Pointer cursor on hover */
  font-size: 16px; /* Modern font size */
  font-weight: 600; /* Semi-bold text */
  transition: all 0.3s ease; /* Smooth hover transition */
}

.feedback-modal-submit:hover {
  background: #0378a4; /* Slightly darker gradient */
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Autofill styles for dark mode */
.feedback-modal-form input:-webkit-autofill,
.feedback-modal-form select:-webkit-autofill,
.feedback-modal-form textarea:-webkit-autofill {
  background-color: var(--input) !important; /* Background color for autofill */
  color: var(--h1) !important; /* Ensure text color is readable */
  -webkit-text-fill-color: var(--h1) !important;
  box-shadow: 0 0 0px 1000px var(--input) inset !important; /* Force background color */
  transition: background-color 5000s ease-in-out, color 5000s ease-in-out; /* Smooth transition */
}
