/*Joining Application Form*/
body .join-form-body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
}

/* Joining Form Container */
.join-form-container {
  max-width: 600px;
  margin: 10px auto;
  padding: 35px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column; /* Stack content vertically */
  align-items: center; /* Center content horizontally */
}

/* Header Section */
.join-form-header {
  text-align: center;
  margin-bottom: 20px;
  background-color: #ff3399;
}

.join-form-container .join-form-header img {
  display: block; /* Treat image as a block-level element */
  max-width: 100%; /* Make the image responsive */
  height: auto; /* Maintain aspect ratio */
  max-height: 300px;
  margin: 0 auto; /* Center the image */
}

.join-form-header p,
.join-form-header div {
  margin: 5px 0;
  color: #fff;
  font-size: 17px;
}

/* Form Styles */
form {
  width: 100%;
}

form h1 {
  text-align: center;
  color: #ff3399;
  font-size: 24px;
  margin-bottom: 20px;
}

.join-form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 14px;
}

input[type="text"],
input[type="date"],
input[type="email"],
input[type="tel"],
textarea,
button.join-btn-btn {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

textarea {
  resize: none;
}

.row-j {
  display: flex;
  gap: 10px;
}

.row-j input {
  flex: 1;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two columns */
  gap: 10px;
}

button.join-btn-btn {
  background-color: #ff3399;
  color: white;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

button.join-btn-btn:hover {
  background-color: #ff0066;
}

/* Responsive Styles */
@media (max-width: 600px) {
  .row-j {
    flex-direction: column;
  }
  .checkbox-grid {
    grid-template-columns: 1fr; /* One column for narrow screens */
  }
  .join-form-container {
    padding: 15px; /* Adjust padding for smaller screens */
  }
  input[type="text"],
  input[type="date"],
  input[type="email"],
  input[type="tel"],
  textarea,
  button.join-btn-btn {
    font-size: 16px; /* Increase font size for readability on smaller screens */
  }
}

/* Popup Base Styles */
.popup {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #f1aed0;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  z-index: 1000;
  text-align: center;
}

.popup p {
  color: #333;
}

/* Hidden by Default */
.hidden {
  display: none;
}

/* Visible State */
.visible {
  display: block;
}

/* Button Styles */
.popup button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #ff3399;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.popup button:hover {
  background-color: #ff0066;
}

/* Success Popup Style */
#successPopup {
  border: 2px solid #f1aed0;
  color: #f1aed0;
}

/* Failure Popup Style */
#failurePopup {
  border: 2px solid #dc3545;
  color: #dc3545;
}
