/* General body styling */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    /*flex-direction: column;*/
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Main page */
body.main-page {
    background-color: #2A67AA;
    height: calc(var(--vh, 1vh) * 100);
    min-height: -webkit-fill-available;
    overflow: hidden; /* Prevent scrolling on the main page */
}

/* Conversation page-specific styling */
body.conversation-page {
    background-color: #2A67AA;
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden; /* Prevent scrolling on the conversation page */
}

body.terms-of-use-page body.privacy-policy-page{
    background-color: white;
    height: calc(var(--vh, 1vh) * 100);
}

.background-shapes {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 20vw;
    height: auto;
    z-index: 0;
}

/* Image inside the container */
.background-shapes img {
    width: 100%;
    height: auto;
    display: block;
}


/* Initial screen styling */
#initial-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.tagline-horizontal {
    position: absolute;
    top: 30px;
    right: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 40px;
    font-size: clamp(12px, 2vw, 14px);
    color: white;
    font-family: 'Zurich Sans Light', serif;
    text-align: right;
    flex-wrap: wrap;
    z-index: 10;
}

.tagline-horizontal img {
    height: 40px;
    width: auto;
}

/* Container for the main content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    z-index: 10;
}

.mobile-break {
    display: none;
}

h1 {
    font-size: clamp(48px, 6vw, 100px);
    color: white;
    font-weight: 400;
    /*margin-top: 200px;*/
    margin-bottom: -20px;
    line-height: 1.2;
    text-align: center;
}

.font1 {
    font-family: 'Zurich Sans', serif;
}
.font2 {
    font-family: 'Ogg', serif;
}

.subheading {
    font-size: clamp(12px, 3vw, 18px);
    color: white;
    margin-bottom: 50px;
    font-weight: 400;
    font-family: 'Zurich Sans Light', serif;
    text-align: center;
}

/* Search bar styling */
.search-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 700px;
    width: 80%;
    margin: 0 auto 100px;
}

.search-bar input {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: 2px solid #2167AE;
    border-radius: 25px;
    font-size: clamp(12px, 3vw, 16px);;
    outline: none;
    color: #2167AE;
}

.search-bar input::placeholder {
    color: #2167AE;
    text-align: left;
    font-family: 'Zurich Sans Light', serif;
}

/* Search icon button styling */
.search-icon {
    position: absolute;
    right: 10px;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-icon img {
    width: 40px;
    height: 40px;
}

.mid-bottom-section {
    text-align: center;
    margin-bottom: 20px;
}

.mid-bottom-section p {
    margin: 0;
    font-size: 14px;
    color: white;
    font-family: 'Zurich Sans Light', serif;
}

.mid-bottom-section .line {
    width: 80px;
    height: 1px;
    background-color: white;
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Carousel Container */
.carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Inner Carousel - Grid Layout */
.carousel-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: center;
    max-width: 100%;
    transition: transform 0.5s ease-in-out;
    overflow: hidden;
    padding: 10px 0;
}

/* Suggestion Buttons */
.carousel-inner button {
    background-color: transparent;
    border: 1px solid;
    border-radius: 28px;
    padding: 12px 16px;
    font-size: clamp(12px, 3vw, 14px);;
    color: white;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    font-family: 'Zurich Sans Light', serif;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-overflow: ellipsis;
    overflow: hidden;
    min-height: 48px;
}

/* Hover Effect */
.carousel-inner button:hover {
    background-color: white;
    color: #0068AE;
}

/* Pagination Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dots .dot.active {
    background-color: #93BEE1;
}

/* Tooltip styling */
.tooltip-container {
    position: fixed;
    bottom: 50px;
    left: 70px;
    display: inline-block;
    z-index: 10;
}

.tooltip-icon {
    position: relative;
}

.full-text, .icon-only {
    background-color: white;
    color: #2167AE;
    border: none;
    border-radius: 40px;
    padding: 20px 20px;
    display: inline-block;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}

.icon-only {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    font-size: 20px;
}

.tooltip {
    visibility: hidden;
    width: 750px;
    background-color: white;
    color: #0068AE;
    text-align: left;
    padding: 15px;
    border-radius: 20px 20px 20px 0;
    position: absolute;
    bottom: 60px;
    left: 50px;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: visibility 0.3s, opacity 0.3s;
    opacity: 0;
    font-family: 'Zurich Sans Regular', serif;
    font-size: clamp(12px, 3vw, 16px);
    font-weight: 400;
}

.tooltip-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Disclaimer start */
#disclaimer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    font-family: 'Zurich Sans Light', sans-serif;
}

#modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 510px;
    font-family: 'Zurich Sans Light', sans-serif;
}

#modal-content h2 {
    margin-top: 0;
    font-size: clamp(20px, 3vw, 30px);
    color: #2167AE;
    font-weight: bold;
    text-align: center;
}

#modal-content p {
    font-size: 1em;
    color: #5a5a5a;
    text-align: center;
    line-height: 1.6;
}

#modal-content ul {
    margin-top: 20px;
    padding-left: 20px;
    list-style-type: disc;
    font-size: 1em;
    color: #333;
    line-height: 1.6;
}

#modal-content ul li {
    list-style-type: none;
    padding: 0;
    margin-bottom: 2em;
}

#proceed-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    background: #2167AE;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

#proceed-btn:hover {
    background: #184e8a;
    transform: scale(1.05);
}
/* disclaimer end*/


.main-footer {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: white;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 5;
}

.main-footer a {
    color: white;
    text-decoration: none;
    font-family: 'Zurich Sans', serif;
    cursor: pointer;
}

/* Responsive styles screens */
@media screen and (min-width: 768px) {
    .full-text {
        display: block;
    }
    .icon-only {
        display: none;
    }
}

@media (max-width: 1700px) {
    .search-bar {
        margin: 0 auto 70px;
    }

}

/* Medium Screens (Tablets) */
@media (max-width: 1200px) {
    .background-shapes {
        width: 25vw;
    }
}

/* Small Screens (Mobile) */
@media (max-width: 768px) {
    body.main-page {
        height: calc(var(--vh, 1vh) * 100);
        min-height: 100vh; /* Fallback */
        min-height: -webkit-fill-available; /* iOS Safari fix */
        /*overflow-y: auto;*/
        overflow-x: hidden;
    }

    .background-shapes {
        display: none;
    }

    .mobile-break {
        display: inline;
    }

    .tooltip-container {
        bottom: 20px;
        left: 20px;
    }

    .tooltip {
        max-width: 300px;
        font-size: 12px;
        padding: 15px;
        bottom: 60px;
    }

    .tooltip-icon {
        width: 35px;
        height: 35px;
    }

    .full-text {
        display: none;
    }

    .icon-only {
        display: block;
    }

    .search-bar input::placeholder {
        text-align: center;
    }

    .mid-bottom-section {
        display: none;
    }

    .subheading {
        margin-bottom: 30px;
        font-size: clamp(14px, 2.5vw, 18px);
    }

    h1 {
        margin-bottom: 20px;
        font-size: clamp(58px, 5vw, 66px);
        line-height: 0.9;
    }

    /* Adjust spacing on search bar */
    .search-bar {
        margin-bottom: 60px;
        width: 100%;
    }

    main {
        padding: 0 10px;
    }

    .tagline-horizontal {
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 8px;
        right: 30px;
        left: 30px;
    }

    .tagline-horizontal img {
        height: 40px;
        width: auto;
    }

    .tagline-horizontal span {
        font-size: 16px;
    }

    /* Carousel Container */
    .carousel {
        position: relative;
        width: 100%;
        max-width: 900px;
        margin: 0 auto;
    }

    /* Inner Carousel - Grid Layout */
    .carousel-inner {
        display: grid;
        grid-template-columns: none;
        gap: 20px;
        justify-items: center;
        align-items: center;
        max-width: 100%;
        transition: transform 0.5s ease-in-out;
        overflow: hidden;
        padding: 10px 0;
    }

    /* Suggestion Buttons */
    .carousel-inner button {
        background-color: transparent;
        border: 1px solid;
        border-radius: 28px;
        padding: 12px 16px;
        font-size: clamp(12px, 3vw, 14px);;
        color: white;
        cursor: pointer;
        text-align: center;
        font-weight: 500;
        font-family: 'Zurich Sans Light', serif;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        word-wrap: break-word;
        text-overflow: ellipsis;
        overflow: hidden;
        min-height: 48px;
    }

    #modal-content ul {
        font-size: 0.9em;
        line-height: 1.5;
    }

}

/* Extra-Small Screens */
@media (max-width: 480px) {

    .tooltip-container {
        bottom: 15px;
        left: 15px;
    }

    .tooltip {
        max-width: 250px;
        font-size: 11px;
        padding: 10px;
        bottom: 50px;
    }

    .tooltip-icon {
        width: 30px;
        height: 30px;
    }

    h1 {
        font-size: clamp(56px, 5vw, 66px)
    }

}

@media (max-width: 390px) {

    .mobile-break {
        display: inline;
    }

    .tooltip-container {
        bottom: 20px;
        left: 20px;
    }

    .tooltip {
        max-width: 300px;
        font-size: 12px;
        padding: 15px;
        bottom: 60px;
    }

    .tooltip-icon {
        width: 35px;
        height: 35px;
    }

    .full-text {
        display: none;
    }

    .icon-only {
        display: block;
    }

    .search-bar input::placeholder {
        text-align: center;
    }

    .mid-bottom-section {
        display: none;
    }

    .subheading {
        margin-bottom: 30px;
        font-size: clamp(14px, 2.5vw, 18px);
    }

    h1 {
        margin-bottom: 20px;
        font-size: clamp(54px, 5vw, 66px);
        line-height: 0.9;
    }

    /* Adjust spacing on search bar */
    .search-bar {
        margin-bottom: 60px;
    }

    main {
        padding: 0 10px;
    }

    .tagline-horizontal {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .tagline-horizontal img {
        height: 40px;
        width: auto;
    }

    .tagline-horizontal span {
        font-size: 16px;
    }
    
}

@media (max-height:750px ) {
/*    h1 {
        margin-top: 150px;
    }*/
    .search-bar {
        margin: 0 auto 70px;
    }
    .full-text, .icon-only {
        font-size: 13px;
    }
}

@media (max-height:690px ) {
    /*h1 {
        margin-top: 100px;
    }*/
    .search-bar {
        margin: 0 auto 40px;
    }
    .full-text, .icon-only {
        font-size: 12px;
    }

}