@import url('https://fonts.googleapis.com/css2?family=Encode+Sans+SC:wght@100..900&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@font-face {
    font-family: "Sofia Pro Light";
    src: url("fonts/Sofia Pro Light.ttf") format("opentype");
    font-weight: 200;
}

@font-face {
    font-family: "Sofia Pro Regular";
    src: url("fonts/Sofia Pro Regular.ttf") format("opentype");
    font-weight: 400;
}

@font-face {
    font-family: "Sofia Pro Medium";
    src: url("fonts/Sofia Pro Medium.ttf") format("opentype");
    font-weight: 500;
}

@font-face {
    font-family: "Sofia Pro Bold";
    src: url("fonts/Sofia Pro Bold.ttf") format("opentype");
    font-weight: 800;
}

:root {
    /*FONTS*/
    --kanit: 'Kanit', Arial, sans-serif;
    --encode: "Encode Sans SC", 'Kanit', Arial, sans-serif;
    --sofia: 'Sofia Pro Regular', Arial, sans-serif;
    --logo-font: var(--encode);
    --body-font: var(--sofia);
    --btn-font: var(--kanit);
    /*SHADOWS*/
    --shadow-light: 0px 2px 4px 0px rgba(0,0,0,0.25);
    --shadow-medium: 0px 2px 5px 0px rgba(0,0,0,0.35);
    --shadow-inset: inset 0px 4px 4px 0px var(--clr-black25);
    --shadow-inset-light: inset 0px 4px 4px 0px rgba(0,0,0,0.15);
    /*COLOURS*/
    --clr-white: #FFF;
    --clr-tealStrong: #12847B;
    --clr-tealDark: #11998e;
    --clr-teal: #68AFA8;
    --clr-teal30: #CADEDC;
    --clr-tealMedium: #88CCC6;
    --clr-tealLight: #c4e6e3;
    --clr-pinkDark: #e60060;
    --clr-purpleDark: #5d26c1;
    --clr-purple: #AE93E0;
    --clr-purpleMedium: #865CD1;
    --clr-purpleLight: #d6c9ef;
    --clr-red: #FF6B6F;
    --clr-redMedium: #FF9D9F;
    --clr-redLight: #FFCECF;
    --clr-subtitle: #7E7E7E;
    --grey-icon: #7E7E7E;
    --nav-bg: #F3F3F3;
    --clr-border: #CFCFCF;
    --clr-accent: var(--clr-teal);
    --clr-accent-dark: var(--clr-tealDark);
    /* New branding colours set up */
    --clr-primary: var(--clr-purpleDark);
    --clr-primary-light: var(--clr-purpleLight);
    --clr-secondary: var(--clr-tealStrong);
    --clr-secondary-light: var(--clr-tealLight);
}

/*************************************/
/*              Selectors            */
/*************************************/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--body-font);
}

p {
    margin: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-block: 1rem;
}

a {
    text-decoration: none;
    color: var(--clr-accent);
}
    a:hover {
        color: var(--clr-accent-dark);
    }
    .NavMenu a {
        color: black;
        display: inline-block;
        width: 100%;
    }
.NavMenu a:hover {
    color: black;
}
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--btn-font);
    font-weight: 400;
    margin: 1rem 0 1rem 0;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
}

.user-select-none {
    user-select: none;
}
/*************************/
/*        Buttons        */
/*************************/

button {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--btn-font);
    border: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: var(--shadow-light);
    transition: all 0.2s ease;
    font-weight: 500;
    padding: 5px 10px;
    user-select: none;
}

    button:active {
        transform: translateY(1px);
    }

.btn-sm {
    font-size: 13px;
    height: min-content;
    padding: 2px 6px;
    margin-bottom: 5px;
    text-transform: unset;
    font-weight: unset;
    height: min-content;
}

button.no-btn {
    border: none;
    border-radius: 0px;
    font-family: inherit;
    padding: 0;
    box-shadow: none;
    font-size: 1rem;
    margin-block: 0;
    text-transform: initial;
    letter-spacing: initial;
    background-color: unset;
    font-weight: unset;
}

button.primary, .btn-primary {
    border-radius: 5px;
    border: 1px solid #FFF;
    background: linear-gradient(186deg, #B0DDD9 2.27%, #12847B 95.35%);
    box-shadow: -1px -5px 4px 0px rgba(255, 255, 255, 0.25) inset, var(--shadow-light);
    color: white;
}


    button.primary:hover, .btn-primary:hover {
        border-color: var(--clr-secondary);
        box-shadow: -1px -5px 4px 0px rgba(255, 255, 255, 0.25) inset, 0px 0px 8px 0px rgba(0, 0, 0, 0.25);
    }

button.secondary, .btn-secondary {
    border-radius: 5px;
    border: 1px solid #E9E9E9;
    background: linear-gradient(186deg, #FFF 2.27%, #E7E7E7 95.35%);
    box-shadow: -1px -5px 4px 0px rgba(255, 255, 255, 0.25) inset, var(--shadow-light);
    color: var(--clr-secondary) !important;
}

    button.secondary:hover, .btn-secondary:hover {
        /*box-shadow: 0px 0px 8px 0px #12847B;*/
        border-color: var(--clr-secondary);
    }

button.grey, .btn-grey {
    border-radius: 5px;
    border: 1px solid #E6E6E6;
    background: linear-gradient(186deg, #FFF 2.27%, #E7E7E7 95.35%);
    box-shadow: -1px -5px 4px 0px rgba(255, 255, 255, 0.25) inset;
    color: #686868;
}

    button.grey:hover, .btn-grey:hover {
        color: black;
        border-color: black;
    }

button.cancel, .btn-cancel {
    border-radius: 5px;
    border: 1px solid #E6E6E6;
    background: linear-gradient(186deg, #FFF 2.27%, #E7E7E7 95.35%);
    box-shadow: -1px -5px 4px 0px rgba(255, 255, 255, 0.25) inset;
    color: #686868;
}

    button.cancel:hover, .btn-cancel:hover {
        color: var(--clr-red);
        border-color: var(--clr-red);
    }

button.disabled, .btn-cancel {
    border-radius: 5px;
    border: 1px solid #E6E6E6;
    background: linear-gradient(186deg, #FFF 2.27%, #E7E7E7 95.35%);
    box-shadow: -1px -5px 4px 0px rgba(255, 255, 255, 0.25) inset;
    color: var(--clr-border);
    transition: unset;
}

    button.disabled:hover, .btn-disabled:hover {
        cursor: default;
    }

/*************************/
/*        Inputs         */
/*************************/
input {
    border: 1px solid var(--clr-border);
    padding: 3px 8px;
    border-radius: 5px;
}

    input.no-border {
        border: none;
    }

    input[type="file"] {
        box-shadow: var(--shadow-inset-light), var(--shadow-light);
        border-radius: 20px;
        padding: 0;
        border: 1px solid var(--clr-white);
        cursor: pointer;
    }

    input::file-selector-button {
        height: 2rem;
        padding-inline: 1rem;
        border-radius: 5px 0px 0px 5px;
        border: none;
        cursor: pointer;
    }

select {
    appearance: none;
    border-radius: 5px;
    border: 1px solid var(--clr-border);
    padding: 3px 2rem 3px 8px;
    background-image: url('../images/select-icon.png');
    background-repeat: no-repeat;
    background-position: calc(100% - 3px);
    background-size: 14px;
}
/*************************************/
/*           Utility classes         */
/*************************************/


.clr-accent {
    color: var(--clr-accent);
}

.clr-purpleDark {
    color: var(--clr-tealDark);
}

*:focus-visible {
    outline: 1px solid #12847B !important;
}

.bred {
    border: 1px solid red !important;
}

.white-space-nowrap {
    white-space: nowrap;
}

.cursor-pointer:hover {
    cursor: pointer;
}

.cursor-text:hover {
    cursor: text;
}

.overflow-ellipsis {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}


/*************************************/
/*                Modals             */
/*************************************/

.Modal_wrapper {
    position: fixed;
    background-color: rgba(0,0,0,0.35);
    inset: 0 0 0 0;
    z-index: 10;
}

    .Modal_wrapper hr {
        margin: 0;
    }

.Modal_dialog {
    position: absolute;
    z-index: 11;
    top: 10vh;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
    background-color: white;
    font-family: var(--body-font);
    color: black;
    width: min(500px, 90vw);
}

.Modal_body, .Modal_footer {
    padding: 1rem;
}

.Modal_header {
    user-select: none;
    padding: 1rem;
    font-size: 1.4rem;
}

    .Modal_header i {
        color: rgba(0,0,0,0.4);
    }

.Modal_body {
    font-size: 1.1rem;
}

.Modal_footer {
    user-select: none;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

*:focus-visible {
    outline-color: #C5C5C5;
}
.form-control {
    font-family: var(--body-font);
    font-size: 1.1rem;
}
    .form-control:focus {
        border-color: var(--clr-tealDark);
        box-shadow: 0 0 0 .25rem #12847b26;
    }

.form-label {
    font-family: var(--btn-font);
}
.verify-identity-wrapper {
    width: min(500px, 100%);
    border: 1px solid red;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #FFF;
    background: linear-gradient(173deg, #F9F9F9 6.54%, #EDEDED 94.87%);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    border: 1px solid #D2D2D2;
    font-family: var(--body-font);
}