* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background-color: #F0F0F0; /* Light gray background for the page */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh; /* Adjusted to ensure proper height on smaller screens */
  padding-top: 30px;
}

.container {
  background-color: #ffffff; /* White background for the form */
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  max-width: 650px;
  width: 100%;
  border: 1px solid #003366; /* Deep blue border */
}

header {
  display: flex;
  flex-direction: column; /* Stack logo and text vertically */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  height: auto; /* Adjust height based on content */
  background-color: #003366; /* Deep blue background for header */
  color: #FFD700; /* Gold text for contrast */
  border-bottom: 5px solid #FFD700; /* Royal purple border for emphasis */
  border-radius: 15px;
  font-size: 1.5rem; /* Adjusted for responsive font size */
}

#logo-container {
  display: flex; /* Use flexbox to center items */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically if needed */
  height: auto; /* Adjust height based on content */
}

#logo {
  max-width: 100px; /* Adjust size as needed */
  height: auto; /* Maintain aspect ratio */
}

header h1 {
  font-size: 1.8rem; /* Larger font size for the heading */
  font-family: 'Georgia', serif; /* Elegant font for the heading */
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 10px;
}

.form {
  display: flex;
  flex-direction: column;
}

.input-box,
.dropdown,
.gender-box {
  margin-bottom: 20px;
}

label {
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
  color: #003366; /* Deep blue for labels */
  font-family: 'Arial', sans-serif; /* Elegant font for labels */
}

input[type="text"],
input[type="date"],
input[type="number"],
select{
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #003366; /* Deep blue border */
  outline: none;
  margin-top: 8px;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus {
  border-color: #FFD700; /* Gold border on focus */
}
.gender-box {
    margin-top: 15px; /* Space above the gender options */
}


.button-container {
  display: flex;
  justify-content: left; /* Center horizontally */
  margin-top: 20px; /* Adjust as needed */
}

button {
  background-color: #6A3D91; /* Royal purple */
  color: white;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 1rem; /* Responsive font size */
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%; /* Make button fill the width of its container */
  max-width: 400px; /* Optional: limit max width for large screens */
}

button:hover {
  background-color: #4A004B; /* Darker purple for hover */
}

#otherMohallaDiv {
  margin: 10px; /* Adjusted top margin for spacing */
}

.column {
  display: flex;
  justify-content: space-between;
}

.column .input-box {
  width: 48%;
}

p {
  font-family: 'Arial', sans-serif;
  margin: 20px;
  text-align: center;
  color: #333333; /* Dark charcoal for paragraph text */
}

h2 {
  background-color: #003366; /* Deep blue for headers */
  color: #FFD700; /* Gold text for contrast */
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 10px;
  font-family: 'Georgia', serif; /* Elegant font for section headers */
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

table,
th,
td {
  border: 1px solid #003366; /* Deep blue for table borders */
}

th,
td {
  padding: 12px;
  text-align: center;
}

th {
  background-color: #DDCFDA; /* Royal purple for table headers */
  color: #FFD700; /* Gold text for contrast */
}

.program-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  display: none; /* Hide by default */
}

.program-table th,
.program-table td {
  border: 1px solid #003366; /* Deep blue for table borders */
  padding: 8px;
  text-align: center;
}

.program-table th {
  background-color: #8AB0D0; /* Dark pink for table headers */
  color: black; /* Gold text for contrast */
}

.program-table tr:nth-child(even) {
  background-color: #F0F0F0; /* Light gray for even rows */
}

.program-table tr:hover {
  background-color: #E0E0E0; /* Slightly darker gray for hover effect */
}

.program-section {
  margin-top: 20px;
}

.program-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: #003366; /* Deep blue for section titles */
}

/* Responsive styles */
@media (max-width: 768px) {
  .container {
    padding: 20px; /* Adjust padding for smaller screens */
  }

  header h1 {
    font-size: 1.5rem; /* Smaller font size for header on mobile */
  }

  button {
    font-size: 0.9rem; /* Adjust button font size for mobile */
    padding: 12px; /* Adjust padding for button */
  }

  input[type="text"],
  input[type="date"],
  input[type="number"],
  select {
    padding: 10px; /* Adjust input padding */
  }

  .column .input-box {
    width: 100%; /* Full width for inputs in single column on small screens */
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.5rem; /* Smaller font size for section titles */
  }

  header {
    height: auto; /* Allow header height to adjust based on content */
  }

  #logo {
    max-width: 80px; /* Smaller logo for mobile */
  }

  button {
    padding: 10px; /* Adjust button padding for smaller devices */
  }
}


/* Loader Styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #3498db;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-container p {
    margin-top: 10px;
    color: #333;
    font-size: 16px;
}
