/* ------------EMAIL-FORM-------------*/

.divider {
    width: 100%;
    border-top: 1px solid var(--divider-color);
    align-self: flex-start;
    transition: width 0.2s ease-in-out;
}

#email-boolean {
    position: fixed;
    top: 150px;
    display: none;
    opacity: 0;
    background-color: var(--main-color);
    color: white;
    width: min(80vw,300px);
    height: 100px;
    line-height: 100px;
    font-weight: 600;
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
    border-radius: 50px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.7);
    text-align: center;
    transition: opacity 0.6s ease-in-out;
}

.input-container {
    position: relative;
    width: 100%;
}

.email-form {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    color: var(--font-color);
}

.email-send-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(80vw, 150px);
    height: 50px;
    border-radius: 50px;
    background-color: var(--main-color);
    align-self: flex-start;
    color: white;
    text-shadow: var(--text-shadow);
    margin-top: 10px;
    font-size: inherit;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
    user-select: none;
}
.email-send-button:disabled {
    background-color: var(--horn-color);
}

.email-send-button:hover {
    background-color: var(--head-color);
}

.form-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: var(--lighter-color);
    padding-bottom: 10px;
    font-size: 18px;
}

form input {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background-color: var(--lighter-color);
    outline: none;
    border: none;
    width: 100%;
    height: 40px;
    color: var(--font-color);
    padding: 0;
    font-size: inherit;
}

.warning-message {
    position: absolute;
    display: flex;
    box-sizing: border-box;
    padding-left: 5px;
    align-items: center;
    background-color: var(--lighter-color);
    border-radius: 10px;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    width: 100%;
    min-height: 40px;
    height: fit-content;
    z-index: 8;
    opacity: 0;
    top: 50px;
    left: 0;
    transform: translateY(-150%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    transition: opacity 0.2s ease-in-out, top 0.2s ease-in-out;
}
.warning-arrow {
    position: absolute;
    bottom: 2px;
    transform: translateY(100%);
    left: 10px;
    width: 40px;
    height: 26px;
    overflow: hidden;

}
.warning-arrow::before {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid var(--lighter-color);
    filter: drop-shadow(0 5px 2px rgba(0,0,0,0.29));
}

.warning-arrow::after {
    position: absolute;
    content: '';
    width: 24px;
    height: 24px;
    left: 3px;
    background-color: transparent;
    transform-origin: right;
    transform: rotateZ(45deg);
    border: 2px solid var(--main-color);
    border-left: 0;
    border-top: 0;
}

.onhover-green, .contact-phone {
    transition: color 0.2s ease-in-out;
}

.onhover-green:hover, .onhover-green:focus, .contact-phone:hover, .contact-phone:focus {
    color: var(--main-color);
}

form input::placeholder {
    transition:color 0.2s ease-in-out, font-size 0.2s ease-in-out;

}

form textarea::placeholder {
    transition:/* font-size 0.2s ease-in-out,*/ padding-top 0.2s ease-in-out;
}

form input:focus::placeholder, form textarea:focus::placeholder {
    /*font-size: 12px; */
    color: var(--head-color);
}

form textarea:focus::placeholder {
    /*padding-top: 5px;*/
}

form textarea {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background: none;
    width: 100%;
    padding: 5px 0px 0px 0px;
    resize: none;
    border: none;
    outline: none;
    font-size: inherit;
}

/* PHONE TRANSITION */
#phone:focus::placeholder{
    font-size: inherit;
}
.phone::placeholder {
    position: absolute;
    top: 50%;
    transform: translate(0%, -50%);
    transition: font-size 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.phone-example::placeholder {
    transform: translate(-100%, -50%);
}

.email-body {
    height: 160px;
    color: inherit;
    font-family: inherit;
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--lighter-color) inset;
    -webkit-text-fill-color: var(--font-color);
    caret-color: var(--font-color);
}

.sending-email {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
    width: 100%;
    height: 100%;

}

.loading-icon {
    border: 16px solid white;
    border-radius: 50%;
    border-top: 16px solid var(--main-color);
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
    box-shadow: 0 0 15px black;
}

.grecaptcha-badge {
    visibility: hidden;
}

.protected-by-captcha {
    font-size: 11px;
    color: var(--font-color);
    align-self: flex-start;
}
.protected-by-captcha a {
    color: var(--main-color);
}



/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ------------EMAIL-FORM---END-------------*/
@media screen and (max-width: 400px) {
    .icon-flex span {
        word-break: break-word;
    }

    .home-icon, .phone-icon, .mail-icon {
        width: 7vmin;
        height: 7vmin;
        min-width: 5px;
        min-height: 5px;
    }
}

@media screen and (max-width: 300px) {
    .loading-icon {
        width: 30vw;
        height: 30vw;
        border: 4vw solid var(--lighter-color);
        border-top: 4vw solid var(--main-color);
    }
}
