/* Contact CSS */

@use 'responsive';
@use 'variables'as var;

.form-control {
    transition-duration: 500ms;
    border-color: var.$border;
    height: 52px;
    padding: 15px 20px;
    font-size: 1rem;
    color: var.$heading !important;

    &:focus {
        box-shadow: none !important;
        border-color: var.$border;
    }

    &::placeholder {
        color: var.$text !important;
    }
}

.contact-form {
    .form-control {
        border-color: #e3e3e3;
        background-color: var.$gray;

        &:focus {
            border-color: var.$primary;
        }
    }

    textarea.form-control {
        height: 150px;
    }
}

.contact-mini-card {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;

    .contact-mini-card-icon {
        position: relative;
        z-index: 1;

        &::after {
            position: absolute;
            z-index: -10;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            top: 0.25rem;
            left: 0.25rem;
            content: "";
            background-color: var.$text;
        }

        &::before {
            position: absolute;
            z-index: -10;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            bottom: -2px;
            left: 0;
            content: "";
            background-color: var.$heading;
        }

        i {
            position: relative;
            display: block;
            z-index: 1;
            flex: 0 0 50px;
            max-width: 50px;
            width: 50px;
            height: 50px;
            background-color: var.$heading;
            text-align: center;
            color: var.$white;
            border-radius: 50%;
            font-size: 1.5rem;
            line-height: 50px;
        }
    }

    p {
        margin-bottom: 0;
        margin-left: 1rem;
        line-height: 1.25rem;
    }

    &:nth-child(2) {
        .contact-mini-card-icon {

            &::before {
                background-color: var.$primary;
            }

            i {
                background-color: var.$primary;
            }
        }
    }

    &:last-child {
        margin-bottom: 0;

        .contact-mini-card-icon {
            &::before {
                background-color: var.$warning;
            }

            i {
                background-color: var.$warning;
                color: var.$heading;
            }
        }
    }
}

.google-maps-wrapper {
    position: relative;
    z-index: 1;

    iframe {
        width: 100%;
        height: 400px;
        border: none;

        @media #{responsive.$breakpoint-lg} {
            height: 600px;
        }
    }
}

textarea.form-control {
    height: auto;
}

.contact-mini-card-wrapper .alert {
    border-radius: .75rem;

    i {
        font-size: 1.5rem;
    }

    p {
        margin-left: 2.5rem;
    }
}