.contact {
    min-height: 100vh;
        padding-bottom: 7rem;
} 

.contact h2 { 
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.contact form { 
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
}

.contact .imput-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 1.8rem; 
}

.contact form .imput-box .imput-field {
    position: relative;
    width: 49%;
    margin: .8rem 0;
}

.contact form .imput-box .imput-field input,
.contact form .textarea-field textarea {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: transparent;
    border-radius: .6rem;
    border: .2rem solid var(--main-color);
}

.contact form .imput-box .imput-field input::placeholder,
.contact form .textarea-field textarea::placeholder {
    color: var(--text-color);
}

.contact form .focus {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    border-radius: .6rem;
    z-index: -1;
    transition: .5s;
}

.contact form .imput-box .imput-field input:focus~.focus,
.contact form .imput-box .imput-field input:valid~.focus,
.contact form .textarea-field textarea:focus~.focus,
.contact form .textarea-field textarea:valid~.focus {
    width: 100%;
}

.contact form .textarea-field {
    position: relative;
    margin: .8rem 0 2.7rem;
    display: flex;
}

.contact form .textarea-field textarea {
    resize: none;
}

.contact .btn-box.btns .btn {
    cursor: pointer;
}


.form_label {
    position: absolute;
    left: 1.5rem;
    top: 1rem;
    padding: 0 0.5rem;
    color: #fff;
    cursor: text;
    transition: top 200ms ease-in, left 200ms ease-in, font-size 200ms ease-in;
    background-color: var(--bg-color);
    pointer-events: none;
    font-size: 1.8rem;
}

.imput-field input:focus~.form_label,
.imput-field input:valid~.form_label,
.textarea-field textarea:focus~.form_label,
.textarea-field textarea:valid~.form_label {
    background: linear-gradient(var(--bg-color) 50%, var(--second-bg-color) 50% );
    top: -1rem;
    font-size: 1.5rem;
    left: 1rem;
}

.btn {
    cursor: pointer;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: .6rem;
    background-color: #18ffff;
    border: none;
    color: #060b23;
}

.btn-loading {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid var(--text-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5em;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


