/* Global Variables */
:root {
    /* buttons */
    --toolbar-icon-color: #535251;
    --toolbar-icon-label-display: none;
    --button-color: #0383c0;
    --button-border-radius: 15px;
    --button-text-color: #ffffff;
    --button-image-height: 30px;
    /* message screen */
    --message-screen-background-image: url("");
    --message-screen-text-color: #ffffff;
    --message-screen-shade-color-1: #000000;
    --message-screen-shade-color-2: rgba(0,0,0,0);
    --message-screen-primary-text-font-size: 65px;
    --message-screen-primary-text-font-color: #ffffff;
    --message-screen-secondary-text-font-size: 35px;
    --message-screen-secondary-text-font-color: #ffffff;
    --message-screen-strong-underline-thickness: unset;
    --message-screen-strong-underline-color: unset;
    /* home screen */
    --homescreen-zipcode-section-background-color: #1c375f;
    --homescreen-zipcode-section-text-color: #ffffff;
    --homescreen-categories-section-background-color: #ffffff;
    --homescreen-categories-section-text-color: #000000;
    --homescreen-category-bg-color: #ffffff;
    --homescreen-category-checked-bg-color: #6fb1df;
    /* TODO: change icons to svg, and use current color */
    --homescreen-category-icon-color: #0383c0;
    /* Results Screen */
    --category-underlined-color: #0383c0;
    --results-background-color: #f6f9fe;
    --results-link-color: #4974bd;
    --results-font-color: #3b3331;
}

@keyframes bobbing {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.05); /* Move up by 10 pixels */
    }

    100% {
        transform: translateY(0) scale(1);
    }
}


#intro1Label {
    line-height: 1.25;
}

/* Layout */
.popup-row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.column {
    display: flex;
    flex-direction: column;
}

.column-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flex-grow {
    flex-grow: 1;
}

.no-grow {
    flex-grow: 0;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}
#emailInput {
    font-size: 22px;
    font-weight: bold;
    padding-bottom: 17px;
}

.popup-row.footer-button-container {


    margin-right: 20px;
    justify-content: flex-end;
    width: 100%;
    flex-grow: 1;
    gap: 20px;

}
.flex-item {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}



/* Primary Elements */
.page {
    position: absolute;
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    overflow-x: hidden;
    padding: 20px 30px 0px 30px;
    top: 0;
    left: 0;
}

.screen {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    flex-grow: 2;
    padding: 0px 30px;
    overflow: hidden;
}

.full-page-width {
    margin-left: -30px;
    margin-right: -30px;
    width: 100vw;
}

.screen.active {
/*    background-color: #E4F4FF;*/
    display: flex;
    opacity: 1;
    transition: opacity 0.3s ease-in-out 0.1s;
    visibility: visible;
}

/* Styles By Screen */

/* MessageScreen */
.message_screen_container {
    /* min-height: 200px;
    max-height: 500px;*/
    position: relative;
    color: var(--message-screen-text-color, #ffffff);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    align-items: center;
}

.message_screen_shadow_top, .message_screen_shadow_bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--message-screen-shade-color-1, #000000) -15.89%, var(--message-screen-shade-color-2, rgba(0, 0, 0, 0)) 57.03%);
}

.message_screen_shadow_bottom {
    transform: rotate(180deg);
}

.message_screen_text_container {
    display: block;
    position: relative;
}

    /* default */
    .message_screen_text_container > h1 {
        font-size: var(--message-screen-primary-text-font-size, 48px);
        color: var(--message-screen-primary-text-font-color, #ffffff);
        font-weight: 700;
        margin-block-start: 0.5em;
        margin-block-end: 0.35em;
    }

    .message_screen_text_container > h2 {
        font-size: var(--message-screen-secondary-text-font-size, 24px);
        color: var(--message-screen-secondary-text-font-color, #ffffff);
        max-width: 84%;
        display: inline-block;
    }
/* adjust message screen text based on screen size */
/* TODO: this container can be removed, just use @media */


/*Category Text*/
.category-button > span {
    line-height: 1.2em;
    height: 2.4em;

    max-width:100%
}

.flexContainerCategories{
    width:50%;
}


/* Home Screen */
.homescreen-zipcode-section {
    background-color: var(--homescreen-zipcode-section-background-color, #1c375f);
    color: var(--homescreen-zipcode-section-text-color, #ffffff);
    padding-top: 1.5em;
    padding-bottom: 1.5em;
    gap: 1em;
}

    .homescreen-zipcode-section > h1 {
        font-size: 1.6em;
        font-weight: 500;
        margin-block-end: 0;
    }
    /* todo: add container handling to increase font size */

    .homescreen-zipcode-section a {
        color: var(--homescreen-zipcode-section-text-color, #ffffff);
        
    }

.accept-terms-and-conditions-container {
    display: flex;
    align-items: center;
    gap: 1em;
}

    .accept-terms-and-conditions-container > input[type="checkbox"] {
        height: 1.5em;
        width: 1.5em;
    }

        .accept-terms-and-conditions-container > input[type="checkbox"]:focus,
        .accept-terms-and-conditions-container > input[type="checkbox"]:hover {
            outline: 2px solid orange;
        }

.my-icon {
    fill: white; 
    margin-right:5px;
    margin-left:-10px
}

.homescreen-categories-section {
    background-color: var( --homescreen-categories-section-background-color, #ffffff );
    color: var(--homescreen-categories-section-text-color, #000000);
    padding: 20px 20px 0 20px;
}

    .homescreen-categories-section > h2 {
        font-size: 1.25em;
        font-weight: 600;
    }

.flexContainer {
    display: inline-grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    column-gap: 10px;
    row-gap: 10px;
    max-width: 100%;
}

.flexItem {
    border-color: #ffffff;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1;
    /* todo: add fallback for aspect-ration if need to support IE */
    /* best case is to use padding calc(%100), and absolute content div */
    position: relative;
    background-color: var(--homescreen-category-bg-color, #ffffff);
    border-radius: 2px;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 4px 30px rgba(28, 55, 95, 0.3);
    border: none;
}

.details-link, .details-arrow {
    cursor: pointer;
}

.details-link {
    font-weight: 700;
    text-decoration: underline;
    border: none;
    background-color: transparent;
}

    .flexItem .catimg {
        width: auto;
        max-width: 100%;
        height: 50%;
        max-height: 60px;
        margin-top: 5px;

    }

    .flexItem .text {
        width: 100%;
        text-align: center;
        font-size: 12px;
        font-weight: 500;
    }

.checkimg {
    display: none;
    position: absolute;
    right: 5px;
    top: 3px;
    width: 12px;
    height: auto;
}
.flexItem[aria-checked="true"] .checkimg {
    display: block;
}
.flexItem[aria-checked="true"] {
    
    border: 2px solid grey;
}

/** Small devices (landscape phones, 576px and up) */


/* Results Screen */
#ResultsScreen {
    padding-top: 0;
    background-color: #E4F4FF;
}

.resultsscreen_categoryheader_container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 1em;
}

#categoriesContainer.es .text.en {
    display: none;
}

#categoriesContainer.en .text.es {
    display: none;
}

.category-header {
    font-size: 19px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    padding: 0.5em;
}

.selected-category {
    border-bottom: 2px solid var(--category-underlined-color, #000000);
}

.resultsscreen_results_container {
    background-color: #E4F4FF;
}

.result-container {
    padding: 10px 20px;
}

.result-item {
    width: 100%;
    max-width: 900px;
    padding: 15px;
    
    background-color: #ffffff;
    border-radius: 15px;
    margin-bottom: 15px;
}

.result-container > .result-item.more-results {
    display: none;
}

.result-container.show-all-results > .result-item.more-results {
    display: block;
}

.result-name {
    font-size: 22px;
    color: var(--results-font-color, #3b3331);
    font-weight: bold;
}

.result-distance {
    font-size: 19px;
    color: var(--results-font-color, #3b3331);
    padding-bottom: 0.5em;
}

.result-description {
    color: var(--results-font-color, #3b3331);
    padding-bottom: 0.5em;
    font-size: 19px;
}

.result-address {
    color: var(--results-font-color, #3b3331);
    font-weight: 600;
    padding-bottom: 0.5em;
    font-size: 19px;
}

.result-phone {
    color: var(--results-link-color, #4974bd);
    font-weight: normal;
    padding-bottom: 0.5em;
    text-decoration: underline;
    font-size: 19px;
}


.result-website {
    color: var(--results-link-color, #4974bd);
    display: block;
    word-wrap: break-word;
    text-decoration: underline;
    font-size: 19px;
}
.result-viewMore {
    color: var(--results-font-color, #3b3331);
    font-weight:bold;
    display: block;
    word-wrap: break-word;
    text-decoration: underline;
    font-size: 19px;
}




.view-more-button {
    gap: 10px;
    border: none;
    background-color: transparent;
    position: relative;
    /* left: 49%; */
}

.result-container.show-all-results > .view-more-button {
    display: none;
}

/* .view-more-button {
  transform: translate(-37px, 0px);
} */

.moreResultsArrow {
    width: 32px;
    cursor: pointer;
}

/* Terms Screen */
.term {
    padding: 10px 0;
}

.term-label {
    font-weight: bold;
}

.term-text {
    font-size: 17px;
}

/* Header */
.header_section {
    display: none;
}

    .header_section.active {
        padding: 10px;
        display: flex;
        align-items: center;
    }

    .header_section > svg {
        height: 2em;
        width: 2em;
        margin-right: 2em;
    }

/* Footer */
.powered_by {
    display: block;
    font-size: 12px;
    margin-bottom: 2px;
}

.s4logo {
    width: 145px;
    max-width: 45vw;
    margin-right:50px;
}
/* Custom Tooltip Styling */
/* Tooltip container */
.tooltip {
    position: relative;
    display: inline-block;
    opacity: 1;
}

    /* Tooltip text */
    .tooltip .tooltiptext {
        visibility: hidden;
        background-color: black;
        color: #fff;
        text-align: center;
        padding: 5px 0;
        border-radius: 6px;
        width: 120px;
        bottom: 100%;
        left: 50%;
        margin-left: -60px; /* Use half of the width (120/2 = 60), to center the tooltip */
        /* Position the tooltip text - see examples below! */
        position: absolute;
        z-index: 1;
    }
    /* Show the tooltip text when you mouse over the tooltip container */
    .tooltip:hover .tooltiptext {
        visibility: visible;
    }

    .tooltip .tooltiptext::after {
        content: " ";
        position: absolute;
        top: 100%; /* At the bottom of the tooltip */
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: black transparent transparent transparent;
    }

.labeled_button {
    display: flex;
    flex-direction: column;
}

/* Email Screen */
#EmailContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.emailContentContainer {
    display: flex;
    flex-direction: column;
/*    align-items: center;*/
    justify-content: center;
    background-color: white;
    border-radius: 15px;
    padding: 20px;
}

.emailText {
    padding-bottom:10px;
    margin: 0 auto;
    width: fit-content;
}
#emailText1, #emailText2 {
    font-size: 22px;
}
/* Feedback Form */
#FeedbackScreen {
    font-size: 19px;
    background-color: #E4F4FF;
    padding-top: 0;
    justify-content: center;
}

    #FeedbackScreen legend {
        border-bottom: none;
        font-size: 19px;
        margin-bottom: 0;
        font-weight: bold;
    }

#FeedbackScreen .feedback-question {
    margin-bottom: 1em;
}

.feedback-option {
    display: flex;
    align-items: center;
    gap: 8px; /* space between radio and label text */
    margin-right: 20px; /* space between Yes and No options */
    font-size: 19px;
}
.feedback-group {
    display: flex;
}

.feedback-question {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 95%; /* Keep it in line with the text areas */
    word-wrap: break-word;
    word-break: break-word;
}

    .feedback-question:not(fieldset) > label {
        font-size: 19px;
        font-weight: bold;
        max-width: 100%;
        white-space: normal; /* Let it wrap */
        word-wrap: break-word;
        word-break: break-word;
    }
#feedbackForm{
    justify-content:center;
}

.feedbackContainerContent {
    background-color: white;
    justify-content: center;
    padding: 20px;
    border-radius: 15px;
}

input[type="radio"], input[type="checkbox"] {
    line-height: normal;
    margin: 0px 0 0;
}




/* Element Styling */
    svg .button {
    cursor: pointer;
}

svg.s-2 {
    width: 2em;
    height: 2em;
}




#espanol_toggle img,
#espanol_toggle svg {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain;
}

.footer-icon img,
.footer-icon svg {
    height: 30px; /* Set a consistent height */
    width: 30px; /* Ensures all icons are the same width */
}

.footer-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    font-size: 0.9em;
    background-color: unset;
    padding-inline: 5px; /* Small padding to ensure clickability */
    text-align: center;
}

    .footer-icon label {
        display: block; /* Ensures label is positioned under the icon */
        font-size: 12px;
        margin-top: 5px; /* Spacing between icon and text */
        text-align: center;
    }

    .footer-icon > * {
        align-self: center;
    }

#footer_LanguageButton {
    margin-top: 5px; /* Adjust as needed */
}

.scrollable {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom ScrollBar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: white;
}

::-webkit-scrollbar-thumb {
    background: #ababab;
    border-radius: 25px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #767676;
    }

.category-label {
    position: relative;
    translate: 0% 25%;
}

ul {
    list-style-type: none;
    padding: 0;
}

.error {
    color: red;
    display: none;
    visibility: hidden;
    text-align: center;
    padding: 10px;
    font-weight: bold;
}

.success {
    color: black;
}

.visible {
    visibility: visible;
}

.error.visible {
    display: block;
}

.mainButton {
    width: 225px;
    height: 50px;
    background-color: #992b32;
    color: white;
    font-weight: bold;
    border-radius: 15px;
    border: none;
    font-size: 18px;
}

.mainBody {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    gap: 2em;
    overflow: hidden;
}

.popup-options-fieldset {
}

#FAQContainer {
    flex-grow: 1;
}

#FAQQuestions {
    text-align: start;
}

.faq {
    padding: 2px 10px;
}

.faq-question {
    font-size: 19px;
    font-weight: bold;
}

.learn-more {
    margin-top: 20px;
    text-align: left;
    padding-right: 20px;
    padding: 2px 10px;
}


.faq-answer {
    font-size: 19px;
}

.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

#TermsContainer {
    flex-grow: 1;
    overflow-y: auto;
}

#SearchResults {
    overflow-y: auto;
}

html {
    background-color: white;
    height: 100%;
    max-height: 100vh;
    /* padding: 15px; */
    
}

body {
    height: 100%;
    max-height: 100vh;
    margin: 0px;
   font-family: 'Open Sans', sans-serif;
}

.h-100 {
    height: 100%;
}

.backButton {
    white-space: nowrap;
    flex-wrap: nowrap;
    background-color: var(--button-color, #0383c0);
    border: 0px;
    border-radius: var(--button-border-radius, 15%);
    font-size: 1.25em;
    color: var(--button-text-color, #ffffff);
    cursor: pointer;
    font-weight: bold;
    padding: 0.5em 20px;
}

.backButtonCustom3 {
    white-space: nowrap;
    flex-wrap: nowrap;
    background-color: var(--button-color, #0383c0);
    border: 0px;
    border-radius: var(--button-border-radius, 15%);
    font-size: 1.25em;
    color: var(--button-text-color, #ffffff);
    cursor: pointer;
    font-weight: bold;
    padding: 0.5em 20px;
}


.backToSearchButton {
    white-space: nowrap;
    flex-wrap: nowrap;
    background-color: var(--button-color, #0383c0);
    border: 0px;
    border-radius: var(--button-border-radius, 15%);
    font-size: 1.25em;
    color: var(--button-text-color, #ffffff);
    cursor: pointer;
    font-weight: bold;
    padding: 0.5em 20px;
}
.nextButton {
    white-space: nowrap;
    flex-wrap: nowrap;
    background-color: var(--button-color, #0383c0);
    border: 0px;
    border-radius: var(--button-border-radius, 15%);
    font-size: 1.25em;
    color: var(--button-text-color, #ffffff);
    cursor: pointer;
    font-weight: bold;
    padding: 0.5em 20px;
}

.nextButtonEmail {
    white-space: nowrap;
    flex-wrap: nowrap;
    background-color: var(--button-color, #0383c0);
    border: 0px;
    border-radius: var(--button-border-radius, 15%);
    font-size: 1.25em;
    color: var(--button-text-color, #ffffff);
    cursor: pointer;
    font-weight: bold;
    padding: 0.5em 20px;
}



.nextButton.small {
    padding: 0.25em 1em;
}

.nextButtonEmail > img,
.nextButton > img,
.backButton > img {
    height: 1.2em;
    width: 1.5em;
}

.backButton > img {
    position: relative;
    right: 5px;
}

/* This makes padding work as expected */
*,
*:before,
*:after {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
}

/* Container for the radio button */
.radio-container {
    display: inline-block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    user-select: none;
    align-items: center;
    justify-content: center;
    padding-right: 10px;
}

    /* Hide the default radio button */
    .radio-container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

/* Custom radio button */
.custom-radio {
    position: absolute;
    top: 50%;
    left: 10%;
    height: 20px;
    width: 20px;
    translate: 0% -50%;
    background-color: white;
    border: 2px solid black;
    border-radius: 50%;
}

.py-1 {
    padding-top: 5px;
    padding-bottom: 5px;
}

.py-2 {
    padding-top: 10px;
    padding-bottom: 10px;
}


.pb-2, .py-2 {
    padding-bottom: 1.5rem !important;
}

.pt-2, .py-2 {
    padding-top: 1.5rem !important;
}
/* Checked state */
.radio-container input:checked ~ .custom-radio {
    border: 2px solid #3b3331;
}

    /* Circle in the middle when checked */
    .radio-container input:checked ~ .custom-radio::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        height: 10px;
        width: 10px;
        translate: -50% -50%;
        background-color: #3b3331;
        border-radius: 50%;
    }

input[type="checkbox"] {
    height: 25px;
    width: 25px;
}

.boldText {
    font-weight: bold;
}

.boldColor {
    color: #3b3331;
    padding: 10px 0px;
}

.colorLink {
    color: #3b3331 !important;
}

.titleText {
    font-size: 22px;
}

.bold {
    font-weight: 700;
}

.titleRow {
    padding-bottom: 15px;
}

.subTitle {
    font-weight: bolder;
    font-size: 18px;
    padding-bottom: 15px;
}

.mt-2 {
    margin-top: 25px;
}

.mt-5 {
    margin-top: 50px;
}

.mr-2 {
    margin-right: 25px;
}

.mr-4 {
    margin-right: 40px;
}

.mr-5 {
    margin-right: 50px;
}

.m-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-1 {
    margin-top: 10px;
}


.mr-2, .mx-2 {
    margin-right: 0.0rem !important;
}
.text-input {
    height: 50px;
    font-size: 25px;
    text-align: center;
    padding: 10px;
}

    .text-input.left {
        text-align: left;
    }

    .text-input:focus {
        /* outline: 1px solid #000000;
    border: 2px solid #000000; */
    }

#txtZipCode:focus {
    outline: 1px solid orange;
    border: 2px solid orange;
}

#EmailInput:focus {
    border: 2px solid orange;
}
#EmailScreen {
    background-color: #E4F4FF;
    justify-content: center;
}


::placeholder {
    color: #a1a1a1;
    opacity: 1; /* Firefox */
    font-size: 0.75em;
}

::-ms-input-placeholder {
    /* Edge 12 -18 */
    color: #a1a1a1;
    font-size: 0.75em;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}
