.apsf-button {
    position: relative;
    background-color: #003087 !important;
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    line-height: 1.2;
    border: none;
    box-shadow: none;
    border-radius: 0px;
    text-decoration: none;
    outline: none;
    cursor: pointer;
}

.apsf-button .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    left: 40%;
    /* top: 50%; */
    transform: translateY(-50%);
    animation: apsfspin 1s linear infinite;
    opacity: 0;
}


.apsf-button.loading .spinner {
    opacity: 1; /* Show the spinner when loading */
}

.apsf-button.loading {
    color: transparent; /* Hide button text when loading */
}

@keyframes apsfspin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/*******************************************************
***********************Pop up css***********************
********************************************************/

#apsf-popup .popup-body-spinner {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(0, 48, 135, 0.61);
    border-top: 2px solid transparent;
    border-radius: 50%;
    position: absolute;
    left: 45%;
    top: 45%;
    animation: apsfspin 1s linear infinite;
    display: none;
}


#apsf-popup .popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Popup box */
#apsf-popup .popup-content-wrapper {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 90vw;
    position: relative;
    /* top: 50%; */
    /* left: 50%; */
    /* transform: translate(-50%, -50%); */
    z-index: 9999;
    overflow: hidden;
}

/* pop up content */
#apsf-popup .popup-content {
    display: flex;
    max-height: 70vh;
    gap: 20px;
    /*flex-wrap: wrap;*/
}

#apsf-popup .popup-sidebar {
    /*display: flex;*/
    display: none; /** hide sidebar for all **/
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding-right: 10px;
    flex: 0 0 270px;
    border-right: 1px solid #e6e6e6;
}

#apsf-popup .popup-summary {
    border-left: 1px solid #e6e6e6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    flex: 0 0 270px;
}

#apsf-popup .popup-sidebar-content, #apsf-popup .popup-sidebar-contact {
    text-align: center;
}


#apsf-popup .popup-progress-container {
    display: flex;
    gap: 10px;
}

#apsf-popup .popup-progress {
    height: 6px;
    width: 6px;
    background-color: rgba(0, 0, 0, 0.07);
    display: block;
    color: #8e97b3;
    text-decoration: none;
    position: relative;
    box-shadow: none;
    font-weight: 500;
}

#apsf-popup .popup-progress.active {
    background: #003087;
}


#apsf-popup .popup-sidebar-contact--question {
    color: #003087;
    font-size: 14px;
}

#apsf-popup .popup-sidebar-contact--email {
    color: #003087;
    font-size: 14px;
    text-decoration: underline;
}

#apsf-popup .popup-step-title {
    color: #003087;
    font-size: 18px;
}

#apsf-popup .popup-summary-title {
    color: #003087;
    font-size: 18px;
}

#apsf-popup .popup-body-title {
    color: #003087;
    font-size: 18px;
}

#apsf-popup .popup-step-description, #apsf-popup .popup-body-desc {
    color: #8e97b3;
    font-size: 14px;
}

#apsf-popup .popup-summary-description {
    font-size: 12px;
    border-bottom: 1px solid #e6e6e6;
}

#apsf-popup .popup-error p {
    font-size: 12px;
    color: red;
    background: #fcd7d7;
    padding: 5px;
    border-left: 1px solid red;
}

#apsf-popup .popup-body-wrapper {
    flex: 1;
    max-width: 70vw;
}

#apsf-popup .popup-icon {
    background-size: contain;
    height: 100px;
    width: 100px;
    background-repeat: no-repeat;
    margin: auto;
}


/* Close button */
#apsf-popup .popup-close {
    font-size: 1.5em;
    color: #333;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    right: 10px;
    top: 0;
    position: absolute;
}

#apsf-popup .popup-back-button {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    width: fit-content;
}

#apsf-popup .popup-back-button i {
    font-size: 5px;
}

#apsf-popup .popup-calendar-container {
    overflow: auto;
}


#apsf-popup .popup-button {
    background: #ffffff;
    border: 2px solid #E5E7EE;
    align-items: center;
    box-shadow: none;
    outline: none;
    padding: 10px 15px;
    color: #1f222b;
    font-size: 14px;
    border-radius: 5px;
    min-width: fit-content;
    /* height: fit-content; */
    /* flex: 1; */
    display: flex;
    gap: 10px;
    cursor: pointer;
}

img.popup-button-icon {
    height: 30px;
    width: 30px;
    border-radius: 5px;
}

#apsf-popup .popup-button span {
    transition: transform 0.2s ease-out;
    display: block;
}

#apsf-popup .popup-button:hover span {
    transform: translateX(3px);
}

#apsf-popup .popup-button-active, #apsf-popup .popup-button:hover {
    border-color: #4b64e8;
}

/* effect at the time of start */
#apsf-popup .popup-content-wrapper {
    animation: 0.5s cubic-bezier(0, 1, 0.51, 1) 0s both apsflightboxanimation;
}

@keyframes apsflightboxanimation {
    0% {
        transform: translate3d(0, 15%, 0px);
        opacity: 0;
    }

    100% {
        transform: translate3d(0, 0, 0px);
        opacity: 1;
    }
}


/* Popup body content */
#apsf-popup .popup-body {
    min-height: 250px;
    min-width: 250px;
    position: relative; /* to hold the spinner absolute position */
}

#apsf-popup .step-content {
    font-size: 1em;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 60vh;
    overflow: auto;
    margin-top: 10px;
}

/* Popup body content */
#apsf-popup .popup-input-password {
    border: 2px solid #cad2e0 !important;
    padding: 12px 10px 12px 10px !important;
    border-radius: 5px !important;
    background-color: #fff !important;
}

/* Popup body content */
#apsf-popup .popup-restriction-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

@media screen and (max-width: 630px) {
    #apsf-popup .popup-sidebar, #apsf-popup .popup-summary {
        display: none;
    }
}

@media screen and (max-width: 1180px) {
    #apsf-popup .popup-summary {
        display: none;
    }
}


#apsf-popup .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

#apsf-popup .form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

#apsf-popup .form-group input, #apsf-popup .form-group select, #apsf-popup .form-group button {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

#apsf-popup .form-group button {
    background-color: #003087;
    color: #fff;
    border: none;
    cursor: pointer;
}


#apsf-popup .time-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
}

#apsf-popup .agents-w {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    /*justify-content: center;*/
}

#apsf-popup .agent-name {
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    border-top: 1px solid;
    border-color: lightgray;
}

#apsf-popup .agent-card {
    border: 2px solid;
    border-radius: 5px;
    border-color: lightgray;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100px;
    cursor: pointer;
    height: fit-content;
}
#apsf-popup .agent-card:hover {
    border-color: #4b64e8;
}
#apsf-popup .agent-summary {
    font-size: 13px;
    opacity: 60%;
    text-align: center;
    font-weight: bold;
}

#apsf-popup .agent-image {
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* Ensures the image fits within the circle */
}


#apsf-popup .time-container input {
    flex: 1;
}


#apsf-popup .apsf-step {
    display: none;
}

#apsf-popup .apsf-step.current-step {
    display: block;
}