/*--Universal Selectors--*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Oswald", sans-serif;
}

:root {
    --primary-color: #275f94;
    --secondary-color: #c5c5c5;
    --tertiary-color: #585858;
    --quaternary-color: white;
}

.light-mode {
    --primary-color: #275f94;
    --secondary-color: #c5c5c5;
    --tertiary-color: #585858;
    --quaternary-color: white;
}

.dark-mode {
    --primary-color: #275f94;
    --secondary-color: #c5c5c5;
    --tertiary-color: #c5c5c5;
    --quaternary-color: #333333;
}

/*--Header Styles--*/

.header {
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    padding: 20px 10px 20px;
    align-items: center;
}

.logo {
    padding: 5px 0px;
}

.logo img {
    max-width: 235px;
}

header nav {
    display: flex;
}

header nav div {
    display: flex;
    list-style-type: none;
    align-items: center;
    justify-content: space-between;
}

.quote-btn {
    color: var(--primary-color);
    background-color: var(--secondary-color);
    text-decoration: none;
    justify-content: center;
    line-height: 38px;
    font-size: 18px;
    border: none;
    height: 38px;
    width: 115px;
    border-radius: 38px;
    display: none;
}

.light-mode-img {
    height: 20px;
    width: 20px;
    transform: translateX(10px);
}

.toggle {
    display: flex;
    background-color: var(--secondary-color);
    width: 40px;
    height: 20px;
    border-radius: 40px;
    cursor: pointer;
    position: relative;
}

.toggle::before {
    position: absolute;
    content: '';
    background-color: #585858;
    width: 16px;
    height: 16px;
    border-radius: 40px;
    margin: 2px;
    transition: 0s;
}

input:checked + .toggle {
    background-color: #3be25f;
}

input:checked + .toggle::before{
    transform: translateX(20px);
}

.darkmode-checkbox {
    display: none;
}

/*--Hero Styles--*/

.background {
    background-image: url("../images/OFallon.jpg");
    height: 175px;
    background-size: cover;
    max-width: 1920px;
    background-position: 50% 62%;
    margin: auto;
}

/*--Body Styles--*/

body {
    background-color: var(--quaternary-color);
    
}

.body-containers {
    max-width: 1920px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: auto;
    padding-top: 30px;
    padding-bottom: 30px;
    
}

/*--Body Container Styles--*/

.individual-container {
    margin: 30px 0px;
    background: var(--quaternary-color);
    color: var(--primary-color);
    padding: 30px 30px;
    border-style: solid;
    border-width: 5px;
    border-radius: 50px;
    border-color: var(--tertiary-color);
    max-width: 315px;
    max-height: 600px;
    min-width: 315px;
    min-height: 600px;
    box-shadow: 0 0 20px;
}

.content-header {
    font-size: 32px;
}

/*--Producer Container Styles--*/

.producer {
   display: flex;
   flex-direction: column;
   align-items: center;
}

.producer h2 {
    font-size: 39px;
    font-weight: bold;
    text-align: left;
}

.producer h3 {
    color: var(--tertiary-color);
    font-size: 19px;
}

.producer img {
    border-radius: 75px;
    max-height: 270px;
}

.contact-title {
    padding-top: 10px;
}

.producer-contacts {
    font-size: 18px;
    color: var(--primary-color);
}

.producer-contacts-ext {
    font-size: 18px;
}

/*--About Me Container Styles--*/

.about-me p {
    color: var(--tertiary-color);
    font-size: 20px;
    text-indent: 30px;
    padding-top: 15px;
}

/*--Service Center Container Styles--*/

.service-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-button {
    color: var(--secondary-color);
    background-color: var(--primary-color);
    text-decoration: none;
    text-align: center;
    font-size: 22px;
    border: none;
    line-height: 50px;
    height: 50px;
    width: 250px;
    border-radius: 25px;
    margin-top: 15px;
    box-shadow: 0 0 10px var(--tertiary-color);
}

/*--Office Location Container Styles--*/

.office-location {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.office-location h3 {
    color: var(--tertiary-color);
    font-size: 24px;
    padding-top: 25px;
    padding-bottom: 10px;
}

.office-location iframe {
    margin: auto;
    box-shadow: 0 0 10px var(--tertiary-color);
}

.location-info {
    padding-top: 25px;
}

.location-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 18px;
    padding-top: 0px;
}

.location-info p {
    font-size: 18px;
    padding-top: 0px;
}

/*--Facebook Container Styles--*/

.facebook-container {
    display: flex;
    flex-direction: column;
}

.facebook-logo {
    padding-top: 90px;
    display: flex;
    justify-content: center;
}

.facebook-logo img {
    max-height: 250px;
}

/*--Review Container Styles--*/

.review-container {
    display: flex;
    flex-direction: column;
}

.review-container img {
    max-width: 245px;
}

.review-btn {
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

/*--Footer Styles--*/

footer {
    max-width: 100%;
    background-color: var(--primary-color);
    color: var(--quaternary-color);
}

#error-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
}

.footer-content {
    max-width: 1920px;
    padding: 30px 30px;
}

footer h3 {
    font-size: 14px;
    text-align: right;
    font-weight: normal;
    color:var(--secondary-color)
}

footer a {
    color: var(--secondary-color);
}

/*--Alternate Pages Universal Styles--*/

.page-title h2 {
    font-size: 26px;
    text-align: center;
    color: var(--primary-color);
    padding-bottom: 25px;
    padding-top: 10px;
}

.page-description h3 {
    font-size: 18px;
    text-align: center;
    padding: 0px 25px 30px;
    color: var(--tertiary-color);
}

.page-description {
    color: var(--tertiary-color);
}

.page-description p {
    font-size: 16px;
    margin-left: 20px;
    margin-right: 20px;
}

.page-description li {
    margin-left: 20px;
    margin-right: 20px;
}

.page-description a {
    text-decoration: none;
    color: var(--tertiary-color);
    font-size: 16px;
    margin-left: 20px;
    padding-bottom: 50px;
    display: block;
}

h3.qn-description {
    font-size: 14px;
}

/*--Carrier Boxes Styles (Make Payment, Submit Claim)--*/

.carrier-containers {
    display: grid;
    grid-template-columns: 1fr;
    font-size: 20px;
    padding: 0px 10px 50px;
}

.carrier-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--tertiary-color);
    height: 300px;
    padding: 20px;
}

.carrier-container:hover {
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    transition: 0.2s;
    border-radius: 50px;
}

.carrier-container h3 {
    text-align: center;
}

.carrier-content {
    vertical-align: auto;
}

.carrier-icon {
    max-width: 200px;
    height: auto;
}

/*--Carrier Boxes Modal--*/

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: var(--secondary-color);
    position: absolute; 
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 40px;
    border: 5px solid var(--primary-color);
    border-radius: 50px;
    width: 320px;
    font-size: 16px;
}

.close {
    color: red;
    float: right;
    font-size: 50px;
    font-weight: bold;
    height: 35px;
    width: 35px;
    margin-bottom: 15px;
    margin-left: 15px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/*--Form Styles (Policy Change, Get ID Card, Quote Now)--*/

.form-container {
    padding: 0px;
}

form {
    max-width: 1000px;
    margin: auto;
}

.fieldset {
    max-width: 315px;
    margin: auto;
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 50px;
    background: var(--quaternary-color);
    color: var(--primary-color);
    border: 5px solid var(--tertiary-color);
    box-shadow: 0 0 20px;
}

.form-page {
    display: none;
    height: 635px;
}

.form-page.active {
    display: flex;
    flex-direction: column;
}

.fieldset h3 {
    color: var(--tertiary-color);
    font-size: 16px;
    padding-top: 12px;
}

.fieldset p {
    color: var(--tertiary-color);
    font-size: 14px;
    padding-top: 5px;
}

.fieldset label.disclaimer {
    font-size: 14px;
}

.fieldset label {
    display: block;
    font-size: 16px;
    color: var(--tertiary-color)
}

.fieldset input {
    border: solid 1px var(--primary-color);
    padding: 8px;
    font-size: 16px;
}

.fieldset [type="checkbox"] {
    margin-right: 5px;
}

.required-asterisk {
    color: red;
    margin-left: 8px;
    font-weight: normal;
}

input:valid ~ .required-asterisk {
    color: green; /* Change to green when input is valid */
}

input[type="text"] {
    width: 250px;
}

input[type="email"] {
    width: 250px;
}

input[type="tel"] {
    width: 200px;
}

input[type="file"] {
    display: none;
}

input#zip {
    width: 125px;
}

label.file-upload {
    border-radius: 5px; 
    padding: 10px 20px;
    margin: 100px auto;
    width: 250px;
    background-color: var(--primary-color); 
    color: var(--secondary-color); 
    cursor: pointer; 
    text-align: center;
}

textarea {
    border: solid 1px var(--primary-color);
    width: 100%;
    height: 40%;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
}

.pageTextarea {
    height: 125px;
}

.fieldset select {
    border: solid 1px var(--primary-color);
    color: black;
    font-size: 16px;
    text-align: center;
    line-height: 16px;
    height: 42px;
    width: 125px;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

.fieldset button {
    margin: 25px auto 25px;
    font-size: 18px;
    height: 45px;
    width: 90px;
    border-radius: 22px;
    background-color: #3be25f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: black !important;
    font-weight: normal !important;
}

.btn-box {
    display: flex;
    flex: 1;
    align-items: flex-end;
}

.btn-box button {
    display: flex;
    color: black !important;
    font-weight: normal !important;
}

.fieldset input[type="checkbox"] + label, input[type="radio"] + label 
{
    display: inline-block;
}

/*--Multipage Form Navigation Feature--*/

.progress-container {
    padding-bottom: 15px;
}

.progress-titles {      
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.progress-step {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.progress-step .active {
    display: flex;
}

.progress-step.active h3 {
    color: var(--quaternary-color);
    background-color: var(--primary-color);
    height: 16px;
    width: 45px;
    border-radius: 16px;
    font-size: 11px;
    padding-top: 0px;
    text-align: center;
    font-weight: normal;
}

.progress-step h3 {
    color: var(--primary-color);
    font-size: 11px;
    padding-top: 0px;
    font-weight: normal;
}

.nav-line {
    display: flex;
    align-items: center;
    padding-top: 10px;
    position: relative;
}

.arrow {
    width: 0;
    height: 0;
    border-style: solid;
}

.arrow.left {
    border-width: 5px 10px 5px 0;
    border-color: transparent var(--tertiary-color) transparent transparent;
    z-index: 0;
}

.arrow.right {
    border-width: 5px 0 5px 10px;
    border-color: transparent transparent transparent var(--tertiary-color);
    z-index: 0;
}

.progress-line {
    height: 5px;
    background-color: var(--tertiary-color);
    width: 100%;
    z-index: 0;
}

.progress-dots {
    display: grid;
    width: 100%;
    height: 30px;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    position: absolute;
    z-index: 1;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin: auto;
    cursor: pointer;
}

.dot.active {
    border: 4px solid var(--primary-color);
    background-color: var(--secondary-color);
}


/*--Privacy Policy Styles--*/

.pp-list {
    list-style-type: none;
}

/*--Media Queries--*/

@media (min-width: 360px) {
    .logo img {
        max-width: 250px;
    }

    .header {
        padding: 20px 20px;
    }

    header nav div li {
        padding-right: 25px;
    }
}

@media (min-width: 550px) {
    .header {
        padding: 20px 25px;
    }

    header nav div li {
        padding-right: 20px;
    }

    .logo img {
        max-width: 275px;
    }

    .quote-btn {
        display: flex;
    }

    .light-mode-img {
        height: 26px;
        width: 26px;
        transform: translateX(10px);
    }

    .toggle {
        width: 46px;
        height: 23px;
        border-radius: 46px;
    }

    .toggle::before {
        width: 19px;
        height: 19px;
        border-radius: 46px;
        margin: 2px;
    }

    .background {
        height: 225px;
    }

    input:checked + .toggle::before{
        transform: translateX(23px);
    }

    .individual-container {
        margin: 30px 20px;
    }

    .page-title h2 {
        font-size: 38px;
    }

    .page-description h3 {
        font-size: 22px;
    }

    .page-description p {
        font-size: 18px;
        margin-left: 40px;
        margin-right: 40px;
    }

    .page-description li {
        font-size: 18px;
        margin-left: 40px;
        margin-right: 40px;
    }

    .page-description a {
        font-size: 18px;
        margin-left: 40px;
        margin-right: 40px;
    }

    h3.qn-description {
        font-size: 18px;
    }

    .carrier-containers {
        grid-template-columns: 1fr 1fr;
    }

    .fieldset {
        max-width: 525px;
    }

    label.file-upload {
        width: 70%;
    }

    .progress-step.active h3 {
        font-size: 14px;
        width: 75px;
        height: 21px;
        border-radius: 21px;
    }

    .progress-step h3 {
        font-size: 14px;
    }

    input.address {
        width: 400px;
    }

    input[type="file"] {
        width: 450px;
    }

    .modal-content {
        width: 450px;
        font-size: 24px;
    }
}

@media (min-width: 800px) {
    .logo img {
        max-width: 300px;
    }

    .header {
        padding: 20px 30px;
    }

    header nav div li {
        padding-right: 25px;
    }

    .quote-btn {
        line-height: 50px;
        font-size: 24px;
        height: 50px;
        width: 150px;
        border-radius: 50px;
    }

    .light-mode-img {
        height: 34px;
        width: 34px;
        transform: translateX(15px);
    }

    .toggle {
        width: 60px;
        height: 30px;
        border-radius: 60px;
    }

    .toggle::before {
        width: 26px;
        height: 26px;
        border-radius: 60px;
        margin: 2px;
    }

    .background {
        height: 275px;
    }

    input:checked + .toggle::before{
        transform: translateX(30px);
    }

    .carrier-containers {
        grid-template-columns: 1fr 1fr;
    }

    .page-description h3 {
        padding-bottom: 50px;
    }

    .fieldset {
        max-width: 765px;
        margin-bottom: 50px;
    }

    .fieldset h3 {
        font-size: 20px;
    }

    .fieldset label {
        font-size: 18px;
    }

    .fieldset p {
        font-size: 16px;
    }

    .fieldset label.disclaimer {
        font-size: 16px;
    }

    .progress-step.active h3 {
        font-size: 20px;
        height: 30px;
        width: 105px;
        border-radius: 30px;
    }

    .progress-step h3 {
        font-size: 20px;
    }

    input#policy_type {
        width: 50%;
    }

    input.address {
        width: 500px;
    }

    .dot {
        height: 20px;
        width: 20px;
    }

    .dot.active {
        border-width: 5px;
    }

    .arrow.left {
        border-width: 10px 20px 10px 0;
    }

    .arrow.right {
        border-width: 10px 0 10px 20px;
    }
}

@media (min-width: 1000px) {
    .header {
        padding: 25px 40px;
    }

    .logo img {
        max-width: 400px;
    }

    .individual-container {
        max-width: 450px;
        max-height: 775px;
        min-width: 450px;
        min-height: 775px;
        border-radius: 70px;
    }

    .content-header {
        font-size: 45px;
    }

    .container-p {
        font-size: 24px;
        text-indent: 50px;
    }

    .producer h2 {
        font-size: 60px;
    }

    .producer h3 {
        font-size: 27px;
    }

    .producer img {
        max-height: 350px;
    }

    .producer-contacts {
        font-size: 24px;
    }

    .producer-contacts-ext {
        font-size: 24px;
    }

    .about-me h2 {
        font-size: 45px;
        margin-left: 15px;
    }

    .about-me p {
        font-size: 30px;
        text-indent: 55px;
        line-height: 40px;
        padding-top: 20px;
    }

    .service-center h2 {
        font-size: 45px;
        margin-left: 15px;
    }

    .service-button {
        font-size: 30px;
        line-height: 74px;
        height: 74px;
        width: 325px;
        border-radius: 37px;
        margin-top: 25px;
    }

    .office-location iframe {
        height: 350px;
        width: 350px;
        margin-top: 30px;
    }

    .office-location h3 {
        font-size: 30px;
    }

    .office-location a {
        font-size: 24px;
    }

    .office-location p {
        font-size: 24px;
    }

    header nav div li {
        padding-right: 50px;
    }

    .facebook-container h2 {
        font-size: 48x;
    }
    
    .facebook-logo img {
        max-height: 335px;
    }

    .review-container img {
        max-width: 380px;
    }

    footer h3 {
        font-size: 18px;
    }

    .page-title h2 {
        font-size: 48px;
    }

    .page-description h3 {
        font-size: 26px;
    }

    .carrier-containers {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .fieldset {
        max-width: 950px;
        margin-bottom: 65px;
    }

    h3.qn-description {
        padding: 0px 100px 50px;
    }

    .page-description p {
        font-size: 22px;
        margin-left: 80px;
        margin-right: 80px;
    }

    .page-description li {
        font-size: 22px;
        margin-left: 80px;
        margin-right: 80px;
    }

    h3.privacy-policy-h3 {
        padding-top: 30px;
        font-size: 30px;
    }

    .page-description a {
        font-size: 22px;
        margin-left: 80px;
        margin-right: 80px;
    }

}

@media (min-width: 1300px) {
    .background {
        height: 315px;
    }

    .quote-btn {
        line-height: 60px;
        font-size: 30px;
        height: 60px;
        width: 180px;
        border-radius: 60px;
    }

    .carrier-containers {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}