
.loading_img {
    width: 20px;
    vertical-align: middle;
}
.spin {
    animation: spin 1s linear infinite;
}


/* Spin Animation */
@keyframes spin {
    from {transform: rotateZ(0deg)}
    to {transform: rotateZ(360deg)}
}


.loading_img {
    width: 20px;
    vertical-align: middle;
}
.spin {
    animation: spin 1s linear infinite;
}


/* Spin Animation */
@keyframes spin {
    from {transform: rotateZ(0deg)}
    to {transform: rotateZ(360deg)}
}


@keyframes fadeInTop {
    from {transform: translateY(-10px); opacity: 0}
    to {transform: translateY(0); opacity: 1}
}

.fadeintop {
    position: relative;
    animation: fadeInTop 0.2s ease;
}

html {
    scroll-behavior: smooth;
    font-family: 'Quicksand', sans-serif;
}

.fa.fa-exclamation-circle {
    color: #ff7373;
}

.referral-form__progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 30px 0px 0px;
    margin: 0px 0px 20px 0px;
    top: 20px;
    
}



.progress-page-button {
    border: 1px solid #c9c9c9;
    padding: 5px;
    font-size: 0.8rem;
    flex-grow: 0;
    width: 30%;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%), 0 1px 2px rgb(0 0 0 / 24%);
}

.progress-page-button.button-selected {
    background-color: #aee1ff;
    transition: 0.2s ease;
}

.progress-page-button:hover {
    cursor: pointer;
}

.referral-form__section {
    margin: 0px auto;
}

.referral-form__section .referral-form__section-form {

    display: grid;
    grid-template-columns: 1fr 1fr;
}

.referral-form__section > :nth-child(1n):not(:last-child) {
    margin: 0px 0px 0px 0px;
}

.select__input-group,
.text__input-group,
.textarea__input-group {
    display: flex;
    flex-direction: column;
    padding: 0px 5px 15px 5px;
    width: 100%;
    box-sizing: border-box;
}

.referral-form__section.section__outgoing-source .referral-form__section-form > :nth-child(1),
.referral-form__section.section__outgoing-source .referral-form__section-form > :nth-child(2),
.referral-form__section.section__outgoing-source .referral-form__section-form > :nth-child(3),
.referral-form__section.section__outgoing-source .referral-form__section-form > :nth-child(4),
.referral-form__section.section__outgoing-source .referral-form__section-form > :nth-child(5),
.referral-form__section.section__outgoing-source .referral-form__section-form > :nth-child(6) {
    grid-column-start: span 2;
}

.section__contact-info .referral-form__section-form > :nth-child(1),
.section__contact-info .referral-form__section-form > :nth-child(2),
.section__contact-info .referral-form__section-form > :nth-child(3),
.section__contact-info .referral-form__section-form > :nth-child(4),
.section__contact-info .referral-form__section-form > :nth-child(5),
.section__contact-info .referral-form__section-form > :nth-child(6),
.section__contact-info .referral-form__section-form > :nth-child(7),
.section__contact-info .referral-form__section-form > :nth-child(8),
.section__contact-info .referral-form__section-form > :nth-child(13) {
    grid-column-start: span 2;
}

.section__referral .referral-form__section-form > :nth-child(1),
.section__referral .referral-form__section-form > :nth-child(2),
.section__referral .referral-form__section-form > :nth-child(3),
.section__referral .referral-form__section-form > :nth-child(6),
.section__referral .referral-form__section-form > :nth-child(7),
.section__referral .referral-form__section-form > :nth-child(8),
.section__referral .referral-form__section-form > :nth-child(9),
.section__referral .referral-form__section-form > :nth-child(10) {
    grid-column-start: span 2;
}


.form__input-group input[type="text"],
.form__input-group select,
.form__input-group input[type="date"],
.form__input-group textarea {
    width: 100%;
    position: relative;
    border-radius: 4px;
    border: 1px solid #D1D1D1;
    padding: 5px 10px;
    font-size: 1.1rem;
    font-weight: 200;
    box-sizing: border-box;
}


.form__input-group textarea {
    resize: none;
    overflow-y: auto;
}

.referral-form__section-form {

}

.referral-form__input-range-group {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form__input-group label {
    color: #000000;
    font-size: 0.8rem;
    font-weight: bold;
    display: block;
    margin: 0px 0px 6px 0px;
}

.referral-form__section-header {}

.referral-form__section-header h4 {
    font-size: 1.953rem;
    margin: 0px 0px 15px 0px;
}

.referral-form__section.section__thank-you .referral-form__section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 100px 0px;
    border-radius: 10px;
    background-color: #f4f9ff;
    color: #303030;
}

.referral-form__section.section__thank-you .referral-form__section-header img {
    margin: 0px 0px 5px 0px;
}

.referral-form__section.section__thank-you .referral-form__section-header h4 {
    font-size: 3.025rem;
    margin: 0px;
}

.referral-form__section.section__thank-you .referral-form__section-header p {
    margin: 5px 0px 30px 0px;
    font-size: 1rem;
}


.referral-form__section.section__thank-you .referral-form__section-header button {

}

.referral-form-section-footer__button-group {
    padding: 0px 5px;
}

.referral-form-section-footer__button-group button {
    cursor: pointer;
    font-size: 1rem;
    background-color: #FEFEFE;
    border: 1px solid dimgrey;
    padding: 5px 20px;
    border-radius: 5px;
}

.referral-form-section-footer__button-group button:hover { 
    cursor: pointer;
    background-color: #ededed;
    transition: background 0.2s ease;
}

.referral-form-section-footer__button-group span {
    margin-left: 10px;
}




.referral-form-section-footer__button-group button:nth-of-type(1n):not(:last-of-type) {
    margin-right: 10px;

}

.referral-form-section-footer__button-group button:hover {
    transition: background-color 0.2s ease
}


.referral-form__section.section__referral {
    position: relative;
}


.referral-form__loading-modal {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffffe6;
    z-index: 1;
    transition: background 0.6s ease;
}

.referral-form__loading-modal img {
    width: 25px;
}

.referral-form__loading-modal p {
    font-size: 1.2rem;
    margin: 10px 0px 0px 0px;
}