/* General Styling */
#myForm {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* General styles for labels */
.field_label {
  font-size: 16px;
  font-weight: 400; /* Bold labels */
  margin-bottom: 10px;
  display: block;
  color: #251e62; /* Label color */
}

/* Input and textarea styling */
.field.name,
.field.email,
.field.message,
.field.input,
.field.mobile,
.w-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  margin-bottom: 20px; /* Added spacing between fields */
  box-sizing: border-box;
  color: #251e62; /* Text color inside form fields */
}

/* Placeholder styling */
input::placeholder,
textarea::placeholder {
  color: #999;
}

/* Focus styling for inputs */
.field.name:focus,
.field.email:focus,
.field.message:focus,
.field.mobile:focus,
.field.input:focus {
  border-color: #251e62; /* Change border color to brand color */
  outline: none;
}

/* Styling clickable checkboxes (checkbox-like items) */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px; /* Added space between checkboxes */
}

.checkbox-item {
  display: inline-block;
  padding: 12px 20px;
  background-color: #f0f0f0;
  border: 2px solid lightgrey; /* Light grey border color */
  border-radius: 16px; /* Curved elliptical corners */
  font-size: 14px;
  font-weight: bold; /* Bold font */
  color: #251e62; /* Font color */
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px; /* Added margin between checkbox items */
  flex: 1 1 30%; /* Adjust layout */
  text-align: center;
}

.checkbox-item:hover {
  background-color: #251e62;
  color: #fff;
}

.checkbox-item.selected {
  background-color: #251e62;
  color: #fff;
  box-shadow: 0 0 10px rgba(37, 30, 98, 0.3);
}

/* Submit button */
.submitbutton.w-button {
  background-color: #251e62;
  color: #fff;
  padding: 14px 20px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  margin-top: 20px; /* Added spacing above the submit button */
}

.submitbutton.w-button:hover {
  background-color: #1f1750; /* Darker shade of the brand color */
}

/* Success and error messages */
.success_text {
  color: #251e62; /* Use the theme color for success message */
  font-size: 16px;
  font-weight: 500;
  margin-top: 20px;
}

.error-message_text {
  color: red;
  font-size: 16px;
  font-weight: 500;
  margin-top: 20px;
}

/* Media query for responsiveness */
@media (max-width: 1200px) {
  /* Adjust the checkbox item to use more width on medium screens */
  .checkbox-item {
    flex: 1 1 45%;
  }
}

@media (max-width: 768px) {
  /* Adjust the checkbox items for small screens */
  .checkbox-item {
    flex: 1 1 100%;
    padding: 10px;
    font-size: 12px;
  }

  /* Adjust form fields */
  .field.name,
  .field.email,
  .field.mobile,
  .field.message {
    padding: 10px;
    font-size: 14px;
  }

  .submitbutton.w-button {
    font-size: 14px;
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  /* Further adjustments for very small screens */
  .field.name,
  .field.email,
  .field.mobile,
  .field.message {
    font-size: 14px;
  }

  .submitbutton.w-button {
    font-size: 14px;
    padding: 10px 14px;
  }

  .checkbox-item {
    font-size: 12px;
    padding: 8px;
  }
}
/* Styling for clickable checkboxes */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.checkbox-item {
  display: inline-block;
  padding: 12px 20px;
  background-color: #f0f0f0;
  border: 2px solid lightgrey;
  border-radius: 16px;
  font-size: 14px;
  font-weight: bold;
  color: #251e62;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
  flex: 1 1 30%;
  text-align: center;
}

.checkbox-item:hover {
  background-color: #251e62;
  color: #fff;
}

.checkbox-item.selected {
  background-color: #251e62;
  color: #fff;
  box-shadow: 0 0 10px rgba(37, 30, 98, 0.3);
}

.success,
.error-message {
  display: none; /* Hidden by default */
  text-align: center;
  padding: 20px;
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 5px;
}

.success {
  background-color: #d4edda; /* Light green background */
  color: #155724; /* Dark green text */
  border: 1px solid #c3e6cb;
}

.error-message {
  background-color: #f8d7da; /* Light red background */
  color: #721c24; /* Dark red text */
  border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
  .success,
  .error-message {
    font-size: 16px;
    padding: 15px;
    margin-top: 15px;
  }
}
