@import url("custom_checkbox.css");

#main {
    position: relative;
}

#main img {
    object-fit: cover;
    height: 400px;
}

.contact-heading {
    width: 100%;
    position: absolute;
    padding-top: 1rem;
}

.vignette {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(#000000, transparent 70%);
}

.contact-link img {
    height: 25px;
    width: 25px;
}

.contact-link a:hover {
    color: var(--dark-purple)
}

.alert-container {
    padding: 5vh 0 0 0;
}

.contact-form-container {
    position: relative;;
}

.contact-form-container::before {
    position: absolute;
    content: '';
    height: 90%;
    border-left: 1px solid rgba(124, 124, 124, 0.521);
    margin: 10px 0;
    top: 0;
    left: -10vw;
}

.contact-divider {
    width: 2px;
    background-color: black;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="number"],
.contact-form textarea
 {
    flex-grow: 1;
    width: 100%;
    outline: none;
    border: 1px solid rgb(124, 124, 124);
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0; 
}

input[type='number'] {
    -moz-appearance:textfield;
}

.contact-form textarea {
    min-height: 150px;
    height: 150px;
    resize: none;
}

input:-webkit-autofill {
    background-color: rgba(0, 0, 0, 0.300)!important;
}

input:autofill {
    background-color: rgba(0, 0, 0, 0.300)!important;
}

.contact-form button[type="submit"] {
    flex-grow: 0;
}

.contact-form button[type="submit"] {
    position: relative;
    line-height: 1 !important;
    padding-top: 4px;
    display: block;
    border: 1px solid var(--purple);
    background-color: transparent;
    color: var(--purple);
    overflow: hidden;
}

.contact-form button[type="submit"] p {
    position: relative;
    z-index: 2;
}

@media only screen and (min-width: 576px) {
    .contact-form button[type="submit"]:hover { color: white; }

    .contact-form button[type="submit"] p:hover { color: white; }

    .contact-form button[type="submit"]::after {
        content: "";
        position: absolute;
        height: 100%;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 1;
        background-color: var(--purple);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
        border-radius: 50rem;
    }

    .contact-form button[type="submit"]:hover::after {
        transform-origin: left;
        transform: scaleX(1)
    }
}

.contact-label {
    color: black;
    flex-basis: 20%;
}

.checkbox-space {
    flex-basis: 20%;
}

.terms-link a {
    border-bottom: 1.5px solid black;
}

.error-tooltip {
    position: relative;
}

.error-tooltip:before {
    content: '';
    position: absolute;
    border:10px solid var(--danger-color);
    border-color: transparent transparent var(--danger-color) transparent;
    transform: translateY(-110%);
}

@media only screen and (max-width: 992px) {
    .contact-form-container::before {
        left: -7vw;
    }
}

@media only screen and (max-width: 576px) {
    #main {
        height: 40vh;
    }
    
    #main > img {
        height: 100%;
        object-fit: cover;
    }

    .contact-form-container::before {
        display: none;
    }

    .contact-link img {
        height: 25px;
        width: 25px;
    }

    .contact-label {
        color: black;
        flex-basis: 30%;
    }
}