/* Container */
.match_container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  text-align: left;
}

/* Column */
.match_col {
  flex: 1;
  min-width: 280px;
}

.match_col > h3 {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0px;
  padding: 0;
  margin-block: 1em;
}

.match_col:nth-child(1) {
  border-right: 1px solid #e0e0e0;
  padding-right: 1em;
}
.match_selectGroup {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Labels */
.match_col label {
  display: block;
  font-weight: bold;
  margin: 8px 0 4px;
}

/* Inputs */
.match_col input,
.match_col select {
  width: 100%;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background-color: #fff;
  color: #333333;
}

/* Suggestions dropdown */
.match_suggestions {
  border: 1px solid #e0e0e0;
  max-height: 150px;
  overflow-y: auto;
  background: #fff;
  color: #333333;
  position: absolute;
  z-index: 1000;
  max-width: 260px;
}

.match_suggestions div {
  padding: 8px;
  cursor: pointer;
}

.match_suggestions div:hover {
  background: #ff4500;
  color: #fff;
}

.kundalimatching {
  text-align: center;
}

@media (max-width: 600px) {
  .match_container {
    flex-direction: column;
  }

  .match_col {
    flex: 1;
    min-width: auto;
  }

  .match_col:nth-child(1) {
    border-right: none;
    border-bottom: 1px solid #9b9b9b;
    padding-right: 0px;
    padding-bottom: 3em;
  }
}

.alert-danger,
.text-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
}

.alert-success,
.text-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
}

.alert-danger h2,
.alert-success h2 {
  padding: 0;
  margin: 0;
}

.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;
}

.chartimage {
  display: flex;
  gap: 10px;
  text-align: center;
}

.chartimage h3 {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0px;
  padding: 0;
  justify-content: center;
}

.chartimage img {
  width: 100%;
}

#main_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 .sbtn:hover {
  filter: brightness(101%);
}

#main_form .sbtn:disabled {
  background: #9b9b9bff;
  pointer-events: none;
  cursor: default;
}

.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);
  }
}

#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;
  }
}

#main_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 select:focus {
  border-color: #ff4500;
  box-shadow: 0 0 0 3px rgba(226, 109, 74, 0.2);
  outline: none;
}
