﻿
.bm-article-publish {
    padding: 75px 20px;
    background: #f7f9fc;
    font-family: Arial, Helvetica, sans-serif;
    color: #17212b;
}

.bm-ap-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* Header */

.bm-ap-header {
    max-width: 850px;
    margin: 0 auto 45px;
    text-align: center;
}

.bm-ap-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #1d6f42;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.bm-ap-header h2 {
    margin: 0 0 15px;
    font-size: 38px;
    line-height: 1.2;
}

.bm-ap-header p {
    margin: 0;
    color: #68737e;
    font-size: 16px;
    line-height: 1.7;
}


/* Main Layout */

.bm-ap-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
    gap: 25px;
    align-items: start;
}


/* Form Card */

.bm-ap-form-card {
    background: #ffffff;
    border: 1px solid #e2e7eb;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 7px 25px rgba(23, 33, 43, 0.06);
}

.bm-ap-form-title {
    padding-bottom: 22px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e9ec;
}

.bm-ap-form-title h3 {
    margin: 0 0 7px;
    font-size: 23px;
}

.bm-ap-form-title p {
    margin: 0;
    color: #68737e;
    font-size: 13px;
}


/* Fields */

.bm-ap-field {
    margin-bottom: 21px;
}

.bm-ap-field label {
    display: block;
    margin-bottom: 8px;
    color: #17212b;
    font-size: 13px;
    font-weight: 700;
}

.bm-ap-field label span {
    color: #1d6f42;
}

.bm-ap-field input,
.bm-ap-field select,
.bm-ap-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dfe5e9;
    border-radius: 6px;
    padding: 12px 13px;
    outline: none;
    background: #ffffff;
    color: #46535d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    transition: 0.2s ease;
}

.bm-ap-field input,
.bm-ap-field select {
    height: 45px;
}

.bm-ap-field textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

.bm-ap-field input:focus,
.bm-ap-field select:focus,
.bm-ap-field textarea:focus {
    border-color: #1d6f42;
    box-shadow: 0 0 0 3px rgba(29, 111, 66, 0.08);
}

.bm-ap-field input[type="file"] {
    padding: 10px;
}

.bm-ap-field small {
    display: block;
    margin-top: 6px;
    color: #8a949c;
    font-size: 11px;
}


/* Two Column Fields */

.bm-ap-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}


/* Form Section */

.bm-ap-form-section {
    margin-top: 30px;
    padding-top: 27px;
    border-top: 1px solid #e5e9ec;
}

.bm-ap-form-section h4 {
    margin: 0 0 20px;
    font-size: 17px;
}


/* Checkbox */

.bm-ap-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 25px 0;
    padding: 15px;
    background: #f7f9fc;
    border: 1px solid #e2e7eb;
    border-radius: 7px;
}

.bm-ap-checkbox input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #1d6f42;
}

.bm-ap-checkbox label {
    color: #68737e;
    font-size: 12px;
    line-height: 1.5;
}


/* Buttons */

.bm-ap-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 5px;
}

.bm-ap-actions button {
    min-width: 130px;
    height: 45px;
    padding: 0 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.bm-ap-reset {
    background: #eef1f3;
    color: #46535d;
}

.bm-ap-reset:hover {
    background: #e2e7eb;
}

.bm-ap-submit {
    background: #1d6f42;
    color: #ffffff;
}

.bm-ap-submit:hover {
    background: #258653;
}


/* Sidebar */

.bm-ap-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bm-ap-side-card {
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e2e7eb;
    border-radius: 10px;
}

.bm-ap-side-card > span {
    color: #1d6f42;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.bm-ap-side-card h3 {
    margin: 9px 0 10px;
    font-size: 20px;
    line-height: 1.35;
}

.bm-ap-side-card p {
    margin: 0;
    color: #68737e;
    font-size: 13px;
    line-height: 1.65;
}


/* Sidebar List */

.bm-ap-side-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.bm-ap-side-card li {
    position: relative;
    padding: 9px 0 9px 22px;
    border-bottom: 1px solid #eef1f3;
    color: #53606a;
    font-size: 12px;
}

.bm-ap-side-card li:last-child {
    border-bottom: none;
}

.bm-ap-side-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1d6f42;
    font-weight: 700;
}


/* Review Note */

.bm-ap-note {
    background: #17212b;
    color: #ffffff;
    border-color: #17212b;
}

.bm-ap-note strong {
    display: block;
    margin-bottom: 8px;
    color: #7bc69c;
    font-size: 14px;
}

.bm-ap-note p {
    color: #c7d0d7;
}


/* Bottom CTA */

.bm-ap-bottom {
    margin-top: 45px;
    padding: 35px 40px;
    background: #1d6f42;
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.bm-ap-bottom span {
    color: #c9ead7;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.bm-ap-bottom h3 {
    margin: 8px 0;
    font-size: 25px;
}

.bm-ap-bottom p {
    margin: 0;
    color: #d9efe2;
    font-size: 13px;
}

.bm-ap-bottom a {
    white-space: nowrap;
    padding: 13px 23px;
    background: #ffffff;
    color: #1d6f42;
    border-radius: 7px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.bm-ap-bottom a:hover {
    background: #f1f5f3;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 950px) {

    .bm-ap-layout {
        grid-template-columns: 1fr;
    }

    .bm-ap-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .bm-ap-note {
        grid-column: 1 / -1;
    }
}


@media (max-width: 700px) {

    .bm-article-publish {
        padding: 55px 15px;
    }

    .bm-ap-header h2 {
        font-size: 30px;
    }

    .bm-ap-form-card {
        padding: 25px 20px;
    }

    .bm-ap-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bm-ap-sidebar {
        grid-template-columns: 1fr;
    }

    .bm-ap-note {
        grid-column: auto;
    }

    .bm-ap-actions {
        flex-direction: column-reverse;
    }

    .bm-ap-actions button {
        width: 100%;
    }

    .bm-ap-bottom {
        flex-direction: column;
        text-align: center;
        padding: 30px 22px;
    }

    .bm-ap-bottom a {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}


@media (max-width: 450px) {

    .bm-ap-header h2 {
        font-size: 26px;
    }

    .bm-ap-form-card {
        padding: 22px 16px;
    }

    .bm-ap-bottom h3 {
        font-size: 22px;
    }
}
