/* ==========================================================================
   GLOBAL STYLES
   ========================================================================== */
   * {
    margin: 0;
    padding: 0;
    font-family: Arial, Tahoma, Verdana, sans-serif;
}

html, body {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth; /* Add smooth scrolling to the entire page */
}

/* Add space for fixed header */
body {
    padding-top: 9.5rem; /* Accounts for upper-header (2rem) + header (7.5rem) */
}

/* Main container for the single page layout */
.main-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Typography */
li {
    font-style: italic;
    font-size: 1.7rem;
    line-height: 2.5rem;
    font-weight: 400;
    margin-left: 2rem;
}

p {
    font-style: italic;
    font-size: 1.7rem;
    line-height: 2.5rem;
    font-weight: 400;
}

h1 {
    font-size: 4.4rem;
    font-weight: 500;
}

/* Button Base Styles */
button {
    background-color: #ffca5e;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 2rem;
    transition: all 0.3s;
}

button:hover {
    background-color: #FFF;
    color: #ffca5e;
}

/* Media Elements */
iframe {
    border-radius: 20px;
    width: 900px;
    min-height: 500px;
}

/* Container Layout */
.container {
    width: 900px;
    margin: 120px auto;
    background-color: #ffffee;
}

/* Section Base Styles */
.section {
    flex: 1;
    min-height: calc(100vh - 12rem - 6rem);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
}

/* Add visual separation between sections */
.section:nth-child(even) {
    background-color: #f9f9f9;
}

/* Section offsets for smooth scrolling */
.section::before {
    content: '';
    display: block;
    height: 9.5rem; /* Match header height */
    margin-top: -9.5rem; /* Negative margin to offset the padding-top */
    visibility: hidden;
    pointer-events: none;
}

/* Common Section Components */
.side-div {
    flex: 0 0 1.5%;
    background-color: #000;
    min-height: 100%;
    display: block;
}

.content-container {
    flex: 0 0 97%;
    display: flex;
    box-sizing: border-box;
}

.middlebody .content-container,
.pricingbody .content-container {
    background: linear-gradient(rgba(255, 255, 238, 0.5), rgba(255, 255, 238, 1)), url('../images/crumb001.jpeg');
    background-size: cover; /* This ensures the image covers the container */
    background-position: center; /* This centers the background image */
}

/* Remove display:none from all sections */
.featuresbody,
.aboutbody,
.pricingbody,
.faqsbody,
.contactbody {
    min-height: calc(100vh - 12rem - 6rem);
    height: auto;
    display: flex; /* Always display */
}

/* Utility Classes */
.section[style*="display: flex"] {
    display: flex !important;
}

/* ==========================================================================
   UPPER HEADER STYLES
   ========================================================================== */
.upper-header {
    width: 100%;
    height: 2rem;
    background-color: #16537e;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001; /* Higher than header to ensure it stays on top */
}

/* ==========================================================================
   HEADER STYLES
   ========================================================================== */
.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: #ffffee;
    height: 7.5rem;
    max-width: 100%;
    padding: 0 2rem;
    position: fixed; 
    top: 2rem;
    left: 0;
    right: 0;
    z-index: 1000;
    box-sizing: border-box;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.left-header {
    padding-left: 2rem;
}

.header-logo {
    height: 110px; /* Adjust based on your desired logo size */
    width: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Ensure it doesn't overflow container */
    display: block; /* Remove any inline spacing issues */
    transition: all 0.3s ease; /* Smooth transitions for any hover effects */
}

.right-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* ==========================================================================
   NAVIGATION STYLES
   ========================================================================== */
/* Navigation Menu */
.menu {
    display: flex;
    font-size: 1.5rem;
    font-weight: 600;
    gap: 2rem;
    align-items: center;
}

.menu-item {
    text-decoration: none;
    color: #16537e;
    padding: 0.5rem;
    transition: color 0.3s;
}

.menu-item:hover {
    color: #333;
}

/* Active menu item style */
.menu-item.active {
    border-bottom: 2px solid #ffca5e;
    color: #ffca5e;
}

.waitlist-button {
    padding: 1rem 1rem;
    border-radius: 10px;
    background-color: #84cc16;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
    margin-right: 1.5rem;
}

.waitlist-button:hover {
    background-color: #333;
    color: #fff;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    position: fixed;
    top: 6rem;
    right: -100%;
    width: 100%;
    height: calc(100vh - 6rem);
    background-color: rgba(248, 125, 77, 0.95);
    transition: right 0.3s ease;
    z-index: 99;
    padding: 2rem 0;
}

.mobile-menu .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0;
}

.mobile-menu .menu-item {
    width: 100%;
    text-align: center;
    padding: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.mobile-menu .menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    right: 0;
}

/* ==========================================================================
   HOME/UPPERBODY SECTION STYLES
   ========================================================================== */
.upperbody {
    background-size: cover;
    min-height: calc(100vh - 12rem - 6rem);
    height: auto;
    display: flex;
    flex-direction: row;
}

.upperleft {
    width: 50%;
    padding: 2rem;
    margin-left: 4rem;
    padding-right: 4rem;
    margin-top: 2rem;
    box-sizing: border-box;
}

.upperleft p {
    color: #ffffee;
}

.button-container {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.buddy-button {
    padding: 1rem 1rem;
    border-radius: 10px;
    background-color: #84cc16;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.buddy-button:hover {
    background-color: #333;
    color: #fff;
}

.upperleft h1 {
    color: #84cc16;
    text-shadow: 4px 4px 8px rgba(255, 255, 238, 0.3);
}

.upperright {
    width: 50%;
    padding-right: 4rem;
    padding-top: 6rem;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* Video Wrapper Styles */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9 / 16 = 0.5625) */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: unset;
}

/* ==========================================================================
   MIDDLE BODY SECTION STYLES
   ========================================================================== */
.middlebody {
    flex: 1;
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 35rem;
    box-sizing: border-box;
}

/* Add a class for when middlebody is used as a section separator */
.middlebody.section-separator {
    min-height: 38rem;
    border-top: none;
    flex-shrink: 0;
}

.middleleft {
    position: relative;
    width: 40%;
    font-size: 3rem;
    font-weight: 200;
    box-sizing: border-box;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

/* Image container for overlapping images */
.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* First error image (error.png) */
.floating-error-image {
    position: absolute;
    max-width: 60%; /* Resize to 70% of container width */
    max-height: 60%; /* Resize to 70% of container height */
    top: 68%;
    left: 70%;
    border-radius: 25px;
    transform: translate(-50%, -50%);
    border: 1px black solid;
    box-shadow: 15px 15px 25px rgba(0, 0, 0, 0.4);
    z-index: 3;
}

/* Second error image (error02.png) */
.floating-error-image-2 {
    position: absolute;
    max-width: 60%; /* Smaller than the first image */
    max-height: 60%;
    top: 36%; /* Position slightly above and to the right */
    left: 40%;
    border-radius: 25px;
    transform: translate(-50%, -50%);
    border: 1px black solid;
    box-shadow: 15px 15px 25px rgba(0, 0, 0, 0.4);
    z-index: 2; /* Higher z-index to appear on top */
}

.middleright {
    width: 60%;
    padding: 4rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
    box-sizing: border-box;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.middleright li {
    color: #000;
}

.middleright p {
    color: #000;
}

/* ==========================================================================
   ABOUT SECTION STYLES
   ========================================================================== */
.aboutright {
    width: 50%;
    padding: 4rem;
    line-height: 1.9rem;
    font-size: 1.4rem;
    padding-top: 4rem;
    display: flex;
    flex-direction: column;
    margin-left: 2rem;
}

.aboutright-content {
    background: rgba(255, 255, 255, 0.7);
    padding: 4.5rem;
    border-radius: 14px;
    box-shadow: 5px 4px 25px rgba(0, 0, 0, 0.5);
}

.aboutleft {
    width: 50%;
    background-image: url('../images/BakeZap.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==========================================================================
   FEATURES SECTION STYLES
   ========================================================================== */
.featuresbody .content-container,
.faqsbody .content-container {
    padding-left: 4rem;
    padding-right: 4rem;
   background: #ffffee url('../images/xv.png');
}
   
.features-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    margin-top: 5rem;
    margin-bottom: 5rem;
}
   
.features-heading {
    color: #000;
    margin-bottom: 3rem;
    font-size: 3.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
   
/* New column layout replacing grid */
.features-column {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    width: 100%;
    margin-top: 2rem;
}
   
.feature-card {
    display: flex;
    background-color: #FFFFEE;
    border-radius: 14px;
    box-shadow: 5px 4px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 250px;
}
   
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
   
/* Alternating alignment for cards */
.feature-card.align-left {
    margin-right: 25%;
}
   
.feature-card.align-right {
    margin-left: 25%;
}
   
/* Text side of the card */
.feature-text-side {
    flex: 1;
    padding: 2rem;
}
   
.feature-text-side h3 {
    color: #D1CB2F;
    margin-bottom: 1rem;
    font-size: 2rem;
}
   
.feature-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
}
   
.feature-description li {
    line-height: 1.6rem;
    margin-left: 1rem;
    font-style: normal;
}
   
/* Image side of the card */
.feature-image-side {
    flex: 1;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}
   
.feature-image-placeholder {
    width: 80%;
    height: 80%;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    color: #999;
    font-style: italic;
}

/* ==========================================================================
   PRICING SECTION STYLES
   ========================================================================== */
.pricing-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    margin-top: 5rem;
    margin-bottom: 5rem;
    background: url('../images/bg1.png');
}

/* Pricing intro text */
.pricing-content > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.7rem;
    color: #666;
}

/* Pricing tabs styling */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #e0e0e0;
}

.pricing-tab {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: transparent;
    color: #666;
}

.pricing-tab.active {
    background: #84cc16;
    color: white;
}

.pricing-tab:hover:not(.active) {
    background: rgba(248, 125, 77, 0.1);
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    width: 100%;
}

.pricing-card {
    width: 25%;
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 5px 4px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Popular tag styling */
.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid #84cc16;
    position: relative;
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #84cc16;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.pricing-card h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #84cc16;
}

/* Price display styling */
.price {
    font-size: 2.5rem !important;
    text-align: center;
    margin-bottom: 0.5rem !important;
    font-weight: bold;
    color: #333;
}

.price span {
    font-size: 1rem;
    opacity: 0.7;
    font-weight: normal;
}

.pricing-card .price {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: bold;
}

.pricing-card .annual-price {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
}

/* Platform fee styling (if used) */
.platform-fee {
    text-align: center;
    font-size: 0.9rem;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    color: #999;
}

.pricing-card ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-card li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
    font-style: normal;
    font-size: 1.5rem;
}

.pricing-card li:before {
    content: "•";
    color: #84cc16;
    position: absolute;
    left: 0;
}

.subscribe-button {
    background-color: #84cc16;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
}

.subscribe-button:hover {
    background-color: #d66a3e;
    transform: scale(1.05);
}

.pricing-card.free .subscribe-button {
    background-color: #666;
}

.pricing-card.free .subscribe-button:hover {
    background-color: #555;
}

/* ==========================================================================
   FAQ SECTION STYLES
   ========================================================================== */
.faqsbody .content-container {
    flex-direction: column;
    align-items: center;
    background-color: #16537e;
}

.faqs-content {
    width: 100%;
    max-width: 94%;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 5rem;
    margin-bottom: 5rem;
}

.faqs-content h1 {
    color: #84cc16;
    text-shadow: 4px 4px 8px rgba(255, 255, 238, 0.3);
}

.faq-columns {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: 2rem;
}

.faq-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #333;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, .9);
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.7rem;
}

.faq-toggle {
    font-size: 2.2rem;
    font-weight: bold;
}

.faq-answer {
    padding: 1rem;
    background-color: #ffffee;
    font-size: 1.4rem;
}

.faq-answer p {
    margin: 0;
    line-height: 1.2;
    font-weight: 500;
    color: #000;
}

.faq-answer ul {
    padding-left: 2rem;
}

.faq-answer li {
    line-height: 1.9rem;
    font-weight: 500;
}

/* FAQ Search Styles */
.faq-search-container {
    margin: 2rem 0;
    position: relative;
    max-width: 500px;
}

.faq-search-input {
    width: 100%;
    padding: 12px 40px 12px 45px;
    font-size: 1.1rem;
    border: 2px solid #84cc16;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
}

.faq-search-input:focus {
    box-shadow: 0 0 5px rgba(231, 122, 78, 0.5);
}

.faq-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #f87d4d;
    font-size: 1.2rem;
}

.highlight {
    background-color: rgba(231, 122, 78, 0.2);
    padding: 2px 0;
    border-radius: 2px;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* ==========================================================================
   CONTACT SECTION STYLES
   ========================================================================== */
.contact-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.contact-left {
    width: 50%;
    background-image: url('../images/lady_baker.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-right {
    width: 50%;
    padding: 4rem 4rem 4rem 10rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    background-color: #ffffee;
    background: url('../images/xv.png');
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-content h1 {
    color: #16537e;
    text-shadow: 4px 4px 8px rgba(40, 40, 40, 0.5);
}

.contact-right p {
    color: #16537e;
}

.contact-info p {
    font-size: 1.8rem;
    margin-bottom: .5rem;
    color: #333;
}

.waitlist-section {
    margin-top: 2rem;
    text-align: left;
}

.waitlist-section h2 {
    color: #84cc16;
    margin-bottom: 1rem;
    font-size: 2.4rem;
}

/* ==========================================================================
   LOWER BODY SECTION STYLES
   ========================================================================== */
.lowerbody {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    height: 6rem;
    width: 100%;
    border: 1px solid black;
    box-sizing: border-box;
    margin-top: auto;
    gap: 2rem;
}

.instagram {
    width: 80px;
}

.youtube {
    width: 100px;
}

.facebook {
    width: 85px;
}

.pinterest {
    width: 76px;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */
.footer {
    width: 100%;
    padding: 1rem 0;
    background-color: #fff4dd;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: #f87d4d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #333;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================================================
   FORM VALIDATION STYLES (Moved from contact.js)
   ========================================================================== */
.waitlist-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin-top: 3rem;
    gap: 2rem;
}

.form-group {
    position: relative;
    width: 100%;
}

.waitlist-form input[type="text"],
.waitlist-form input[type="email"] {
    width: 100%;
    padding: 1rem;
    border: 1px solid #84cc16;
    border-radius: 10px;
    font-size: 1rem;
    box-sizing: border-box;
    height: 55px;
    outline: none;
    background-color: white;
    transition: all 0.3s ease;
}

.waitlist-submit {
    width: 100%;
    padding: 1rem;
    background-color: #84cc16;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    height: 55px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.waitlist-submit:hover {
    background-color: #70b10e;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    text-align: left;
    min-height: .5rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.error-message.active {
    opacity: 1;
    transform: translateY(0);
}

input.error {
    border: 1px solid #e74c3c !important;
    background-color: #fff0f0;
}

input.valid {
    border: 1px solid #2ecc71 !important;
}

input:focus {
    outline: none;
    border-color: #84cc16;
    box-shadow: 0 0 0 1px rgba(132, 204, 22, 0.3);
}

.validation-tooltip {
    position: fixed;
    background-color: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    max-width: 400px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.validation-tooltip:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}


/* ==========================================================================
   THANK YOU POPUP STYLES
   ========================================================================== */
.thank-you-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.thank-you-popup.active {
    opacity: 1;
    visibility: visible;
}

.thank-you-content {
    background-color: #ffffee;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
    border: 2px solid #84cc16;
}

.thank-you-popup.active .thank-you-content {
    transform: translateY(0);
}

.thank-you-icon {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
}

.thank-you-content h2 {
    color: #16537e;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.thank-you-content p {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.thank-you-content .subtext {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

.close-popup-btn {
    background-color: #84cc16;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close-popup-btn:hover {
    background-color: #70b10e;
}

/* Animation for the popup */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); }
    to { transform: translateY(0); }
}

.thank-you-popup.active {
    animation: fadeIn 0.3s ease forwards;
}

.thank-you-popup.active .thank-you-content {
    animation: slideUp 0.3s ease forwards;
}

@media screen and (min-width: 1320px) and (max-width: 1635px) {

    h1 {
        font-size: 3.6rem;
    }

    p {
        font-size: 1.4rem;
        line-height: 2rem;
    }

    li {
        font-size: 1.4rem;
        line-height: 1.8rem;
    }

    .menu {
        font-size: 1.2rem;
        font-weight: 600;
        gap: 1.6rem;
    }

    .header-logo {
        height: 80px; /* Adjust based on your desired logo size */
    }

    .waitlist-button {
        font-size: 1rem;
    }


    .upperleft {
        padding: 1rem;
        margin-left: 2rem;
        padding-right: 4rem;
        margin-top: 2rem;
    }

    .middleright li {
        margin-left: 2rem;
    }

    .faq-question h3 {
        font-size: 1.4rem;
    }

    /* CSS rules for screens between 1320px and 1635px wide */
}

@media screen and (min-width: 1070px) and (max-width: 1319px) {

    h1 {
        font-size: 2.8rem;
    }

    p {
        font-size: 1.1rem;
        line-height: 1.6rem;
    }

    li {
        font-size: 1.1rem;
        line-height: 1.6rem;
    }

    .menu {
        font-size: 1rem;
        font-weight: 600;
        gap: 1.3rem;
    }

    .header-logo {
        height: 80px; /* Adjust based on your desired logo size */
    }

    .waitlist-button {
        font-size: 1rem;
    }


    .upperleft {
        padding: 1rem;
        margin-left: 2rem;
        padding-right: 4rem;
        margin-top: 2rem;
    }

    .middleright li {
        margin-left: 2rem;
    }

    .faq-question h3 {
        font-size: 1.1rem;
    }



    /* CSS rules for screens between 1070px and 1319px wide */
}

@media screen and (min-width: 945px) and (max-width: 1069px) {

    h1 {
        font-size: 2.4rem;
    }

    p {
        font-size: .9rem;
        line-height: 1.4rem;
    }

    li {
        font-size: .9rem;
        line-height: 1.4rem;
    }

    .menu {
        font-size: .9rem;
        font-weight: 600;
        gap: 1.2rem;
    }

    .header-logo {
        height: 80px; /* Adjust based on your desired logo size */
    }

    .waitlist-button {
        font-size: 1rem;
    }


    .upperleft {
        padding: 1rem;
        margin-left: 2rem;
        padding-right: 4rem;
        margin-top: 2rem;
    }

    .middleright li {
        margin-left: 2rem;
    }

    .faq-question h3 {
        font-size: 1.0rem;
    }

    .contact-right {
        padding: 4rem 4rem 4rem 4rem;
    }

    /* CSS rules for screens between 945px and 1069px wide */
}

@media screen and (min-width: 600px) and (max-width: 944px) {

    h1 {
        font-size: 3.4rem;
    }

    p {
        font-size: 1.2rem;
        line-height: 1.7rem;
    }

    li {
        font-size: 1.2rem;
        line-height: 1.7rem;
    }

    .left-header {
        padding-left: .5rem;
    }
    .header-logo {
        height: 80px; /* Adjust based on your desired logo size */
    }

    .waitlist-button {
        font-size: 1rem;
    }

    .menu {
        display: none !important;
    }
    
    .hamburger {
        display: flex !important;
    }
    
    .mobile-menu {
        display: block !important;
    }

    .middleright li {
        margin-left: 2rem;
    }

    .section.upperbody,
    .upperbody {
        flex-direction: column !important;
        height: auto !important;
        width: 80% !important;
    }
    
    .upperleft, .upperright {
        width: 100% !important;
        margin: 1rem 0 !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        padding-top: 1rem !important;
    }

    .upperright {
        order: 1;
    }
    
    .upperleft {
        order: 2;
    }

    .section:has(.upperbody) {
        flex-direction: column !important;
    }

    /* Alternative approach - target by section wrapper directly */
    .section {
        flex-direction: column !important;
    }

    .middlebody.section-separator {
        min-height: 0rem;
        border-top: none;
        flex-shrink: 0;
    }

    .middleleft, .image-container, .floating-error-image, .floating-error-image-2 {
        display: none;
    }

    .middleright {
        width: 100%;
        padding: 3rem;
        padding-top: 1rem;
        padding-bottom: 2rem;
        box-sizing: border-box;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .faqsbody .content-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .faq-search-container {
        margin: 2rem 0;
        position: relative;
        max-width: 300px;
    }

    .faq-columns {
        flex-direction: column;
    }
    
    .faq-column {
        width: 100%;
    }

    .faq-question h3 {
        font-size: 1.4rem;
    }

    .contact-left {
        display: none;
    }

    .contact-right {
        width: 100%;
        padding: 4rem 4rem 4rem 4rem;
    }

    /* CSS rules for screens between 600px and 944px wide */
}

@media screen and (min-width: 0px) and (max-width: 599px) {

    h1 {
        font-size: 3.4rem;
    }

    p {
        font-size: 1.2rem;
        line-height: 1.7rem;
    }

    li {
        font-size: 1.2rem;
        line-height: 1.7rem;
    }

    .left-header {
        padding-left: .5rem;
    }
    .header-logo {
        height: 60px; /* Adjust based on your desired logo size */
    }

    .waitlist-button {
        font-size: 1rem;
    }

    .menu {
        display: none !important;
    }
    
    .hamburger {
        display: flex !important;
    }
    
    .mobile-menu {
        display: block !important;
    }

    .middleright li {
        margin-left: 2rem;
    }

    .section.upperbody,
    .upperbody {
        flex-direction: column !important;
        height: auto !important;
        width: 80% !important;
    }
    
    .upperleft, .upperright {
        width: 100% !important;
        margin: 1rem 0 !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        padding-top: 1rem !important;
    }

    .upperright {
        order: 1;
    }
    
    .upperleft {
        order: 2;
    }

    .section:has(.upperbody) {
        flex-direction: column !important;
    }

    /* Alternative approach - target by section wrapper directly */
    .section {
        flex-direction: column !important;
    }

    .middlebody.section-separator {
        min-height: 0rem;
        border-top: none;
        flex-shrink: 0;
    }

    .middleleft, .image-container, .floating-error-image, .floating-error-image-2 {
        display: none;
    }

    .middleright {
        width: 100%;
        padding: 3rem;
        padding-top: 1rem;
        padding-bottom: 2rem;
        box-sizing: border-box;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .faqsbody .content-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .faq-search-container {
        margin: 2rem 0;
        position: relative;
        max-width: 200px;
    }

    .faq-columns {
        flex-direction: column;
    }
    
    .faq-column {
        width: 100%;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .contact-left {
        display: none;
    }

    .contact-right {
        width: 100%;
        padding: 2rem 2rem 2rem 2rem;
    }

    /* CSS rules for screens between 600px and 944px wide */
}