#bads-calculator .subject-table {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  border-collapse: separate;
  border-spacing: 8px 8px;
  margin-left: 0;
  margin-right: auto; 
}

.calculator-instructions {
  text-align: left;
}

.scores-atar__heading {
  color: #505050;
  font-size: 1.2rem;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.scores-atar__display--large {
  display:block;
  font-size: 3rem;
  font-weight: 700;
  text-align:center;
}
.center-align {
  text-align: center;
}

input.estimate-atar {
  display: block;
  color: #66717d;
  width: 200px;
  max-width: 100%;
  margin: 25px auto 50px;
  margin-bottom: 1rem;
  background: transparent;
  border: 1px solid #d0d0d0;
  line-height: 64px;
  text-align: center;
  font-size: 32px;
}

.select-control {
  background-color: #fff;
  border-radius: 0;
  color: #333;
  height: 40px;
  outline: none;
  line-height: 36px;
  margin-right: 10px;
  margin-left: 10px;
}

.sq-form-field {
  text-align: center;
}

.rhs-boxes {
  border: 2px solid #505050;
  /* border: 2px solid #d0d0d0; */
  padding: 1px;
  margin: 1.5rem 0;
  margin-left: 8px;
  margin-right: auto; 
  width: min(100%, 26rem);
  box-sizing: border-box;
}

.rhs-boxes + .rhs-boxes {
  margin-top: 1rem;
}

#bads-calculator > .row > .col-md-4 {
  padding-top: 2rem;
}

.final-result {
  background-color: #00739d;
}

.final-result,
.final-result * {
  color: #fff;
}

#bads-calculator .subject-table tbody td {
  border: 1px solid #d0d0d0;
  background: #fff;
}

#bads-calculator .subject-table td {
  padding: 9px 1rem;
}

#bads-calculator .subject-table td:last-child {
  padding: 0;
  border: 1px solid #d0d0d0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  vertical-align: middle;
}

#bads-calculator .subject-row__score {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: none;
  background: transparent;
  padding: 17px;
  color: #00739d;
}

#bads-calculator .subject-table input.subject-row__score {
  border: none !important;
  box-shadow: none !important;
  background: transparent;
}

#bads-calculator .subject-table thead th {
  border: 1px solid #d0d0d0;
}

@media (max-width: 991px) {
  .rhs-boxes {
    margin-top: 0rem;
    margin-bottom: 0.1rem;
  }

  #bads-calculator > .row > .col-md-4 {
    padding-top: 0rem;
  }
}

@media (max-width: 767px) {
  .rhs-boxes {
    margin-left: 0;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input:focus-visible {
  outline: 2px solid #00739d;
  outline-offset: 0px;
}

/* Warning message container */
.warning-popup {
    background-color: rgba(255, 186, 0, 0.2);
    padding: 10px 20px 10px 60px;
    box-sizing: border-box;
    border-radius: 0px;
    position: relative;
    margin: 16px 0; 
    display: inline-block
}

/* Warning icon rendered with a pseudo-element */
.warning-popup::before {
    content: "\0021" / "";
    position: absolute;
    left: 20px;
    top: 10px;
    width: 20px;
    height: 20px;
    background-color: #FFBA00;
    color: #fcf1cd;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: path("M10 0 Q11 0 12 1.5 L20 17 Q20 18 18 18 L2 18 Q0 18 0 17 L8 1.5 Q9 0 10 0 Z");
}

#form-message.hidden {
  display: none;
}