@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  font-family: 'Montserrat', sans-serif !important;
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #fff;
  color: #333;
  line-height: 1.5;
  font-family: 'Montserrat', sans-serif;
}
.check-box-container{
     display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  }
  .check-box-container input{
      position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
  }
  .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #D9D9D9;
  border-radius:3px; 
  
}
.check-box-container input:checked ~ .checkmark:after {
  display: block;
  color:black;
}
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  color: black
}

/* Style the checkmark/indicator */
.check-box-container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
.password-box{
        margin-top: auto;
    margin-bottom: auto;
    margin-right: 15px;
  }
  .password-toggle{
        margin-top: auto;
    margin-bottom: auto;
    margin-right: 15px;
  }
  .password{
        border: none;
    outline: none;
  }

.top-header {
  position: relative;
  width: 100%;
  background-color: #1E4B8B;
  color: #ffffff;
  text-align: center;
  padding: 86px 20px;
}

.top-header h1{
  font-family: "Merriweather", serif !important;
  font-weight: 400 !important;
  font-size: 64px;
  line-height: 28px;
}

.step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
}

.step-indicator .dot {
  font-size: 1.5rem;
  color: #D9D9D9;
  user-select: none;
}

.step-indicator .step {
  font-weight: 400;
  font-size: 20px;
  color: #17A2B8;
  text-decoration: none;
}

.step-indicator .dot-link svg {
  display: block;
}

.container {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  gap: 40px;
  margin: 40px auto;
  max-width: 1200px;
}

.back-button{
  background-color: #17A2B8;
  font-size: 16px !important;
}

.continue-button{
  font-size: 20px;
  padding: 0.75rem 3.75rem !important;

}

.heading4{
  font-weight: 500;
}

/* Responsive Fix */
@media (max-width: 1024px) {
  .container {
    margin: 20px;
  }
}
/* MOBILE RESPONSIVE STARTS HERE */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    margin: 10px;
    padding: 10px;
  }
.top-header h1{
font-weight: 400;
line-height: 28px;
  /* font-family: "Merriweather", serif !important; */
}
.step-indicator{
  gap: 10px;
}
.checkbox-group input[type="checkbox"]{
  accent-color:  gray;
}
label{
  font-size: 20px;
  font-weight: 500 !important;
  line-height: 20px;
}
.container{
  gap: 0px;
}
small{
  font-size:16px !important;
}
.submit-btn{
  margin: 0px auto;
}
.medintro-section{
  margin-bottom: 40px;
}

.medintro-section p{
  line-height: 28px;
}
.form-actions button{
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.household-form{
  margin-top: 40px;
}
.household-form{
  gap: 0px !important;
}
.intro-section p{
  margin-bottom: 5px !important;
}
.insurance-form-container{
  margin-top: 10px !important;
}
.intro-section{
  margin-bottom: 40px;
}
fieldset.insurance-options legend{
  margin-bottom: 0px !important;
}
.checkbox-grid label{
  width: auto !important;
  gap: 5px !important;
  font-size: 15px;
  font-weight: 400 ;
  color: #1E1E1E;
}
.checkbox-grid{
  flex-direction: row !important;
  gap: 10px 4px!important;
}
.checkbox-grid{
  justify-content: normal !important;
}
.demographic-container{
  text-align: left !important;
  margin: 0px !important;
}
.demographic-heading{
  font-size: 16px !important;
  font-weight: 400 !important;
  margin-bottom: 0px !important;
  color: #1E1E1E;
}
.demographic-form .form-group{
  width: 100%;
}
.demographic-form .form-group legend
{
  font-size: 20px !important;
  margin-left: auto;
  margin-right: auto;
}
.us-res{
  margin-left: 0px !important;
}
.mobile-flex{
  display: flex;
  justify-content: center;
}
.mobile-flex label{
  display: flex;
  font-size: 14px;
  line-height: 20px;
  /* margin: 0px !important; */
}
.evaluation-right label{
  font-size: 20px !important;
  line-height: 20px !important;
}
#eligibility-title{
  text-align: center;
  font-size: 26px !important;
  font-weight: 500;
}
.eligibility-review{
  margin: 0px !important;
}
.eligibility-review hr {
  width: 100%;
  color: #D9D9D9;
  border-top: 1px solid #D9D9D9 !important;
  margin: 0px !important;
}
#eligibilityTitle{
  font-size: 26px !important;
  font-weight: 400;
  color: #000;
  line-height: 26px;
}
.highlight-box{
  font-size: 26px !important;
  font-weight: 400 !important;
}
.eligibility-container p{
  font-size: 12px !important;
}
.details p{
  font-size: 16px !important;
  font-weight: 500;
}
.eligibility-container hr{
  width: 100%;
  margin: 0px;
}
.button-group .btn{
  padding: none !important;
}

}


.info-section,
.form-section {
  /* flex: 1 1 45%; */
  /* padding-left: 70px; */
}

.info-section h1 {
  font-size: 32px;
  font-weight:400;
  max-width: 500px;
  margin-bottom: 20px;
  line-height: 40px;
}

.info-section p, .intro-section p {
    font-size: 24px;
    margin-bottom: 1rem;
    max-width: 520px;
    line-height: 28px;
    font-weight: 400;
}

.form {
  max-width: 1200px;
  margin: auto;
  display: flex;
  padding-left: 20px;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

.form-group.full {
  width: 100%;
}

label {
  display: block;
  font-weight: bold;
  font-weight: 500;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
select {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  line-height: 20px;
}

input:focus,
select:focus {
  /* outline: 2px solid #005fcc;
  border-color: #005fcc; */
}

small {
  font-size: 12px;
  color: #00000080;
  margin-top: 5px;
  line-height: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400 !important;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 6px;
}

.radio-group input[type="radio"] {
  margin-right: 5px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
}

.checkbox-group label {
  font-weight: normal;
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin: 1rem auto;
}

.checkbox-grid label {
  width: 260px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  font-size: 1rem;
}

fieldset.insurance-options {
  border: none;
  padding: 0;
}

fieldset.insurance-options legend {
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.form-actions {
  display: flex;
  justify-content:center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary,
button,
.submit-btn {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-primary,
button,
.submit-btn {
  background-color: #17A2B8;
  color: white;
  font-size: 20px;
}
.submit-btn:disabled,
.btn-primary:disabled{
    background-color: #5a5858; /* gray */
  color: #ffffff;
  cursor: not-allowed;
  opacity: 0.6;
}
/* Spinner only when disabled */
.btn-primary:disabled::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid #666;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader {
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

/* Animation */
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
select:invalid {
  color: gray;
}
select option {
  color: black;
}
.submit-btn {
  font-size: 25px;
  width: 250px;
  white-space: nowrap;
  display: inline-block;
}

.nav-toggle{
  margin-left: 90px;
}


.btn-secondary {
  background-color: #e0e0e0;
  color:  #FFF;
  
}

.medication-form-container,
.household-form-container,
.insurance-form-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: #333;
}

.insurance-form-container {
  max-width: 1200px;
  align-items: center;
}

.medication-form,
.household-form,
.insurance-form {
  display: flex;
  flex-direction: column;
  margin-top: 80px;
  gap: 1.5rem;
}

.privacy-img {
  display: block;
  margin: 20px 80px;
  max-width: 50%;
  height: auto;
}
.error{
    font-size: 11px;
    font-weight: 400;
    color: #B4000080;
  }

/* Responsive Adjustments */
@media (max-width: 768px) {
  .container,
  .form-row {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .form-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    flex: 1 1 100%;
    width: 100%;
  }

  .radio-group {
    flex-direction: column;
    gap: 10px;
  }

  .checkbox-grid {
    flex-direction: column;
  }
  .top-header h1{
    font-size:40px;
  }
  .top-header {
    padding: 50px 0px;
}
  .input-fields2{
    margin-left:0px;
    margin-right:0px;
    width:100%;
  }
}
@media (max-width: 749px) {
.top-header h1 {
  font-size: 45px;
        line-height: 50px;
    }
        .top-header {
        padding: 50px 20px;
    }
}