.dl-growth-calculator.container {
  /* max-width: 700px;
  margin: 50px auto;
  padding: 0 20px; */
  text-align: left;
  font-family: "Centra", Sans-serif;
  color: #fff;
  padding: 0px;
}

/* Headings */
.dl-growth-calculator.container h2 {
  font-size: 46px;
  font-weight: bold;
  margin-bottom: 20px;
}
p.description {
  font-size: 16px;
  margin-bottom: 20px;
}
.dl-growth-calculator.container label {
  font-size: 16px;
  display: block;
  margin-bottom: 10px;
  color: #fff;
  display: flex;
}
.dl-growth-calculator .checkbox-wrapper p{
    padding-bottom: 0px;
        margin-bottom: 0;
}

/* Form layout */
.dl-growth-calculator form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.dl-growth-calculator form > div {
  /* flex: 1 1 45%; */
  /* min-width: 150px; */
  padding: 0 !important;
    border: 0 !important;
}

.dl-growth-calculator form .input-group-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: space-between;
    width: 100%;
}

/* Gender Buttons */
.dl-growth-calculator .gender-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  /* margin-bottom: 20px; */
  flex: 1 1 100%;
  color: #ffffff;
}

.dl-growth-calculator .gender-group input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: auto;
}

.dl-growth-calculator .gender-group label {
  padding: 10.5px 30px;
  border: none;
  border-radius: 999px;
  background-color: #fff;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px !important;
  width: 100%;
  margin-bottom: 0px !important;
text-align: center;
    justify-content: center;
    
}

.dl-growth-calculator .gender-group label[for="gender-male"] {
    color: #00AEEF;
}

.dl-growth-calculator .gender-group label[for="gender-female"] {
    color: #FF6DAA;
}

/* .gender-group label:before {
  content: '';
} */

.dl-growth-calculator .gender-group input[type="radio"]:checked + label {
  color: white;
}
.dl-growth-calculator .gender-group input[type="radio"]:hover + label {
  color: white;
}
.dl-growth-calculator .gender-group input{
  transition: all 0.5s ease;
}
.dl-growth-calculator .gender-group input#gender-male:checked + label, .dl-growth-calculator .gender-group input#gender-male:hover + label {
  background-color: #00AEEF;
}

.dl-growth-calculator .gender-group input#gender-female:checked + label, .dl-growth-calculator .gender-group input#gender-female:hover + label  {
  background-color: #FF6DAA;
}
.dl-growth-calculator .gender-group input:checked + label img, .dl-growth-calculator .gender-group input:hover + label img {
    filter: brightness(100);
}
.dl-growth-calculator .gender-group img{
    width: 29px;
    height: 29px;
    margin-right: 5px;
}

/* Dropdowns and Inputs */
.dl-growth-calculator select,
.dl-growth-calculator input[type="number"],
.dl-growth-calculator input[type="date"] {
  width: 100%;
  padding: 12px 25px 12px 16px;
  font-size: 16px;
  border: none;
  border-radius: 999px;
  outline: none;
  background-color: white;
  color: #B7B7B7;
}

.dl-growth-calculator .input-group {
    display: flex;
    align-items: center;
    gap: 0px;
    background: #fff;
    border-radius: 999px;
}

.dl-growth-calculator .input-group input[type="number"] {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 999px;
  background-color: white;
  color: #000;
  font-size: 16px;
}

.dl-growth-calculator .input-unit {
  padding: 10px 16px;
  background-color: white;
  color: #000;
  border-radius: 999px;
  font-size: 16px;
}

/* Checkbox */
.dl-growth-calculator .checkbox-wrapper {
  flex: 1 1 100%;
  text-align: left;
  font-size: 14px;
  color: #ddd;
}

.dl-growth-calculator .checkbox-wrapper label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dl-growth-calculator .checkbox-wrapper a {
  color: #fff;
  text-decoration: underline;
}

/* Submit Button */
.dl-growth-calculator .submit-wrapper {
  flex: 1 1 100%;
  margin-top: 20px;
}

.dl-growth-calculator button[type="submit"] {
    padding: 10px 21px 10px 21px;
    border: 1px solid #002F87;
    border-radius: 999px;
    background-color: #002F87;
    color: white;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}
.dl-growth-calculator button[type="submit"]:hover {
    border: 1px solid #ffffff !important;
    background-color: #ffffff;
    color: #002F87;
}
.dl-growth-calculator button[type="submit"]:focus {
    outline: none;
}
.dl-growth-calculator button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Result Section */
.dl-growth-calculator .result-item {
  margin: 5px 0;
      display: flex;
    justify-content: center;
    align-items: center;
}

.dl-growth-calculator .result-item .label {
  font-weight: bold;
}

.dl-growth-calculator .result-item .value {
  margin-left: 0px;
}

.dl-growth-calculator p.disclaimer{
    font-size: 14px;
    line-height: normal;
    margin-top: 25px;
    margin-bottom: 10px;

}

/* Placeholder styling */
/* input::placeholder, input::-webkit-input-placeholder, input::-moz-input-placeholder{
  color: #B7B7B7;
  opacity: 1;
}

select::placeholder,
select::-webkit-placeholder,
select::-moz-placeholder {
  color: #B7B7B7;
  opacity: 1;
} */


.dl-growth-calculator input[type=checkbox]{
    width: 20px;
    height: 20px;
}

/* Select dropdown styling */
.dl-growth-calculator select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

.dl-growth-calculator select:focus {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Number input placeholder fix */
.dl-growth-calculator input[type="number"]::placeholder {
  color: #B7B7B7 !important;
  opacity: 1 !important;
}

.dl-growth-calculator input[type="number"]::-webkit-input-placeholder {
  color: #B7B7B7 !important;
}

.dl-growth-calculator input[type="number"]::-moz-placeholder {
  color: #B7B7B7 !important;
  opacity: 1 !important;
}

.dl-growth-calculator input[type="number"]:-ms-input-placeholder {
  color: #B7B7B7 !important;
}

.dl-growth-calculator input[type="number"]:-moz-placeholder {
  color: #B7B7B7 !important;
  opacity: 1 !important;
}

/* Select placeholder color fix */
.dl-growth-calculator select {
  color: #B7B7B7;
}

.dl-growth-calculator select:focus,
.dl-growth-calculator select:valid {
  color: #000;
}

.dl-growth-calculator select option {
  color: #000;
}

#dl-clear-session-btn{
    padding: 0;
    border: 0;
    color: #00D4FF;
    text-decoration: underline;
    background: none;
    cursor: pointer !important;
}
#dl-clear-session-btn:hover, #dl-clear-session-btn:focus{
    background: none;
    color: #002F87;
    border: none;
    outline: none;
}

.dl-growth-calculator .cta-wrapper{
    display: flex;
    gap:10px;
    padding-top:10px;
}
.dl-growth-calculator .cta-wrapper a{
  background-color: #002F87;
  border-color: #002F87;
}
.dl-growth-calculator .cta-wrapper a:hover{
  background-color: #ffffff;
  border-color: #ffffff;
}

.dl-growth-calculator.result-wrapper .container{
    display: flex;
    justify-content: space-between;
    background: rgb(255 255 255 / 20%);
    backdrop-filter: blur(100px);
    border-radius: 20px;
    padding: 20px;
    gap: 30px;
}
.dl-growth-calculator.result-wrapper .container > div{
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
}

.dl-growth-calculator .result-label{
    font-size: 24px;
    font-weight: bold;
    padding: 10px 0 !important;
}
.dl-growth-calculator.result-wrapper h4{
    font-size: 20px;
    margin-bottom: 5px;
}
.dl-growth-calculator.result-wrapper img{
    max-height: 107px;
    max-width: 110px;
    min-height: 107px;
}
#bmi, #height {
    font-size: 30px;
    font-weight: 500;
    margin-top: 5px;
}
#bmi_result, #height_result {
    font-size: 20px;
    font-weight: 500;
    margin-top: 5px;
}
.normal #bmi, .normal #bmi_result, .normal #height, .normal #height_result{
  color: #AAE649;
}
.not-normal #height, .not-normal #height_result, .not-normal #bmi, .not-normal #bmi_result{
  color: #FF9C50
}
.not-normal .result-icon{
  background-image: url("/wp-content/uploads/2025/07/result-icon-2.svg");
}
.normal .result-icon{
  background-image: url("/wp-content/uploads/2025/07/result-icon-1.svg");
}

.dl-growth-calculator.result-wrapper .submit-wrapper p:nth-child(2){
  font-weight: 600;
}
.dl-growth-calculator.result-wrapper .result-item .result-icon{
    width: 30px;
    height: 30px;
    margin-left: 10px;
    min-height: 30px;
    min-width: 30px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.loader {
  display: inline-block;
  width: 23px;
  height: 23px;
  border: 3px solid #012f87;
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 10px;
  vertical-align: text-top;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .dl-growth-calculator .date-wrapper{
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    .dl-growth-calculator .gender-group img {
        width: 23px;
        height: 23px;
        margin-right: 0px;
    }
    .dl-growth-calculator form .input-group-row, .gender-group{
        gap: 6px;
    }
    .dl-growth-calculator.container h2 {
      font-size: 30px;
    }
    .dl-growth-calculator.result-wrapper img {
        max-height: 96px;
        max-width: 110px;
        min-height: 96px;
    }
}