body, html {
    font-family: Raleway,sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    background-color: #e2effc;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* @font-face {
    font-family: 'Font Awesome 4 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("../webfonts/fa-solid-900.woff2");
  } */

h1 {
    font-family: Raleway,sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    color: #004FA3;
    margin-bottom: 30px;
}

h3 {
    font-family: Raleway,sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    color: #7b7b7b;
}
.container {
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

#quiz-container {
    /* background: white; */
    width: 100%;
    margin: 50px auto;
    /* padding: 20px; */
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
}

#progress-bar-container {
    width: 600px;
    background-color: #fff;
    padding: 3px;
    margin: 0 auto;
    margin-bottom: 20px; /* Space below the progress bar */
    border-radius: 20px;
}

#progress-bar {
    height: 20px;
    background-color: #F46A25;
    text-align: center;
    font-family: Raleway,sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    line-height: 20px; /* Aligns text vertically */
    color: white;
    border-radius: 20px;
}

.step {
    display: none;
}

.step.active {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    text-align: center;
    align-items: normal;
    margin: 0 auto; 
}

input[type="text"], input[type="email"], input[type="tel"] {

    border: 1px solid #dee2e6;
    border-radius: 10px;
    display: inline-block;
    width: 350px;
    padding: 20px;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0px 15px 15px -10px #00000061;
}

input::placeholder {
    font-family: Raleway,sans-serif;
    font-weight: 500;
    font-optical-sizing: auto;
    color: #7b7b7b;
}

input:focus-visible {
    color: #212529;
    border: 2px solid #fa9d6e;
    background-color: #fff;
    outline: 2px solid #fa9d6e;
    /* outline: 2; */
    box-shadow: 0px 15px 15px -10px #00000061;
}

button {
    display: inline-block;
    margin: 10px 0;
    font-size: 28px;
    padding: 20px 40px;
    height: 80px;
    border-radius: 8px;
    background-color: #F46A25;
    color: #fff;
    font-family: Raleway,sans-serif;
    font-weight: 600;
    border: none;
    box-shadow: 0px 15px 15px -10px #00000061;
    text-decoration: none;
    width: 450px;
    margin-left: auto;
    margin-right: auto;
}

button:hover {
    background-color: #E9560C;
}

.secondary-text {
    width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.navbar {
    width: 900px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    margin-left: auto;
    margin-right: auto;
}

header {
    background-color: #e2effc;
}

.logo-container img {
    width: auto;
    height: 40px;
}

.phone-container {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 10px;
    border-radius: 20px;
}

.phone-number {
    display: block; /* Ensures it's visible on desktop */
}

.phone-icon {
    display: none; /* Hidden by default, shown only on mobile */
}

.row   {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}
.text-center {
    text-align: center !important;
}

.badges {
    width: 700px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
}

.pre-footer {
    display: flex;
    flex-direction: column;
    padding: 30px 0;
}

.agent-pic {
    width: 120px;
    height: auto;
}

.column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.border-top {
    border-top: 0.5px solid #012d5d;
}

li {
    list-style: none;
    margin: 10px 0;
    font-size: 1.3rem;
    color: #012d5d;
}

li i {
    margin-right: 5px;
    font-size: 1.2rem;
}

.disclaimer {
    width: 80%;
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: justify;
}
footer {
    background-color: #081b2f;
    color: rgb(255, 255, 255);
    padding-top: 40px;
}


.final-step-desk {
    display: block;
    margin-top: 20px;
    margin-bottom: 40px;
}

.final-step-mob {
    display: none;
}

@media (max-width: 600px) {
    .navbar {
        width: 100%;
        justify-content: center; /* Center logo on mobile */
        padding: 0;
    }

    .agent-pic {
        margin-top: 15px;
    }

    .logo-container {
        order: -1; /* Ensures logo is on top if items wrap */
        /* width: 100%; Full width to center logo */
        text-align: center; /* Center the logo image */
    }

    .phone-container {
        position: initial;
        right: 10px; /* Position the phone icon on the right */
        top: 10px; /* Adjust top position based on your header's height */
        background-color: #fff;
        padding: 10px;
        border-radius: 20px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .phone-number {
        display: block; /* Hide phone number text */
    }

    .phone-icon {
        display: block; /* Show phone icon */
        width: 24px; /* Icon size */
        height: auto;
    }

    .badges {
        flex-direction: column;
        display: flex;
        align-items: center;
        width: 100%;
    }

    .pre-footer {
        /* padding: 20px; */
        width: 100%;
    }
    .sec-badge {
        max-width: 150px;
        height: auto;
        margin-bottom: 15px;
    }

    #quiz-container {
        width: 100%;
        margin: 30px auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .step-layout {
        width: 90%;
    }

    #progress-bar-container {
        width: 90%;
        margin: 0 auto;
        margin-bottom: 30px;
    }
    button {
        width: 90%;
        font-size: 24px;
    }
    .secondary-text {
        width: 90%;
    }
    .logo-container {
        /* width: 100%; */
        display: flex;
        flex-direction: row;
    }
    .logo-container img {
        width: auto;
        height: 30px;
    }

    .navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
    flex-direction: column;
    padding-top: 20px;
    }

    input[type="text"], input[type="email"], input[type="tel"] {

        border: 1px solid #dee2e6;
        border-radius: 10px;
        display: inline-block;
        width: 90%;
        padding: 20px;
        font-size: 28px;
        margin-bottom: 20px;
        text-align: center;
        box-shadow: 0px 15px 15px -10px #00000061;
    }

    .final-step-desk {
        display: none;
    }
    
    .final-step-mob {
        display: block;
        max-width: 100%;
        margin-top: 20px;
        margin-bottom: 40px;
    }
}



/* Typing section */

#typing {
    font-family: Raleway, sans-serif;
    color: #004FA3;
    font-size: 25px;
    font-weight: 600;
    white-space: normal;
    overflow: hidden;
    margin-left: 15px;
    width: 300px;
  }

  @media (max-width: 600px) {
    #typing {
        font-family: Raleway, sans-serif;
        color: #004FA3;
        font-size: 25px;
        font-weight: 600;
        white-space: normal;
        overflow: hidden;
        margin-top: 15px;
        width: 300px;
        height: 90px;
        text-align: center;
      }
  }
  
  /* Typing effect remains but without blinking */
  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }
  


  /* new css */

  /* #progress-bar-container {
    width: 100%;
    background-color: #ddd;
    padding: 3px;
    margin-bottom: 20px;
    border-radius: 20px;
}

#progress-bar {
    height: 20px;
    background-color: #4CAF50;
    text-align: center;
    line-height: 20px;
    color: white;
    border-radius: 20px;
} */

.back-button {
    display: block;
    margin-top: 20px;
    cursor: pointer;
    color: #004FA3;
}

/* Add styles for the new animated "analyzing data" step */
.analyzing-data p {
    animation: fadeInOut 3s linear forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}


/* infinite processing */

/* HTML: <div class="loader"></div> */
.loader {
    width: calc(80px / cos(45deg));
    height: 14px;
    background: repeating-linear-gradient(-45deg,#000 0 15px,#0000 0 20px) left/200% 100%;
    animation: l3 2s infinite linear;
  }
  @keyframes l3 {
      100% {background-position:right}
  }


.final-step {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#terms-block {
    width: 350px;
    width: 400px;
    text-align: justify;
    font-size: 0.8em;
}

.date-form {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

#day {
    max-width: 70px!important;
    margin-right: 10px;
}
#month {
    max-width: 70px!important;
    margin-right: 10px;
}
#year {
    max-width: 160px!important;
}




/* Broadwalk customizations */

fieldset {
    border: none;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.bw-radio-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
}
.bw-radio-container {
    display: inline-block;
    margin: 10px 0;
    font-size: 28px;
    padding: 20px 40px;
    text-align: center;
    border-radius: 8px;
    background-color: #F46A25;
    color: #fff;
    font-family: Raleway,sans-serif;
    font-weight: 600;
    border: none;
    box-shadow: 0px 15px 15px -10px #00000061;
    text-decoration: none;
    width: 450px;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
}

.bw-radio-container label {
    cursor: pointer;
}

.bw-radio-container .bw-radio {
    display: none;
}
.bw-input-label {
    display: none;
}

.bw-heading {
    text-align: center;
    max-width: 100%;
    
}

/* .bw-offer-template {
    max-width: 900px;
    border: 1px solid #0076f5;
    padding: 10px 20px;
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    justify-content: flex-start;
    border-radius: 10px;
    background-color: #e2effc;
    box-shadow: 0px 15px 15px -15px #00000055;
    margin: 30px 0;
}



.bw-offer-template h1 {
    font-family: Raleway,sans-serif;
    font-optical-sizing: auto;
    font-size: 28px;
    font-weight: 700;
    color: #003369;
    margin-bottom: 20px;
}

.bw-offer-template button {

} */

.bw-input-error {
    text-align: center;
    color: #e92d0c;
}



.bw-offer-template {
    display: grid;
    grid-template-columns: .75fr 2fr .75fr;
    align-items: center;
    grid-auto-rows: auto;
    column-gap: 1.5em;
    row-gap: .5em;
    width: 100%;
    max-width: 900px;
    padding: 20px;
    background-color: #fffcf4;
    border: 1px solid #ea692a;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0px 15px 15px -10px #00000061;

}

.bw-offer-template img {
    grid-row: 1 / 4;
    grid-column: 1 / 2;
    margin: 0;
    order: 1;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0px 10px 10px -10px #00000061;
}

.bw-offer-template p {
    grid-row: 1 / 2;
    grid-column: 2 / 4;
    align-self: center;
    margin: 0;
}


.bw-offer-template p {
    grid-row: 2 / 4;
    grid-column: 2 / 3;
    font-size: 1.0em;
    align-self: center;
    margin: 0;
    line-height: 1.35;
    order: 3;
    width: 100%;
    text-align: left;
}

.bw-offer-template .bw-heading {
    grid-row: 1/2;
    grid-column: 2/4;
    align-self: center;
    margin: 0;
    line-height: 1.35;
    order: 3;
    width: 100%;
    text-align: left;
    font-size: 1.35em;
}

.bw-offer-template .bw-button-primary {
    grid-row: 2 / 3;
    align-self: end;
    margin: 0 0 .5em;
    grid-column: 3 / 4;
    justify-self: center;
    display: flex;
    align-items: center;
    margin: 0 auto;
    justify-content: center;
    font-size: 18px;
    padding: 10px 20px;
    height: 50px;
    border-radius: 8px;
    color: #fff;
    font-family: Raleway, sans-serif;
    font-weight: 600;
    border: none;
    box-shadow: 0px 10px 10px -10px #00000061;
    text-align: center;
    width: 170px;
    background-color: #F46A25;
}

.bw-offer-template .bw-button-primary:hover {
    background-color: #E9560C;
}

.bw-offer-template .bw-button-secondary {
    grid-row: 3 / 4;
    align-self: start;
    margin: .5em 0 0;
    grid-column: 3 / 4;
    justify-self: center;
    margin: 0 auto;
    justify-content: center;
    font-size: 16px;
    padding: 5px 10px;
    height: 40px;
    border-radius: 8px;
    color: #b0b0b0;
    font-family: Raleway, sans-serif;
    font-weight: 600;
    border: none;
    box-shadow: 0px 10px 10px -10px #00000061;
    text-align: center;
    width: 170px;
    background-color: #dedede;
    display: none;
}

.bw-offer-template .bw-button-secondary:hover {
    background-color: #c0c0c0;
}

@media (min-width: 601px) {
    .bw-heading {
        width: 600px!important;
    }
}

.bw-button-primary {
    cursor: pointer;
}

@media (max-width: 600px) {

    .bw-heading {
        max-width: 100%!important;
    }

    .bw-offer-template {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 90%;
        gap: .75em;}

    .bw-offer-template .bw-heading {
        font-size: 1.35em;
        line-height: 1.35;
        margin-bottom: .25em;
        order: 2;
          }
    .bw-offer-template .bw-image {
        max-width: 100%;
        margin-bottom: 1.5em;
        height: auto;
          }
    .bw-offer-template p {
        font-size: 1.1em;
        line-height: 1.35;
        margin-bottom: .5em;
        order: 3;
          }

    .bw-offer-template .bw-button-primary {
        margin: 0;
        font-size: 1.15em;
        padding: .7em 1.1em;
        width: 100%;
        /* max-width: 320px; */
        order: 4;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-items: center;
        gap: 1em;
    }
    .bw-offer-template .bw-button-secondary {
        display: flex;
        margin: 0;
        font-size: 1.15em;
        padding: .7em 1.1em;
        width: 100%;
        /* max-width: 320px; */
        order: 4;
        flex-direction: column;
        align-items: center;
        justify-items: center;
        gap: 1em;
    }
    .bw-radio-container {
        padding: 20px 20px;
        width: 90%;
    }
    
    

}