﻿:root {
    --white: rgb(239, 239, 239);
    --dark: rgb(65,65,65);
    --nclRed: #DB2F2F;
    --nclGreen: #2ca774;
}
/* --------------- LOADING ICON ---------------- */

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.spinnerPhoto::before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgb(239, 239, 239);
    border-bottom-color: rgb(239, 239, 239);
    animation: spinner .8s ease infinite;
    opacity: 1;
    transition: .3s ease-in-out;
    z-index: 2;
}

#previewImageLoadingIcon {
    position: absolute;
    display: none;
    justify-content: center;
    align-items: center;
}

/* --------------- STUDENT PHOTO ---------------- */
.enrolmentPhotoInput {
    display: none;
}

.enrolmentPhotoLabel,
.enrolmentPhotoLabelWebcam {
    border: 1px dashed var(--dark);
    cursor: pointer;
    border-radius: 5px;
    background: white;
    display: flex;
    padding: .9rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.enrolmentPhotoLabel img,
.enrolmentPhotoLabelWebcam img {
    width: 55px;
    transform: translate(0px, 0);
    margin-right: 1rem;
}

.enrolmentPhotoLabelWebcam {
    margin-top: 1rem;
}

.previewImageBox h2{
    display: none;
}

#previewImage {
    width: 100%;
    padding: 1rem;
    margin: 2rem 2rem 0rem 0rem;
    border: 3px dashed var(--dark);
    border-radius: 7px;
    cursor: auto;
    display: none;
    opacity: 1;
}

#selectedImageName {
    margin-bottom: 1rem;
    word-wrap: anywhere;
}

.photoUploadBtnFake {
    background-color: var(--dark);
    margin: auto;
    padding: 0.7rem;
    cursor: not-allowed;
    border: none;
    width: 300px !important;
    margin-bottom: 2rem;
    border-radius: 30px;
    transition: ease-in-out .3s;
    color: white;
    text-align: center;
}

.photoUploadBtnReal {
    display: none;
}

.addBtnShake {
    animation: shakeBtn 200ms 2 linear;
}

@keyframes shakeBtn {
    0% {
        transform: translate(3px, 0);
    }

    50% {
        transform: translate(-3px, 0);
    }

    100% {
        transform: translate(0, 0);
    }
}

.uploadedStudentPhoto {
    width: 550px;
    color: var(--dark);
}

.uploadedStudentPhoto img {
    width: 100%;
    opacity: 1 !important;
    z-index: 1;
    padding: 1rem;
    margin: 2rem 2rem 0rem 0rem;
    border: 3px dashed var(--dark);
    border-radius: 7px;
    cursor: auto;
}

.uploadedStudentPhotoRequirements img {
    width: 100%;
    opacity: 1 !important;
    z-index: 1;
    padding: 1rem;
    margin: 2rem 2rem 0rem 0rem;
    border: 3px dashed var(--dark);
    border-radius: 7px;
    cursor: auto;
}

.enrolmentPhotoErrorBox {
    color: var(--nclRed);
    margin-bottom: 1rem;
}

.enrolmentPhotoErrorBox a {
    width: fit-content;
}

.confirmIconWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.confirmIconCheckmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #7ac142;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards
}

.confirmIconCheckmark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin-bottom: 1rem;
    box-shadow: inset 0px 0px 0px #7ac142;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both
}

.confirmIconCheckmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0
    }
}

@keyframes scale {
    0%, 100% {
        transform: none
    }

    50% {
        transform: scale3d(1.1, 1.1, 1)
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #7ac142
    }
}

.uploadedStudentPhotoCropInfo {
    border: 1px solid var(--dark);
    border-radius: 5px;
    padding: .5rem;
    margin-bottom: 1rem;
    background-color: rgb(248, 242, 223);
    margin-top: 1rem;
}

.photoPolicyContainer {
    display: flex;
    margin-top: 1rem;
}

.photoPolicyInfoBtn {
    font-size: 30px;
    transform: translate(5px, -3px);
    cursor: pointer;
}

.photoModalBackground {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.897);
    animation: photoModalAnimation .5s;
}

@keyframes photoModalAnimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.photoPolicyModalBox {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.photoPolicyModalContent {
    animation: photoPolicyModalContentAnimation .2s forwards;
    transform: translateY(-650px);
    width: 700px;
    padding: 2rem;
    border-radius: 10px;
    background-color: white;
    display: none;
    flex-direction: column;
    justify-content: center;
    color: rgb(32, 32, 32);
    z-index: 20;
}

@keyframes photoPolicyModalContentAnimation {

    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

.photoPolicyModalContent div {
    margin-bottom: 1rem;
}

.photoPolicyModalCloseBtn {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    filter: invert(19%) sepia(69%) saturate(2%) hue-rotate(314deg) brightness(92%) contrast(82%);
    margin: .5rem;
    cursor: pointer;
}

.photoPolicyModalCloseBtn:hover {
    filter: invert(21%) sepia(72%) saturate(2856%) hue-rotate(346deg) brightness(102%) contrast(92%);
}

/*WEBCAM*/

.enrolmentPhotoWebcamBox {
    visibility: hidden;
    height: 0;
}

.enrolmentPhotoWebcamBox video {
    margin-top: 2rem;
}

.enrolmentPhotoWebcamButtonsBox {
    display: flex !important;
    flex-direction: unset !important;
    justify-content: space-around !important;
}

.enrolmentPhotoWebcamTakePhotoBtn,
.enrolmentPhotoWebcamTakeCloseBtn {
    margin: auto;
    padding: 0.7rem;
    cursor: pointer;
    background-color: #DB2F2F;
    font-family: "Poppins", sans-serif;
    border: none;
    margin-bottom: 2rem;
    border-radius: 30px;
    transition: ease-in-out .3s;
    font-size: inherit;
    color: white !important;
    margin-top: 0.6rem;
    text-align: center;
    width: 250px !important;
}

.enrolmentPhotoWebcamTakeCloseBtn {
    background-color: var(--dark);
}

@media screen and (max-width: 1250px) {
    .enrolmentPhotoLabelWebcam {
        display: none;
    }

    .enrolmentPhotoWebcamBox {
        display: none;
    }
}

/* --------------- PAYMENT ---------------- */
#enrolmentPaymentForm a, .subDiv a {
    color: white;
    text-decoration: none;
    margin: auto;
}

#enrolment-errors {
    background: rgb(255, 255, 255, 0.55);
    border-radius: 5px;
    padding: 1rem;
    margin: auto;
    margin-bottom: 1rem;
    margin-bottom: .5rem;
    color: red;
}

button#Payment-save {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem
}

.payment > div {
    width: 100% !important;
}

.payment div {
    width: 100%;
}

.employerDetails {
    width: 100% !important;
}

.standingOrderDetails {
    border: 2px dashed black;
    border-radius: 5px;
    padding: 2px;
    margin-bottom: 20px;
}

.standingOrderDetails p {
    padding: 5px
}

/*self funded dropdown box*/
#self {
    margin-bottom: 14px;
}

/* --------------- MEDIA ---------------- */

@media (max-width: 800px) {

    .confirmIconWrapper {
        width: 100% !important;
    }

    .confirmIconCheckmark {
        width: 36px;
        height: 36px;
    }

    .enrolmentPhotoErrorBox {
        width: 100%;
    }

    .uploadedStudentPhotoRequirements {
        width: 100% !important;
    }

    .uploadedStudentPhoto {
        width: 100% !important;
    }

    .photoPolicyModalBox {
        width: 100%;
    }

    .photoPolicyModalContent {
        width: 90%;
        margin: auto;
        border-radius: 5px;
        font-size: 13px;
    }

    .photoPolicyModalCloseBtn {
        width: 25px;
    }
    
}

@media (max-width: 530px) {

    .enrolmentPhotoLabel {
        padding: .2rem;
        font-size: 14px;
    }

    .enrolmentPhotoLabel img {
        width: 40px;
    }

    #previewImage,
    .uploadedStudentPhotoRequirements img,
    .uploadedStudentPhoto img {
        padding: .4rem;
        border: 1px dashed var(--dark);
        border-radius: 5px;
    }

    #selectedImageName {
        margin-bottom: 1rem;
    }

    .uploadedStudentPhotoCropInfo {
        font-size: .8rem;
    }

    .photoPolicyInfoBtn {
        font-size: 22px;
        transform: translate(5px, 1px);
    }
}

@media (max-width: 425px) {

    .photoUploadBtnFake {
        width: 90% !important;
    }
}