/* Sec Contact Form */

.sec-contact-form {
    margin: 200px auto;
    margin-top: 100px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-row {
    display: flex;
    gap: 30px;
}

.contact-form .form-row::before,
.contact-form .form-row::after {
    content: unset !important;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.contact-form label {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 15px;
    margin-inline: 10px;
    text-transform: capitalize;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-height: 60px;
    font-size: 14px;
    padding: 20px;
    border: 1px solid transparent;
    border-radius: 16px;
    outline: none;
    transition: .4s ease;
    color: #212121;
    background: #F5F6F7;
    font-family: var(--font-primary);
    font-weight: 500;
    caret-color: transparent;
    position: relative;
    user-select: auto;
}

.form-group.focused:after {
    content: "|";
    position: absolute;
    transform: scaleY(1);
    color: #819DB2;
    font-weight: bold;
    font-size: 14px;
    animation: blink 1s infinite;
    top: 50px;
    left: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.form-group.typing::after {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #E63B0E;
    box-shadow: 0px 0px 12px 0px #0DB14B33;
    background: #fff;
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
    color: #fff;
}

textarea {
    resize: none;
    min-height: 160px;
}

.wrap-form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 20px auto;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 150px;
    width: 100%;
    height: auto;
    gap: 8px;
    font-family: "Montserrat";
    font-size: 18px;
    font-weight: 600;
    color: #2D2E30;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 12px 20px;
    cursor: pointer;
    transition: all .4s ease;
}

.form-submit:hover {
    color: #e63b0e;
}

.form-submit img {
    vertical-align: middle;
    line-height: 0;
}

.form-submit:active {
    color: #e63b0e;
}

/* All Media Queris Sec Contact Form */

@media screen and (max-width: 998px) {
    .sec-contact-form div.container {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .sec-contact-form div.row.w-85 {
        width: 100% !important;
    }
}

@media screen and (max-width: 576px) {
    .contact-form .form-group {
        flex: 0 0 100%;
    }

    .contact-form .form-row {
        flex-direction: column;
    }
}

p.form-submit {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: 100%;
}

.cm-form .form-row {
    order: -1;
}


.comment-form-rating {
    order: 1;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.contact-form.comment-form .form-row {
    order: -1;
}

.contact-form.comment-form .form-submit {
    order: 2;
}

.woo-cmlist {
    order: 1;
}