:root {
    /* Color palette */
    --black: #000000;
    --white: #FFFFFF;
    --blue: #021639;
    --orange: #F57333;
    --background-grey: #cfcaca;

    /* Contact page colours */
    --light-grey: #f4f4f4;
    --dark-grey: #333;
    --soft-grey: #f9f9f9;
    --mid-grey: #666;
    --accent-grey: #f8f9fa;
    --deep-blue: #0c4888;
}


/* =========================================================
   GENERAL PAGE STRUCTURE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--background-grey);
    color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
}

.site-container {
    width: 100%;
    max-width: 1900px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0 auto;
    background-color: var(--background-grey);
}

.site-header,
.site-footer {
    width: 100%;
    background: var(--blue);
    padding: 20px;
    text-align: center;
    color: var(--white);
}

.site-header {
    padding-left: 0;
    padding-right: 0;
}

.site-header,
.navbar-custom {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.site-main {
    width: 100%;
    max-width: 100%;
    flex-grow: 1;
    overflow-y: auto;
    background: #d3d3d3;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navbar-toggler-icons {
    color: var(--orange);
}

.navbar-custom {
    width: 100%;
    background-color: var(--blue);
    border-bottom: 3px solid var(--orange);
}

.navbar-custom .container-fluid {
    width: 100%;
    padding-left: clamp(15px, 3vw, 45px);
    padding-right: clamp(15px, 3vw, 45px);
}

.navbar-brand,
.nav-link,
.dropdown-item,
.site-footer a {
    color: var(--white);
    transition: color 0.3s ease-in-out;
}

.navbar-brand:hover,
.nav-link:hover,
.dropdown-item:hover,
.site-footer a:hover {
    color: var(--orange);
}

.nav-item i {
    margin-right: 8px;
}

.dropdown-menu {
    background-color: var(--blue);
    border: none;
}

.logo-container {
    max-width: 100%;
}

.logo-resize {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    object-position: center;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    width: 100%;
    max-width: 100%;
    border-top: 3px solid var(--orange);
}

.footer-container {
    display: flex;
    width: 100%;
    max-width: 1140px;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 15px;
    color: white !important;
}

.footer-column {
    flex: 1;
    text-align: center;
}

hr {
    height: 1px;
    border: 0;
    background-color: var(--orange);
}


/* =========================================================
   MODAL AND COOKIE CONSENT
   ========================================================= */

.modal {
    color: black;
}

#cookieConsentContainer {
    display: none;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    z-index: 1050;
    background: var(--blue);
    color: var(--white);
    text-align: center;
}

#cookieConsentButton {
    border: none;
    background-color: var(--orange);
    color: var(--white);
    cursor: pointer;
}

#cookieConsentButton:hover {
    background-color: var(--blue);
}


/* =========================================================
   CONTACT PAGE WRAPPERS
   ========================================================= */

.contact-container {
    width: 100%;
    max-width: 100%;
}

.contact-container > .container {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.contact-section {
    width: 100%;
    max-width: 900px;
    padding: 40px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    background-color: var(--accent-grey);
    border-top: 5px solid var(--orange);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.contact-section h4,
.contact-section h5,
.contact-section h2 {
    color: var(--blue);
    margin-top: 20px;
}

.contact-section p {
    color: var(--mid-grey);
    line-height: 1.6;
}

.contact-section .icon,
.accent-orange {
    margin-bottom: 20px;
    color: var(--orange);
    font-size: 50px;
}

.accent-blue {
    color: var(--blue);
}


/* =========================================================
   CONTACT BUTTONS AND SOCIAL LINKS
   ========================================================= */

.btn-copy,
.btn-primary {
    display: inline-block;
    max-width: 100%;
    padding: 10px 20px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    background-color: var(--blue);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: normal;
}

.btn-copy:hover,
.btn-primary:hover {
    background-color: var(--deep-blue);
    color: var(--white);
}

.community-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.community-links a {
    margin-right: 0;
    color: var(--blue);
    font-size: 30px;
}

.community-links a:hover {
    color: var(--deep-blue);
}


/* =========================================================
   CONTACT FORM
   ========================================================= */

.contact-form {
    display: flex;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form form {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    overflow: hidden;
    background: var(--white);
    border-top: 5px solid var(--orange);
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.contact-form .row {
    width: 100%;
    max-width: 100%;
}

.contact-form h2 {
    color: var(--blue);
}

.contact-form label {
    display: block;
}

.form-control {
    width: 100%;
    max-width: 100%;
}

textarea.form-control {
    resize: vertical;
}

.contact-form button[type="submit"] {
    min-width: 180px;
}


/* =========================================================
   FAQ SECTION
   ========================================================= */

.question-container {
    width: calc(100% - 30px);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    background-color: white;
    border-top: 5px solid var(--orange);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.faq-section {
    width: auto;
    max-width: 100%;
}

.faq-section h2 {
    color: var(--blue);
}

.accordion {
    width: 100%;
    max-width: 100%;
}

.accordion-item {
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid #e3e6f0;
}

.accordion-button {
    width: 100%;
    overflow-wrap: break-word;
    white-space: normal;
}

.accordion-button:not(.collapsed) {
    color: var(--blue);
    background-color: var(--accent-grey);
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    overflow-wrap: break-word;
}

.text-secondary {
    color: #6c757d;
}


/* =========================================================
   LARGE LAPTOPS AND MONITORS
   ========================================================= */

@media (min-width: 1200px) {
    .contact-section,
    .contact-form,
    .question-container {
        max-width: 1000px;
    }
}

@media (min-width: 1600px) {
    .contact-section,
    .contact-form,
    .question-container {
        max-width: 1100px;
    }
}


/* =========================================================
   TABLETS AND SMALL LAPTOPS
   ========================================================= */

@media (max-width: 991.98px) {
    .navbar-collapse {
        width: 100%;
    }

    .navbar-nav {
        width: 100%;
    }

    .dropdown-menu {
        width: 100%;
    }

    .contact-section {
        padding: 30px 24px;
    }

    .contact-form {
        width: calc(100% - 24px);
    }

    .contact-form form {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .question-container {
        width: calc(100% - 24px);
    }

    .faq-section {
        margin-left: 15px !important;
        margin-right: 15px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
    .site-header {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navbar-brand {
        max-width: calc(100% - 70px);
    }

    .logo-resize {
        max-width: 70px;
        max-height: 70px;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-column {
        width: 100%;
        margin-bottom: 20px;
    }

    .contact-container > .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .contact-section {
        width: 100%;
        padding: 25px 18px;
        border-radius: 8px;
    }

    .contact-section p {
        font-size: 15px;
    }

    .contact-section .col-12 {
        padding-left: 8px;
        padding-right: 8px;
    }

    .btn-copy {
        width: 100%;
        max-width: 260px;
    }

    .contact-form {
        width: calc(100% - 16px);
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .contact-form form {
        width: 100%;
        padding: 18px !important;
        margin: 0 !important;
    }

    .contact-form .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .contact-form .row > div {
        padding-left: 0;
        padding-right: 0;
    }

    .contact-form button[type="submit"] {
        width: 100% !important;
        min-width: 0;
    }

    .question-container {
        width: calc(100% - 16px);
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .faq-section {
        margin: 20px 0 !important;
        padding: 10px !important;
    }

    .accordion-button {
        padding: 15px 12px;
        font-size: 0.95rem;
    }

    .accordion-body {
        padding: 15px 12px;
        font-size: 0.95rem;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {
    .site-header,
    .site-footer {
        padding-left: 10px;
        padding-right: 10px;
    }

    .site-header {
        padding-left: 0;
        padding-right: 0;
    }

    .navbar-custom .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar-brand {
        max-width: calc(100% - 60px);
        font-size: 0.9rem;
    }

    .logo-resize {
        max-width: 55px;
        max-height: 55px;
    }

    .contact-section {
        padding: 20px 12px;
    }

    .contact-section h4,
    .contact-section h5,
    .contact-section h2 {
        font-size: 1.25rem;
    }

    .contact-section p {
        font-size: 14px;
    }

    .community-links a {
        font-size: 26px;
    }

    .contact-form {
        width: calc(100% - 10px);
    }

    .contact-form form {
        padding: 14px !important;
    }

    .contact-form h2 {
        font-size: 1.4rem;
    }

    .question-container {
        width: calc(100% - 10px);
    }

    .faq-section h2 {
        font-size: 1.4rem;
    }

    .accordion-button {
        padding: 13px 10px;
        font-size: 0.88rem;
    }

    .accordion-body {
        padding: 13px 10px;
        font-size: 0.88rem;
    }

    #cookieConsentContainer {
        padding: 12px;
        font-size: 0.9rem;
    }

    #cookieConsentButton {
        display: block;
        margin: 8px auto 0;
    }
}
