@import url("https://fonts.googleapis.com/css2?family=Kanit&family=Nova+Square&family=Skranji&display=swap");

/* Base Styles */
body {
  font-family: "Kanit";
  background: #b32346;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin: 0;
}

.form-container {
  background-color: white;
  padding: 50px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 80vw;
  box-sizing: border-box;
}

.header {
  text-align: center;
  margin: 0 0 20px 0;
}

.logo-image {
  width: 50%;
  height: auto;
}

h1 {
  color: red;
  font-size: 40px;
  margin: 0;
}

.header .profile-pic {
  width: 70%;
  margin: 0 auto;
}

h2 {
  color: #666;
  font-size: 38px;
  width: 50%;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 200px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.form-inner-group {
  width: 45%;
}

.form-group label {
  margin-bottom: 5px;
}

.form-group input,
.form-group select {
  width: calc(100% - 20px);
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 5px;
  font-family: "Kanit" !important;
}

.home-province,
.home-district,
.home-municipality {
  width: 30%;
}

.group-row {
  display: flex;
  align-items: center;
}

.group-row input {
  width: auto !important;
  margin-right: 20px;
}

button {
  font-family: "Kanit" !important;
  font-size: 20px;
  background-color: red;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 20px;
}

.border {
  border: 2px solid #000;
}

button:hover {
  background-color: darkred;
}

.errors_parent {
  background: #ff000011;
  padding: 10px;
  border-radius: 10px;
}

.errors {
  color: red;
  padding: 10px 0 5px 0;
  display: flex;
  align-items: center;
}
.errors box-icon {
  margin: 0 7px;
}
/* Animation */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}


/* Responsive Styles */
@media (max-width: 768px) {
  .form-container {
    max-width: 95vw;
  }
  .header-content .logo-image {
    width: 150%;
  }
  .header-content h2 {
    font-size: 18px;
  }
  h2 {
    font-size: 28px;
    width: 100%;
  }

  .form-group {
    flex-direction: column;
    /*gap: 10px;*/
  }

  .form-inner-group {
    width: 100%;
    margin: 10px;
  }

  .home-province,
  .home-district,
  .home-municipality {
    width: 100%;
  }

  button {
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .form-container {
    max-width: 95vw;
  }
  .form-container {
    padding: 20px;
  }
  .header-content .logo-image {
    width: 150%;
  }
  .header-content h2 {
    font-size: 18px;
  }

  .header-content {
    height: auto;
  }

  h2 {
    font-size: 24px;
  }

  .form-group {
    margin-bottom: 10px;
  }

  .form-group label {
    margin-bottom: 3px;
  }

  .form-group input,
  .form-group select {
    padding: 6px;
  }

  button {
    padding: 8px;
  }
}

@media (min-width: 769px) {
  .form-container {
    max-width: 60vw;
  }
}
