/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
  }
  
  header {
    background-color: #3b5998;
    color: #fff;
    padding: 20px 0;
    text-align: center;
  }
  
  h1 {
    font-size: 2rem;
    margin: 0;
  }
  
  /* Form Styles */
  .form-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/contact2.jpg') no-repeat center center/cover;
    filter: blur(2px); 
    z-index: -1;
  }
  
  form {
    display: flex;
    flex-direction: column;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  input[type="text"]:focus,
  input[type="email"]:focus,
  input[type="tel"]:focus,
  select:focus {
    outline: none;
    border-color: #3b5998;
  }
  
  button {
    padding: 12px 20px;
    background-color: #3b5998;
    color: white;
    border: none;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  button:hover {
    background-color: #2a437a;
  }
  
  /* Radio Button Group */
  #internship-options {
    display: flex;
    flex-direction: column;
  }
  
  #internship-options input[type="radio"] {
    margin-right: 10px;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .form-container {
      margin: 15px;
      padding: 15px;
    }
  
    h1 {
      font-size: 1.5rem;
    }
  
    button {
      font-size: 0.9rem;
      padding: 10px 15px;
    }
  }
  
 /* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 999; /* Ensure it's above other content */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Dark background */
  padding-top: 100px; /* Centering vertically */
  text-align: center;
  overflow: auto; /* In case the content overflows */
  animation: fadeIn 0.5s ease; /* Animation for the modal appearance */
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  border-radius: 8px;
  width: 50%; /* Increased width for better content visibility */
  max-width: 500px; /* Ensure modal doesn't stretch too much */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  animation: zoomIn 0.4s ease-in-out; /* Add zoom-in animation */
  position: relative; /* Position close button inside modal */
}

h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 15px;
}

p {
  font-size: 1.1rem;
  color: #555;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #888;
  font-size: 28px; /* Slightly larger for better visibility */
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover,
.close-btn:focus {
  color: #ff0000; /* Change to red on hover */
  text-decoration: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Ensure the modal is responsive */
@media (max-width: 768px) {
  .modal-content {
    width: 80%; /* Use more width on smaller screens */
    padding: 20px;
  }
  h2 {
    font-size: 1.6rem;
  }
  p {
    font-size: 1rem;
  }
}


/* Toast Styles */
#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 10px;
  font-size: 1rem;
  position: relative;
  margin-bottom: 10px;
  animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}
