@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

:root {
    --primary: #57b3bd;
    --secondary: #ff694e;
    --background: #f2f2f5;
    --button: #3399fd;
    --text: #272f3a;
    --inactive: #a4a9b4;
    --stroke: #E6E9F0;
}

@font-face {
    font-family: Aeonik;
    src: url(assets/fonts/Aeonik-Regular.ttf);
    font-weight: normal;
}

@font-face {
    font-family: Aeonik;
    src: url(assets/fonts/Aeonik-Bold.ttf);
    font-weight: bold;
}

@font-face {
    font-family: Aeonik;
    src: url(assets/fonts/Aeonik-Light.ttf);
    font-weight: 200;
}


* {
    margin: 0;
    padding: 0;
}

/* Global Styles */

h1 {
    color: var(--text);
    text-align: center;
    font-family: Aeonik;
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: 0.3px;
}

h2 {
    color: var(--Text, #272F3A);
    text-align: center;
    font-family: Aeonik;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: 0.28px;
    text-align: left;
}

h3 {
    color: #000;
    text-align: center;
    font-family: Aeonik;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: 0.4px;
    text-align: left;
}

p {
    color: var(--text);
    text-align: center;
    font-family: "Nunito Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0.18px;
}

#body-center {
    background: var(--background);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

a {
    /* Style */
    border-radius: 12px;
    background-color: var(--button);
    box-shadow: 0px 8px 16px 0px rgba(51, 153, 253, 0.32);
    cursor: pointer;

    /* Layout */
    width: fit-content;
    padding: 18px 50px;

    /* Typography */
    color: #fff;
    font-family: Aeonik;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    text-decoration: none;
    letter-spacing: 0.18px;
}

.secondary-btn {
    background: unset;
    box-shadow: unset;
    border: 3px solid var(--button);
    color: var(--button);
}

input[type="text"] {
    /* Layout */
    display: flex;
    padding: 15px;
    padding-left: 20px;
    text-align: left;
    align-items: center;
    width: -webkit-fill-available;

    /* Style */
    border-radius: 12px;
    border: 1px solid #EAEAEC;
    background: #FFF;

    /* Typography */
    color: var(--Inactive, #A4A9B4);
    font-family: Aeonik;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.16px;
}

input[type="button"],
input[type="submit"] {
    /* Layout */
    display: flex;
    min-width: 158px;
    padding: 18px 50px;
    justify-content: center;
    align-items: center;
    gap: 8px;

    /* Style */
    cursor: pointer;
    border: none;
    border-radius: 12px;
    background: var(--button);
    box-shadow: 0px 0px 8px 0px rgba(51, 153, 253, 0.24);

    /* Typography */
    color: var(--Text-White, #FFF);
    text-align: center;
    font-family: Aeonik;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.18px;
}

/* Welcome Page */

#welcome-content {
    max-width: 900px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 50px;
}

#wc_text {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#wc_text h1 {
    text-wrap: balance;
}

#wc_text-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

#wc_ctas {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

#wc_ctas_keypress-indicator {
    color: #000;
    text-align: center;
    font-family: "Nunito Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.14px;
    display: flex;
    align-items: center;
}

#wc_ctas_keypress-indicator img {
    margin-left: 10px;
    margin-right: 6px;
}

/* About You */

#about-you-content {
    display: flex;
    width: 510px;
    padding: 30px;
    padding-bottom: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

#ayc_text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

#ayc_form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    align-self: stretch;
}

/* Project Details */

#project-details-content {
    max-width: 665px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 50px;
}

/* Checklist Results */

#two-column-dashboard {
    height: 100vh;
    display: flex;
    flex-direction: row;
    background: var(--background);
}

#sidebar {
    width: 500px;
    background: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.s_logo {
    padding-bottom: 20px;
    border-bottom: solid 1px rgba(217, 217, 217, 0.30);
}

.s_overview h2 {
    margin-bottom: 30px;
}

#overview-stats {
    border-radius: 12px;
    background: var(--background);
    display: flex;
    padding: 30px;
    flex-direction: column;
    gap: 15px;
}

.os_row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.095);
}

.os_row-title {
    color: #000;
    text-align: center;
    font-family: Aeonik;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.22px;
}

.os_row-num {
    color: var(--button);
    text-align: center;
    font-family: Aeonik;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.22px;
}

.s_categories h2 {
    margin-bottom: 30px;
}

#categories-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ct_item {
    /* Layout */
    padding: 0 0 10px 0;
    display: flex;
    justify-content: space-between;
    width: -webkit-fill-available;

    /* Style */
    background: unset;
    box-shadow: unset;
    border-bottom: 1px solid rgba(217, 217, 217, 0.40);

    /* Typography */
    color: #655E5E;
    text-align: center;
    font-family: Aeonik;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.2px;
}

.s_sign-in {
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    padding: 18px 20px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    box-shadow: unset;
    width: unset;

    /* Typography */
    color: #000;
    text-align: center;
    font-family: "Open Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: 0.18px;
}

#main-checklist {
    flex: 1;
    padding: 100px 200px;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.checklist-category {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.checklist-category p {
    color: #000;
    font-family: Aeonik;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 40px;
    text-align: left;
    letter-spacing: 0.22px;
}

/* Project Details Multi Page Logic */

.form-nav-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.step {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.step {
    display: none;
}

.active {
    display: flex;
}

.step-text h1 {
    margin-bottom: 20px;
}

.progress-bar {
    height: 16px;
    border-radius: 20px;
    background: white;
}

.pb_progress {
    height: 16px;
    border-radius: 16px;
    background: var(--button);
    width: 66.5px;
    box-shadow: 0px 0px 8px 0px rgba(51, 153, 253, 0.24);
}

/* Field Layouts */

fieldset {
    border: none;
}

.qg_item input[type="radio"],
.qc_item input[type="radio"],
.qg_item input[type="checkbox"] {
    /* Hide the radio or checkbox */
    display: none;
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    text-align: center;
}

.qg_item {
    /* Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 25px 15px;

    /* Style */
    background: white;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    cursor: pointer;
}

.qg_item img {
    height: 60px;
    margin-bottom: 9px;
}

.qg_title {
    color: #000;
    text-align: center;
    font-family: Aeonik;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.16px;
}

.qg_subtitle {
    color: var(--inactive);
    text-align: center;
    font-family: Aeonik;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 12px;
    letter-spacing: 0.14px;
}

input[type="radio"]:checked~.qg_title,
input[type="radio"]:hover~.qg_title {
    /* Set title blue on click */
    color: var(--button);
}

.question-row {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.qr_item {
    background: white;
    border: 1px solid #E6E9F0;
    border-radius: 12px;
    padding: 18px 16px;
    text-align: left;
    cursor: pointer;
    /* Typography */
    color: var(--text);
    font-family: Aeonik;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: 0.2px;
}

.qr_item input {
    margin-right: 15px;
}

.question-column {
    display: flex;
    flex-direction: row;
    gap: 22px;
    justify-content: center;
}

.qc_item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #E6E9F0;
    background: white;
    overflow: hidden;
    cursor: pointer;
    width: 300px;
}

.qc_item img {
    height: 175px;
    width: 300px;
    object-fit: cover;
}

.qc_item div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 18px 20px;
    align-items: flex-start;
    /* Typography */
    color: var(--text);
    font-family: Aeonik;
    font-size: 20px;
    font-style: normal;
    line-height: 28px;
    letter-spacing: 0.2px;
    text-wrap: wrap;
}

.qc_item p {
    color: var(--Inactive, #A4A9B4);
    font-family: Aeonik;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: 0.2px;
    text-align: left;
}

input[type="radio"]:checked~div,
input[type="radio"]:hover~div {
    /* Set title blue on click */
    color: var(--button);
}

#step-7 .qg_item {
    padding: 38px 14px;
}

.question-flex-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.question-flex-grid .qg_item {
    width: 175px;
    /* Typography */
    color: #000;
    text-align: center;
    font-family: Aeonik;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.16px;
}

.blue-border {
    border: 2px solid var(--button);
}

/* Holding Screen Animation */


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInUp {
    animation-name: fadeInUp;
    animation-duration: 1.2s;
    /* Adjust the duration as needed */
}

#holding-screen-text {
    color: #909090;
    text-align: center;
    font-family: Aeonik;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: 0.22px;
}

/* Checklist */

.accordion-item {
    border-radius: 12px;
    background: #FFF;
}

.accordion-header {
    cursor: pointer;
    display: flex;
    
    padding: 15px 25px;
    justify-content: space-between;
    align-items: center;
    /* Typography */
    color: #000;
    font-family: Aeonik;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: 0.22px;
}

.accordion-content {
    padding: 10px 35px 25px 35px;
    display: none;
    color: rgba(0, 0, 0, 0.70);
    font-family: Aeonik;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    letter-spacing: 0.18px;
}

.custom-checkbox {
    min-width: 24px;
    min-height: 24px;
    border: 2px solid #a4a9b4;
    border-radius: 5px;
    cursor: pointer;
}

.custom-checkbox.checked {
    border-color: #3399fd;
    background-color: #3399fd;
}

.custom-checkbox.checked::after {
    content: "\2713";
    display: block;
    font-size: 18px;
    color: #fff;
    text-align: center;
    line-height: 26px;
}

.accordion-header .group {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

/* Add this CSS to rotate the chevron icon when the 'flipped' class is present */
.accordion-header img.flipped {
    transform: rotate(180deg);
    transition: transform 0.3s ease; /* Add a transition for smooth rotation */
}

/* --------------------- */
/*  Mobile Optimisation  */
/* --------------------- */

@media only screen and (max-width: 600px) {

    /* Global Styles */

    h1 {
        font-size: 28px;
        line-height: 34px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 24px;
        line-height: 30px;
    }

    body {
        height: 90vh;
    }

    /* Welcome Page */

    #welcome-content {
        padding: 10px 30px;
    }

    #wc_ctas_keypress-indicator {
        display: none;
    }

    /* About You Page */

    #about-you-content {
        width: unset;
    }

    #ayc_form {
        display: flex;
        flex-direction: column;
        align-self: center;
    }

    #ayc_form input {
        width: 300px;
    }

    /* Project Details Page */

    #body-center {
        justify-content: unset
    }

    .step h1 {
        font-size: 24px;
    }

    .step p {
        font-size: 16px;
    }

    .question-grid {
        display: flex;
        flex-direction: column;
    }

    .qg_item {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        padding: 12px 20px;
    }

    .qg_item img {
        height: unset;
        width: 50px;
        margin: 0;
    }

    .qg_title {
        font-size: 14px;
        line-height: 14px;
    }

    .qg_subtitle {
        font-size: 14px;
    }

    .qr_item input {
        margin-right: 5px
    }

    .qr_item {
        font-size: 14px;
        line-height: 20px;
        padding: 14px 16px;
    }

    .question-column {
        flex-direction: column;
        align-items: center;
    }

    .qc_item {
        flex-direction: row;
        width: 325px;
        justify-content: flex-start;
    }

    .qc_item img {
        height: unset;
        width: 100px;
        object-fit: cover;
    }

    label[for="pd_yes"] {
        height: 100px;
    }

    .question-flex-grid {
        flex-direction: column;
    }

    #step-7 .qg_item {
        padding: 8px 14px;
        width: 300px;
    }
    
    #step-7 .qg_item img {
        width: 40px;
    }

    /* Holding Screen */

    .mobile-body-center {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center !important;
        height: 100vh !important;
        margin-top: -50px;
    }

    #holding-screen-text {
        font-size: 14px;
    }

    /* Checklist Page */

    #two-column-dashboard {
        flex-direction: column;
        gap: 20px;
        height: unset;
    }

    #sidebar {
        width: unset;
        padding: 20px;
        display: flex;
        gap: 20px;
    }

    .s_logo {
        padding-bottom: 10px;
    }

    .s_logo img {
        width: 150px;
    }

    #user-greeting {
        margin-bottom: 15px;
    }

    #overview-stats {
        padding: 15px;
        gap: 10px;
    }

    #overview-stats p {
        font-size: 16px;
    }

    #main-checklist {
        padding: 30px;
        gap: 50px;
    }

    #main-checklist p {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 10px;
    }

    .checklist-category {
        gap: 15px;
    }
    
    .accordion-header .group {
        gap: 15px;
        margin-right: 5px;
    }

    .accordion-header .group p {
        font-size: 14px;
        line-height: 18px;
        color: #000;
        font-family: Aeonik;
        font-style: normal;
        font-weight: 400;
        letter-spacing: 0.22px;
        width: fit-content !important;
        margin-bottom: unset !important;
    }

    .accordion-content {
        font-size: 16px;
        line-height: 24px;
    }



}