/* Slide-In Overlay */
.mdf-slide-in-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: flex-end;
  align-items: center;
  z-index: 1000;
}

.mdf-slide-in-overlay.active {
  display: flex;
}

/* Slide-In Form */
.mdf-slide-in-form {
  position: fixed;
  top: 0;
  right: -100%; /* Hidden off-screen by default */
  width: 50%; /* Default width for larger screens */
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  z-index: 1001;
  padding: 20px;
  overflow-y: auto; /* Allow scrolling if content is too long */
}

.mdf-slide-in-overlay.active .mdf-slide-in-form {
  right: 0; /* Slide into view */
}

/* Close Button */
.mdf-close-slide-in {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: #003366; /* Navy Blue */
  cursor: pointer;
}

.mdf-close-slide-in:hover {
  color: #FFD700; /* Yellow */
}

/* Form Styles */
.mdf-form-group {
  margin-bottom: 15px;
}

.mdf-form-group label {
  display: block;
  margin-bottom: 5px;
  color: #003366; /* Navy Blue */
}

.mdf-form-group input,
.mdf-form-group select,
.mdf-form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.mdf-form-group textarea {
  resize: vertical;
}

.mdf-submit-btn {
  width: 100%;
  padding: 10px;
  background-color: #003366; /* Navy Blue */
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.mdf-submit-btn:hover {
  background-color: #FFD700; /* Yellow */
  color: #003366; /* Navy Blue */
}

/* Responsive Design */
@media (max-width: 768px) {
  .mdf-slide-in-form {
    width: 100%; /* Full width on smaller screens */
  }
}



.opportunity-card a{
  margin-top: 20px;
  padding: 12px 25px;
  background-color: #005daa; /* Blue button */
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.opportunity-card a:hover {
  background-color: orange;
  }


  #form-messages .success {
    color: green;
    padding: 10px;
    border: 1px solid green;
    margin: 10px 0;
  }
  
  #form-messages .error {
    color: red;
    padding: 10px;
    border: 1px solid red;
    margin: 10px 0;
  }











  /* Form Container */
#slidingForm {
  position: fixed;
  right: -400px; /* Start hidden off-screen */
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
  border-radius: 10px 0 0 10px;
  box-shadow: -5px 5px 20px rgba(0, 0, 128, 0.2);
  padding: 30px;
  transition: right 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 1000;
  border-left: 5px solid #FFD700; /* Yellow accent */
}

/* Show form when active */
#slidingForm.active {
  right: 0;
}

/* Form Elements */
#committeeForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#committeeForm h3 {
  color: #001F3F; /* Navy blue */
  margin: 0 0 15px 0;
  font-size: 24px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

#committeeForm h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #FFD700; /* Yellow */
}

#committeeForm label {
  color: #001F3F; /* Navy blue */
  font-weight: 600;
  font-size: 14px;
  margin-bottom: -10px;
}

#committeeForm input,
#committeeForm select,
#committeeForm textarea {
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s;
  background-color: white;
}

#committeeForm input:focus,
#committeeForm select:focus,
#committeeForm textarea:focus {
  border-color: #0077CC; /* Blue */
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.1);
}

#committeeForm select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23001F3F'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px;
}

#committeeForm textarea {
  min-height: 120px;
  resize: vertical;
}

/* Submit Button */
#committeeForm button[type="submit"] {
  background: #001F3F; /* Navy blue */
  color: white;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#committeeForm button[type="submit"]:hover {
  background: #0077CC; /* Blue */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 119, 204, 0.3);
}

/* Form Messages */
#form-messages {
  margin-top: 20px;
}

#form-messages .success {
  color: #28a745;
  padding: 12px;
  border-radius: 6px;
  background-color: rgba(40, 167, 69, 0.1);
  border-left: 4px solid #28a745;
}

#form-messages .error {
  color: #dc3545;
  padding: 12px;
  border-radius: 6px;
  background-color: rgba(220, 53, 69, 0.1);
  border-left: 4px solid #dc3545;
}

/* Toggle Button (if you need one to show/hide form) */
.form-toggle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #001F3F;
  color: white;
  border: none;
  padding: 15px 10px;
  border-radius: 5px 0 0 5px;
  cursor: pointer;
  z-index: 999;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: bold;
  transition: all 0.3s;
}

.form-toggle:hover {
  background: #0077CC;
  padding-right: 15px;
}