/* CSS Document */

/*==============================================================================
    COMMENT FORM
==============================================================================*/

/* MAIN FORM + INLINE REPLY FORM */
.bm-comment-form,
#respond,
.comment-respond {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    background: #f8f8f8;
    box-sizing: border-box;
    font-family: "Fira Sans Condensed", sans-serif;
}

/* FORM TITLE */
#respond h3,
#respond .comment-reply-title,
.bm-comment-form h3,
.bm-comment-form .comment-reply-title,
.comment-respond h3,
.comment-respond .comment-reply-title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #18242c;
}

/* LABELS */
#respond label,
.bm-comment-form label,
.comment-respond label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #18242c;
}

/* PARAGRAPHS */
#respond p,
.bm-comment-form p,
.comment-respond p {
    margin-bottom: 16px;
}

/* TEXTAREA */
#respond textarea,
.bm-comment-form textarea,
.comment-respond textarea {
    width: 100%;
    min-height: 180px;
    padding: 14px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background: #ffffff;
    box-sizing: border-box;
    resize: vertical;
    font-size: 15px;
    line-height: 1.6;
    color: #222222;
}

/* INPUTS */
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
.bm-comment-form input[type="text"],
.bm-comment-form input[type="email"],
.bm-comment-form input[type="url"],
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background: #ffffff;
    box-sizing: border-box;
    font-size: 15px;
    color: #222222;
}

/* INPUT + TEXTAREA FOCUS */
#respond textarea:focus,
#respond input[type="text"]:focus,
#respond input[type="email"]:focus,
#respond input[type="url"]:focus,
.bm-comment-form textarea:focus,
.bm-comment-form input[type="text"]:focus,
.bm-comment-form input[type="email"]:focus,
.bm-comment-form input[type="url"]:focus,
.comment-respond textarea:focus,
.comment-respond input[type="text"]:focus,
.comment-respond input[type="email"]:focus,
.comment-respond input[type="url"]:focus {
    outline: none;
    border-color: #0F4A71;
}

/* SUBMIT BUTTON */
#respond input[type="submit"],
.bm-comment-form input[type="submit"],
.comment-respond input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 0;
    border-radius: 4px;
    background: #0F4A71;
    cursor: pointer;
    transition: opacity 0.2s ease;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

#respond input[type="submit"]:hover,
.bm-comment-form input[type="submit"]:hover,
.comment-respond input[type="submit"]:hover {
    opacity: 0.9;
}

/* CANCEL REPLY */
#respond #cancel-comment-reply-link,
.bm-comment-form #cancel-comment-reply-link,
.comment-respond #cancel-comment-reply-link {
    margin-left: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #0F4A71;
    text-decoration: none;
}

#respond #cancel-comment-reply-link:hover,
.bm-comment-form #cancel-comment-reply-link:hover,
.comment-respond #cancel-comment-reply-link:hover {
    text-decoration: underline;
}

/* HIDE MAIN FORM WHEN REPLYING */
body.replying .bm-comment-form {
    display: none;
}

/* COMMENT ANCHOR OFFSET */
#bm-comments {
    position: relative;
    padding-top: 120px;
    margin-top: -120px;
}

#bm-comments::before {
    content: "";
    display: block;
    height: 140px;
    margin-top: -140px;
    visibility: hidden;
    pointer-events: none;
}

/* MOBILE */
@media (max-width: 767px) {

    .bm-comment-form,
    #respond,
    .comment-respond {
        padding: 16px;
    }

    #respond h3,
    #respond .comment-reply-title,
    .bm-comment-form h3,
    .bm-comment-form .comment-reply-title,
    .comment-respond h3,
    .comment-respond .comment-reply-title {
        font-size: 20px;
    }

    #respond textarea,
    .bm-comment-form textarea,
    .comment-respond textarea {
        min-height: 160px;
    }

}