/* Contact Form Styling */
#contact {
  max-width: 800px;
  margin: 35px auto;
  padding: 50px 20px;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Heading Styles */
#contact h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #222831;
  font-family: "Kanit", sans-serif;
}

#contact p {
  font-size: 1.2em;
  line-height: 1.6;
  color: #393e46;
  max-width: 700px;
  margin: 0 auto;
  margin-bottom: 30px;
}

/* Form Field Styles */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

form label {
  font-size: 1.1em;
  color: #222831;
  font-weight: 600;
  text-align: left;
  display: block;
}

input,
textarea {
  width: 100%;
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: #00adb5;
  outline: none;
}

/* Checkbox Alignment */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 30px; /* Adds space between the checkbox and label */
  padding-left: 10px;
}

.form-checkbox input[type="checkbox"] {
  transform: scale(1.5); /* Adjust size of the checkbox */
  margin: 0;
}

/* Button Styles */
button {
  background-color: #00adb5;
  color: white;
  border: none;
  padding: 15px;
  font-size: 1.2em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #00949e;
}

/* Success and Error Message Styles */
.alert {
  font-size: 1.1em;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  text-align: left;
}

.alert-success {
  background-color: #dff0d8;
  color: #3c763d;
  border: 1px solid #d6e9c6;
}

.alert-error {
  background-color: #f2dede;
  color: #a94442;
  border: 1px solid #ebccd1;
}

/* Error Message for Individual Fields */
span[style="color: red"] {
  font-size: 0.9em;
  display: block;
  text-align: left;
  margin-top: 5px;
  color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 1024px) {
  #contact {
    margin: 50px auto;
    padding: 50px 15px;
  }

  form {
    gap: 15px;
  }

  .form-checkbox input[type="checkbox"] {
    transform: scale(1); /* Adjust size of the checkbox */
    margin: 0;
  }

  button {
    padding: 12px;
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  #contact {
    margin: 35px auto;
    padding: 46px 15px;
  }

  form {
    gap: 15px;
  }

  .form-checkbox input[type="checkbox"] {
    transform: scale(1); /* Adjust size of the checkbox */
    margin: 0;
  }

  button {
    padding: 12px;
    font-size: 1.1em;
  }
}
