/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Spinner */

.spinner {
    display: inline-block;
    position: relative;
    width: 36px;
    height: 36px;
    transform: scale(.7);
}
.button .spinner {
    position: absolute;
    pointer-events: none;
    opacity: 0;
}
.button .spinner,
.button .text {
    transition: all .3s ease-in-out;
}
.button.loading .spinner {
    opacity: 0;
}
.button.loading .text {
    opacity: 0;
    pointer-events: none;
}
.button.big .spinner {
    transform: scale(1);
}
.spinner span {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 30px;
    height: 30px;
    margin: 4px;
    border: 4px solid #fff;
    border-radius: 50%;
    animation: spinner 0.6s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #fff transparent transparent transparent;
}
.spinner-container .spinner span {
    border: 4px solid var(--secondary);
    border-color: var(--secondary) transparent transparent transparent;
}
.spinner span:nth-child(1) {
    animation-delay: -0.225s;
}
.spinner span:nth-child(2) {
    animation-delay: -0.15s;
}
.spinner span:nth-child(3) {
    animation-delay: -0.075s;
}
@keyframes spinner {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
}

/* Typo */

.short-heading {
    color: var(--primary);
    max-width: 550px;
}

/* Employment */

.wpmoodle-employment form {
    margin: 0;
}
.wpmoodle-employment-login h3 {
    margin: 0 0 1em;
    font-size: 1.8em;
    text-align: center;
    color: var(--primary);
}

.wpmoodle-employment-applicant-form {
    padding: 2em 3em 3em;
    background: #fff;
}
.wpmoodle-employment-login-register {
    display: flex;
    flex-flow: row wrap;
}
.wpmoodle-employment-login-register > div {
    width: 50%;
    padding: 3em;
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: stretch;
}
.wpmoodle-employment-login-register .wpmoodle-employment-register {
    background: var(--primary);
    color: #fff;    
}
.wpmoodle-employment-login-register > div > .wpmoodle-notice,
.wpmoodle-employment-applicant-form form > .acf-notice {
    width: calc(100% + 6em);
    margin-left: -3em;
    margin-top: -3em;
    justify-content: center;
    margin-bottom: 3em;
}
.wpmoodle-employment-applicant-form form > .acf-notice {
    padding: 1.5em 2em;
    display: flex;
    flex-flow: row;
    justify-content: flex-start;
    align-items: center;
    background: #c5e4ff;
    margin-bottom: 2em;
}
.wpmoodle-employment-applicant-form form > .acf-notice.-dismiss {
    justify-content: space-between;
}
.wpmoodle-employment-applicant-form form > .acf-notice.-error {
    background: #ffdfdf;
    color: #934040;
}
.wpmoodle-employment-applicant-form form > .acf-notice .acf-notice-dismiss {
    position: relative;
    top: 0;
    right: 0;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    border-color: #D12626 !important;
}
/* ACF Forms */

.acf-form .select2-container.-acf .select2-selection--multiple {
    display: flex;
    flex-flow: column wrap;
    flex-direction: column-reverse;
}
.acf-form .select2-container.-acf .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-flow: row wrap;
    padding: 0 6px;
}
.acf-form .select2-container--default .select2-selection--multiple .select2-selection__choice {
    padding: 2px 0 1px 5px !important;
    line-height: 1.4em;
    display: flex !important;
    flex-flow: row;
    margin: 6px 5px 0 0 !important;
    align-items: center;
    font-size: 0.95em;
}
.select2-container.-acf.select2-container--disabled .select2-selection--multiple .select2-selection__choice {
    background: #e6f3ff;
}
.acf-form .select2-container--default .select2-selection--multiple .select2-search.select2-search--inline {
    padding-left: 10px;
    width: calc(100% + 5px);
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}
.acf-form a.acf-button {
    font-size: 1em;
    padding: 6px 16px 4px;
    margin: 5px;
    background: var(--secondary);
    color: #fff;
    text-shadow: none;
}
.acf-form a.acf-button:hover {
    background: var(--highlight);
    color: var(--primary);
}
.acf-form .acf-form-submit {
    padding-top: 2em;
    margin-top: 1em;
    border-top: 1px solid #ddd;
    display: flex;
    flex-flow: column wrap;
    align-items: center;
}
.acf-form .acf-form-submit input[type="submit"] {
    padding: 0.55em 2em;
    font-size: 1.2em;
    font-weight: 700;
}

/* Nif attachment */

.wpmoodle-attachment-form {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}
.wpmoodle-attachment-form.loading {
    pointer-events: none;
    animation: loading 1s ease-in-out forwards infinite;
}
@keyframes loading {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.25; }
}
.wpmoodle-attachment-form button {
    text-shadow: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 0.55em 1.85em;
}
.wpmoodle-attachment-form button:hover {
    text-shadow: none;
}
.wpmoodle-attachment-form label {
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    padding: 0.5em;
    color: var(--primary);
    font-weight: 600;
}
.wpmoodle-attachment-form p {
    font-family: 'Poppins', sans-serif;
}

.wpmoodle-file {
    position: relative;
    display: inline-block;
    width: 100%;
}
.wpmoodle-attachment-form .wpmoodle-file {
    margin-bottom: 1.5em;
}
  
.wpmoodle-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    overflow: hidden;
    display: flex;
    flex-flow: row;
    justify-content: flex-start;
    align-items: stretch;
}
.wpmoodle-file-input .wpmoodle-file-input-button {
    position:relative;
    min-width: 205px;
}
.wpmoodle-file-input .wpmoodle-file-input-button input {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    padding: 0;
}
.wpmoodle-file-input .wpmoodle-file-input-button button {
    background-color: #eee;
    pointer-events: none;
    border: 1px solid #ccc;
    width: 100%;
}
.wpmoodle-file-input .wpmoodle-file-input-button input:hover + button {
    background-color: #ddd;
}
.wpmoodle-file-input .wpmoodle-file-input-text {
    display: flex;
    flex-grow: 1;
    line-height: 1em;
    flex-flow: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0.55em 0.85em;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: calc(100% - 205px);
}

@media (min-width: 1200px) {
    .wpmoodle-file-input {
        min-width: 440px;
    }
}

@media (max-width: 979px) {
    .wpmoodle-file-input {
        flex-flow: column;
        justify-content: stretch;
        align-items: flex-start;
    }
    .wpmoodle-file-input .wpmoodle-file-input-button {
        order: 2;
        width: 100%;
    }
    .wpmoodle-file-input .wpmoodle-file-input-text {
        order: 1;
        width: 100%;
        padding: 1em 0.85em;
        text-align: center;
        align-items: center;
    }
}
@media (max-width: 767px) {
    .wpmoodle-file-input {
        flex-flow: row;
        justify-content: flex-start;
        align-items: stretch;
    }
    .wpmoodle-file-input .wpmoodle-file-input-button {
        order: 1;
        width: auto;
    }
    .wpmoodle-file-input .wpmoodle-file-input-text {
        order: 2;
        width: calc(100% - 205px);
        padding: 0.55em 0.85em;
        align-items: flex-start;
    }
}
@media (max-width: 479px) {
    .wpmoodle-file-input {
        flex-flow: column;
        justify-content: stretch;
        align-items: flex-start;
    }
    .wpmoodle-file-input .wpmoodle-file-input-button {
        order: 2;
        width: 100%;
    }
    .wpmoodle-file-input .wpmoodle-file-input-text {
        order: 1;
        width: 100%;
        padding: 1em 0.85em;
        text-align: center;
        align-items: center;
    }
}