#main_form.birth_form h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  text-align: center;
}

#main_form.birth_form .label {
  display: block;
  margin-top: 1.2em;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 15px;
  color: #444;
}

#main_form.birth_form input[type="text"],
#main_form.birth_form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccd0d5;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

#main_form.birth_form input[type="text"] {
  width: calc(100% - 20px);
}

#main_form.birth_form input[type="text"]:focus,
#main_form.birth_form select:focus {
  border-color: #ff4500;
  box-shadow: 0 0 0 3px rgba(226, 109, 74, 0.2);
  outline: none;
}

#main_form.birth_form .genderOptions {
  display: flex;
  gap: 20px;
  margin: 6px 0 12px;
}

#main_form.birth_form .genderOptions label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
}

#main_form.birth_form .genderOptions input[type="radio"] {
  display: none;
}

#main_form.birth_form .genderOptions span {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  border: 2px solid #999;
  border-radius: 50%;
  position: relative;
}

#main_form.birth_form .genderOptions input[type="radio"]:checked + span {
  border-color: #ff4500;
  background-color: #ff4500;
  box-shadow: inset 0 0 0 3px #fff;
}

#main_form.birth_form .selectgird {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

#main_form.birth_form .selectgird select {
  flex: 1;
}

#main_form.birth_form .selectCity {
  position: relative;
}

#main_form.birth_form #cltyResult {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;

  margin-top: 4px;
  border: 1px solid #e2e6ea;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);

  max-height: 180px;
  overflow-y: auto;
  display: none;
  font-size: 16px;
}

#main_form.birth_form #cltyResult div {
  padding: 8px 10px;
  cursor: pointer;
}

#main_form.birth_form #cltyResult div:hover {
  background: #f0f4f8;
}

#main_form.birth_form .sbtn {
  display: inline-block;
  width: 100%;
  padding: 12px;
  margin-top: 16px;
  background: #ff4500;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

#main_form.birth_form .sbtn:hover {
  filter: brightness(101%);
}

#main_form.birth_form .sbtn:disabled {
  background: #9b9b9bff;
  pointer-events: none;
  cursor: default;
}

#chweb_result .error {
  background-color: #ffeef1ff;
  padding: 3px 10px;
  text-align: center;
  border: 1px solid #ba0000ff;
  color: #ba0000ff;
  border-radius: 10px;
  font-size: 15px;
  max-width: 450px;
  margin: 5px auto;
  font-weight: 600;
}

.blink {
  animation: blinker 0.4s linear infinite;
}

@keyframes blinker {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.tableResponsive {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tableResponsive table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  font-size: 15px;
}

.tableResponsive th,
.tableResponsive td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.tableResponsive th {
  background-color: #f5f5f5;
  font-weight: 600;
  width: 30%;
}

.tableResponsive tr:hover {
  background-color: #f9f9f9;
}

.tableResponsive tr:last-child th,
.tableResponsive tr:last-child td {
  border-bottom: none;
}

.ImageTabs {
  text-align: center;
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.ImageTabs img {
  max-width: 100%;
  height: auto;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ImageTabs div[id^="img"] {
  display: none;
}

.ImageTabs div[id^="img"]:first-child {
  display: block;
}

.ImageTabs button {
  padding: 8px 16px;
  margin: 0 4px;
  border: 1px solid #ddd;
  background: white;
  color: #000;
  cursor: pointer;
}

.ImageTabs button.active {
  background: #ff4500;
  color: white;
  border-color: #ff4500;
}

.tempResult {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  font-size: 20px;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
