/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  background-color: #f7f7f7;
  color: #333;
  line-height: 1.6;
  font-size: 16px;
  padding: 20px;
}

/* Centering and styling the text */
.text-container {
  text-align: left; /* left-align everything */
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 0; /* Add padding for better spacing */
}

/* Main header styling */
.main-header {
  font-weight: bold;
  font-size: 28px;
  color: #333;
  margin-bottom: 10px; /* Space below the main header */
}

/* Divider line between headers */
.divider {
  border: none;
  border-top: 3px solid #f36f3a; /* Line color matching the theme */
  margin: 15px 0;
  width: 100%;
}

/* Sub-header styling */
.sub-header {
  font-weight: bold;
  font-size: 28px; /* Ensure the sub-header is bold and large */
  color: #333;
  margin-bottom: 40px;
}

/* Paragraph text styling */
.info-text {
  font-weight: normal;
  font-size: 18px;
  color: #333;
  text-align: left; /* Align the paragraph text to the left */
  line-height: 1.6;
  margin-bottom: 5px;
}

/* Styling for emphasized text */
mark {
  background-color: #fffa8b; /* Light yellow background for emphasis */
  font-weight: bold; /* Make the marked text bold */
}

/* Center the logo and control its size */
.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 10px; /* Reduces space between the logo and text */
}

.logo {
  max-width: 250px; /* Set a maximum width for the logo */
  width: 100%;
  height: auto; /* Maintain aspect ratio */
}

/* Container for the form */
.container {
  max-width: 600px;
  margin: 50px auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: linear-gradient(
    135deg,
    #f0f0f0,
    #fafafa
  ); /* Subtle background gradient */
}

/* Form Styling */
form {
  display: flex;
  flex-direction: column;
}

/* Form elements */
.form-label {
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

/* Image styling inside the form */
.form-image {
  max-width: 100%; /* Ensures the image doesn't exceed the container width */
  height: auto; /* Maintains the aspect ratio */
  display: block; /* Ensures the image behaves like a block-level element */
  margin: 0 auto 20px auto; /* Centers the image and adds spacing below */
}

/* Disclaimer text styling */
.disclaimer-text {
  font-size: 14px;
  color: #555;
  background-color: #f9f9f9;
  border: 1px solid #f36f3a;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  line-height: 1.5;
}

input[type="email"],
input[type="tel"],
input[type="text"],
select {
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-bottom: 20px;
  font-size: 16px;
  background-color: #f9f9f9;
  transition: border 0.3s ease;
}

input[type="email"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: #f36f3a;
}

select {
  cursor: pointer;
}

.btn {
  background-color: #f36f3a; /* Orange color */
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 5px;
  width: 100%;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.btn:hover {
  background-color: green; /* Darker orange on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  input[type="email"],
  input[type="tel"],
  input[type="text"],
  select,
  button[type="submit"] {
    font-size: 18px;
    margin-left: 10px;
  }

  .text-container p {
    font-size: 16px; /* Adjust font size for smaller screens */
  }

  .text-container p:nth-child(1),
  .text-container p:nth-child(2) {
    font-size: 18px;
  }
}

/* Styling for the hidden caste field */
#otherCasteDiv {
  margin-top: -10px;
}

/* Styling for labels to improve spacing */
.mb-3 {
  margin-bottom: 20px;
}

/* Styling for Phone Number Field */
#phone-wrapper {
  margin-bottom: 20px;
}

/* Phone number validation */
#phone {
  padding-left: 50px; /* Adjust based on country flag positioning */
}

/* Utility to add a little space between form sections */
.form-group {
  margin-bottom: 20px;
}

/* Styling for the caste select box */
.form-select {
  appearance: none;
  background: url("data:image/svg+xml;charset=US-ASCII,%3csvg xmlns%3d%22http%3a//www.w3.org/2000/svg%22 viewBox%3d%220 0 4 5%22%3e%3cpath fill%3d%22%23444%22 d%3d%22M2 0L0 2h4zM2 5L0 3h4z%22/%3e%3c/svg%3e")
    no-repeat right 10px center;
  background-size: 12px;
  padding-right: 40px;
}

/* Adding hover effect for inputs */
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="text"]:hover,
select:hover {
  border-color: #f36f3a;
}

/* Form title styling */
form h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8em;
  color: #007bff;
}

.required-asterisk {
  color: #f36f3a; /* Set color for the asterisk */
  margin-left: 0px; /* Space between label and asterisk */
  font-size: 1.2em; /* Adjust size if needed */
  vertical-align: top; /* This will align asterisk with the top of the text */
}

.acknowledge-container {
  margin-top: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.acknowledge-container input[type="checkbox"] {
  margin-right: 8px;
  accent-color: #f36f3a;
}

.acknowledge-container label {
  font-size: 1em;
  color: #555;
  font-weight: bold;
}
