
/* Fix merge conflict and ensure font is loaded properly */
html, body {
    overflow-x: hidden; /* DISABLE horizontal scrolling */
    width: 100%;
}

/* Proper font import to ensure consistency */
@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@300;400;500;600;700;900&display=swap');

/* Global Styles */
body {
    margin: 0;
    font-family: "Albert Sans", sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fffaef;
}

.container {
    width: 90%;
    max-width: 1440px;
    margin: 0 auto;
}

h1, h2 {
    margin: 0;
    padding: 0;
    font-family: "Albert Sans", sans-serif;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px;
    height: 100px;
    background-color: #ECE8DF66; 
    position: relative;
    z-index: 100;
}

.navbar .logo {
    position: absolute;
    top: 50%;
    left: 100px;
    
    transform: translateY(-50%);
    transform-origin: left center;
    display: flex;
    align-items: center;
    max-width: 400px;

    /* Anti-blur hacks */
    will-change: transform;
    image-rendering: auto;
}

.navbar .logo img {
    height: 70px;
    width: auto;
    max-width: 100%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: absolute;
    top: 50%;
    right: 35px;
    margin: 0;
    list-style: none;
    transform: translateY(-50%) translateX(-20px);
}

.nav-links a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: #8BAEC3;
    text-align: center;
    font-family: "Albert Sans", sans-serif;
}

.nav-links a.well-played {
    font-weight: 500;
    color: #709cc8;
}

.nav-links a:hover {
    text-decoration: underline;
    text-decoration-color: #709cc8;
    text-decoration-thickness: 2px;
}

.navbar .login-button {
    background-color: #709cc8;
    color: #fff;
    padding: 10px 28px;
    border-radius: 50px;
    margin-top: 0px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 28px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
    font-family: "Albert Sans", sans-serif;
}

.navbar .login-button:hover {
    background-color: #005f7f;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* Base states for mobile elements */
.hamburger {
    display: none;  /* Hidden by default on desktop */
}

.mobile-nav {
    display: none;  /* Hidden by default on desktop */
}

/* Contact Section */
.contact {
    position: relative;
    height: auto;
    min-height: 0;
    background: linear-gradient(to bottom, #D3D9ED, #E4F2F1);
    width: 100vw;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow: hidden;
    padding: 80px 0;
}

.contact .grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: url('../images/Grid.png') no-repeat left top;
    background-size: contain;
    opacity: 0.4;
    pointer-events: none;
    z-index: 3;
}

.contact .lines-overlay {
    position: absolute;
    top: 0;
    right: 60px;
    width: 30%;
    height: 100%;
    background: url('../images/Vertical_lines.png') no-repeat right top;
    background-size: contain;
    opacity: 0.4;
    pointer-events: none;
    z-index: 3;
}

.contact .container #contact-paragraph,
.contact .container #contact-paragraph a {
    font-size: 1.1rem !important;
    color: #000 !important;
    text-align: center !important;
    line-height: 1.5 !important;
    font-family: "Albert Sans", sans-serif !important;
}

.contact h2 {
    color: #263B9F;
    font-size: 70px;
    text-align: center;
    width: 100%;
    margin: 0 auto 30px;
    font-family: "Albert Sans", sans-serif;
}

.contact .container {
    position: relative;
    z-index: 4;
    background: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 12px;
    max-width: 1100px;
    text-align: center;
}

.contact form {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
    border-radius: 12px;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 16px;
    background-color: #fff;
    font-family: "Albert Sans", sans-serif;
}

/* Standard submit button styling */
.submit-btn {
    margin-top: 20px;
    padding: 30px 36px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 30px;
    font-weight: bold;
    max-width: 900px;
    text-align: center;
    transition: background 0.3s, transform 0.2s;
    font-family: "Albert Sans", sans-serif;
}

.submit-btn:hover {
    background-color: #e05555;
    transform: scale(1.05);
}

/* HubSpot Submit Button Styling */
.hs-button.primary,
.hs-form-private .hs-button.primary,
.hs-form .hs-button.primary {
    padding: 18px 40px !important;
    font-size: 22px !important;
    font-weight: bold !important;
    width: auto !important;
    min-width: 250px !important;
    border-radius: 30px !important;
    transition: all 0.3s ease !important;
    font-family: "Albert Sans", sans-serif !important;
    background-color: #709cc8 !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    text-align: center !important;
    margin-top: 20px !important;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2) !important;
    display: inline-block !important;
    line-height: 1.4 !important;
    text-transform: none !important;
}

.hs-button.primary:hover,
.hs-form-private .hs-button.primary:hover,
.hs-form .hs-button.primary:hover {
    background-color: #263B9F !important;
    transform: scale(1.05) !important;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* HubSpot Form Container Styling */
.hbspt-form,
.hs_submit,
.hs-form,
.hs-form-field {
    font-family: "Albert Sans", sans-serif !important;
}

.hbspt-form {
    width: 100% !important;
    max-width: 100% !important;
}

/* FAQ Section */
.faq {
    background: linear-gradient(to bottom, #E4F2F1, #D3D9ED);
    padding: 60px 0;
    display: flex;
    justify-content: center;
}

.faq .container {
    text-align: left;
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
}

.faq h2 {
    text-align: center;
    width: 100%;
    margin: 0 auto 20px;
    color: #263B9F;
    font-size: 70px;
    font-family: "Albert Sans", sans-serif;
}

.faq-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-header {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #002D62;
    cursor: pointer;
    font-family: "Albert Sans", sans-serif;
}

.faq-question {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    flex-grow: 1;
    padding: 0;
    font-family: "Albert Sans", sans-serif;
}

.faq-answer {
    display: none;
    padding: 20px 0 0 39px;
    font-size: 16px;
    text-align: left;
    font-family: "Albert Sans", sans-serif;
}

.faq-answer a {
    color: #709cc8;
    text-decoration: underline;
    font-family: "Albert Sans", sans-serif;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Footer */
.footer {
    background-color: #000;
    color: #fff;
    padding: 2rem 0;
    width: 100%;
    overflow-x: hidden;
}

.footer-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    box-sizing: border-box;
}

/* Left-Aligned Logo */
.footer-logo {
    width: 105px;
    height: auto;
    position: relative;
    left: 0;
    margin-right: auto;
}

/* Right-Aligned Content */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 100%;
    flex-shrink: 1;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.social-links img {
    width: 59px;
    height: 59px;
    transition: transform 0.2s ease-in-out;
    max-width: 100%;
}

.social-links img:hover {
    transform: scale(1.1);
}

/* Grey Section Below Footer */
.footer-bottom {
    width: 100%;
    height: 50px;
    background-color: #222222;
    display: flex;
    align-items: center;
}

.footer-bottom-container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 50px;
    box-sizing: border-box;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #fff;
    font-family: "Albert Sans", sans-serif;
}

.footer-bottom a,
.footer-right a {
    color: #709cc8;
    text-decoration: none;
    font-family: "Albert Sans", sans-serif;
}

.footer-text {
    font-family: "Albert Sans", sans-serif;
}

.footer-bottom a:hover,
.footer-right a:hover {
    text-decoration: underline;
}

/* ============================== */
/*  MOBILE RESPONSIVENESS - CONTACT PAGE  */
/* ============================== */

/* Laptop screens */
@media (max-width: 1680px) {
    /* Navbar */
    .navbar {
        height: 80px;
    }

    .navbar .logo {
        width: 250px;
        height: 62px;
        left: 60px;
    }

    .nav-links a {
        font-size: 14px;
    }

    /* Contact section */
    .contact h1 {
        font-size: 50px !important;
    }

    .contact h2 {
        font-size: 45px !important;
    }

    .contact p {
        font-size: 16px !important;
        line-height: 26px !important;
    }

    /* FAQ section */
    .faq h2 {
        font-size: 45px !important;
    }

    .faq-question {
        font-size: 18px !important;
    }

    .faq-answer {
        font-size: 15px !important;
    }
}

/* Navbar Fixes */
@media (max-width: 1024px) {
    .navbar {
        height: 80px;
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    /* Adjust logo size and center it vertically */
    .navbar .logo {
        position: absolute;
        left: 30px;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        height: auto;
    }

    .navbar .logo img {
        width: 180px;
        height: auto;
    }

    /* Hide desktop nav links, show hamburger menu */
    .nav-links {
        display: none;
    }

    /* Adjust hamburger menu */
    .hamburger {
        display: block;
        font-size: 30px;
        background: none;
        border: none;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 150;
    }

    .container {
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .mobile-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 70%;
        max-width: 300px;
        background: linear-gradient(to bottom, #D3D9ED, #E4F2F1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 15px;
        z-index: 200;
    }

    .mobile-nav.show {
        display: flex;
    }

    .mobile-nav a {
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
        color: #000;
        padding: 10px 0;
        text-align: center;
        display: block;
        font-family: "Albert Sans", sans-serif;
    }
}

/* Contact Section Mobile Adjustments */
@media (max-width: 768px) {
    h1, h2, h3, p, a, div, span, button, input, textarea {
        font-family: "Albert Sans", sans-serif !important;
    }

    .contact {
        padding: 40px 0;
        height: auto;
        min-height: auto;
    }

    .contact .container {
        width: 90%;
        margin: 0 auto;
        padding: 20px;
        max-width: 90%;
    }
    
    .contact h2 {
        font-size: 40px;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    /* Target the HubSpot form wrapper */
    #hubspot-form,
    .contact .hbspt-form,
    .contact iframe {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Make sure form elements also adjust */
    .contact input, 
    .contact textarea,
    .contact select,
    .contact .hs-form-field,
    .contact .hs-form {
        width: 100% !important;
        max-width: 100% !important;
        font-family: "Albert Sans", sans-serif !important;
    }

    .submit-btn {
        width: 100%;
        max-width: 300px;
        margin: 20px auto;
    }
    
    /* Mobile HubSpot Button Adjustments */
    .hs-button.primary,
    .hs-form-private .hs-button.primary,
    .hs-form .hs-button.primary {
        padding: 15px 30px !important;
        font-size: 18px !important;
        min-width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }
}

/* FAQ Section Mobile Adjustments */
@media (max-width: 768px) {
    .faq {
        padding: 40px 0;
    }

    .faq .container {
        width: 90%;
        margin: 0 auto;
        padding: 20px;
    }

    .faq h2 {
        font-size: 40px;
    }

    .faq-header {
        gap: 10px;
    }

    .faq-question {
        font-size: 16px;
    }

    .faq-answer {
        padding: 15px 0 0 20px;
        font-size: 15px;
    }
}

/* Footer Mobile Adjustments */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0;
        text-align: center;
        width: 100%;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 0px;
        align-items: center;
        text-align: center;
        margin: 0 auto;
        width: 100%;
    }

    .footer-logo {
        width: 105px;
        margin: 0 auto;
        display: block;
        left: 0;
    }

    .footer-right {
        align-items: center;
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .social-links {
        gap: 10px;
        justify-content: center;
        width: 100%;
        display: flex;
        margin: 0 auto;
    }

    .social-links img {
        width: 45px;
        height: 45px;
    }

    .footer-bottom {
        text-align: center;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .footer-bottom-container {
        padding: 0 20px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin: 0 auto;
    }

    .footer-text,
    .footer-bottom p {
        font-size: 12px;
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }
}

/* Make Hamburger Icon Always Black */
.hamburger {
    color: #000 !important;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    z-index: 200;
}

@media (max-width: 768px) {
    .faq-question,
    .faq-answer,
    .faq-toggle {
        color: #000 !important;
    }
}

/* Additional HubSpot Form Improvements */
/* Label styling */
.hs-form-field > label {
    font-family: "Albert Sans", sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Input field styling */
.hs-input {
    padding: 12px !important;
    font-family: "Albert Sans", sans-serif !important;
    font-size: 16px !important;
    border: 1px solid #ccc !important;
    border-radius: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 15px !important;
}

/* Error messages */
.hs-error-msg {
    color: #d9534f !important;
    font-family: "Albert Sans", sans-serif !important;
    font-size: 14px !important;
    margin-top: 5px !important;
}

/* Responsive iframe fix if HubSpot loads in iframe */
iframe.hs-form-iframe {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    height: auto !important;
    min-height: 350px !important;
}
