/* Compose forms — new topic and reply. Loaded on forum show and topic pages. */

.simplepress-new-post-form {
    background-color: var(--color-white);
    border-radius: 0;
    border-top: 1px solid var(--color-gray-2);
    padding: 28px 0 0;
    margin-top: 0;
    box-shadow: none;
}

#new-topic,
#new-answer {
    margin-top: 0;
    padding-top: 40px;
}

.simplepress-new-post-form__header {
    margin-bottom: 28px;
}

.simplepress-new-post-form__header h3 {
    font-size: 34px;
    font-weight: 700;
    color: var(--color-dark-text);
    font-family: var(--font-heading);
    line-height: 1.15;
    margin: 0 0 10px 0;
}

.simplepress-new-post-form__lede {
    margin: 0;
    color: var(--color-gray-3);
    font-size: 16px;
    line-height: 1.5;
}

.simplepress-new-post-form__lede strong {
    color: var(--color-accent-1);
    font-weight: 700;
}

.simplepress-new-post-form__field {
    margin-bottom: 18px;
}

.simplepress-new-post-form__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.simplepress-new-post-form__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-dark-text);
}

.simplepress-new-post-form__label::before {
    content: '';
    width: 4px;
    height: 22px;
    border-radius: 999px;
    background-color: var(--color-accent-2);
}

.simplepress-new-post-form__counter {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray-3);
    line-height: 1.2;
}

.simplepress-new-post-form input.simplepress-new-post-form__input {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    border: 1px solid var(--color-gray-2);
    border-radius: var(--radius);
    color: var(--color-dark-text);
    background-color: var(--color-white);
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.simplepress-new-post-form input.simplepress-new-post-form__input:focus {
    outline: none;
    border-color: var(--color-gray-4);
}

.simplepress-new-post-form__editor {
    margin-bottom: 24px;
}

/* ----------------------------------------------------------------
   TinyMCE / Quicktags editor skin (scoped to forum forms)
   ---------------------------------------------------------------- */

.simplepress-new-post-form__editor .wp-editor-wrap {
    border: 0;
    overflow: visible;
}

.simplepress-new-post-form__editor .wp-editor-container {
    border: 0 !important;
}

.simplepress-new-post-form__editor .html-active .wp-editor-container {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid var(--color-gray-2) !important;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s;
}

.simplepress-new-post-form__editor .html-active .wp-editor-container:focus-within {
    border-color: var(--color-gray-4) !important;
}

.simplepress-new-post-form__editor .mce-tinymce {
    box-sizing: border-box;
    width: 100% !important;
    border: 1px solid var(--color-gray-2) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    overflow: hidden;
    transition: border-color 0.15s;
}

.simplepress-new-post-form__editor .mce-tinymce:focus-within {
    border-color: var(--color-gray-4) !important;
}

.simplepress-new-post-form__editor .wp-switch-editor {
    padding: 8px 14px;
    background: var(--color-white);
    color: var(--color-gray-3);
}

.simplepress-new-post-form__editor .tmce-active .switch-tmce,
.simplepress-new-post-form__editor .html-active .switch-html {
    background: var(--color-gray-1);
    color: var(--color-dark-text);
}

.simplepress-new-post-form__editor .mce-toolbar-grp {
    background: var(--color-gray-1) !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    min-height: 54px;
    padding: 10px 12px !important;
    box-sizing: border-box;
}

.simplepress-new-post-form__editor .mce-toolbar .mce-btn-group {
    margin: 0;
    padding: 0 10px;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
}

.simplepress-new-post-form__editor .mce-toolbar .mce-btn-group:first-child {
    padding-left: 0;
}

.simplepress-new-post-form__editor .mce-toolbar .mce-btn-group + .mce-btn-group {
    border-left: 1px solid var(--color-gray-4) !important;
}

.simplepress-new-post-form__editor .mce-toolbar .mce-btn {
    position: relative;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius);
    box-shadow: none;
    padding: 4px;
}

.simplepress-new-post-form__editor .mce-toolbar .mce-btn:hover,
.simplepress-new-post-form__editor .mce-toolbar .mce-btn:focus {
    background: var(--color-gray-2);
    border-color: transparent;
    box-shadow: none;
}

.simplepress-new-post-form__editor .mce-toolbar .mce-btn.mce-active {
    background: var(--color-gray-2);
    border-color: transparent;
    box-shadow: none;
}

.simplepress-new-post-form__editor .mce-toolbar .mce-ico {
    color: var(--color-dark-text);
}

.simplepress-new-post-form__editor .mce-toolbar .mce-btn:hover .mce-ico {
    color: var(--color-dark-text);
}

.simplepress-new-post-form__editor .mce-toolbar .mce-btn:nth-of-type(2),
.simplepress-new-post-form__editor .mce-toolbar .mce-btn:nth-of-type(4),
.simplepress-new-post-form__editor .mce-toolbar .mce-btn:nth-of-type(6),
.simplepress-new-post-form__editor .mce-toolbar .mce-btn:nth-of-type(10),
.simplepress-new-post-form__editor .mce-toolbar .mce-btn:nth-of-type(12),
.simplepress-new-post-form__editor .mce-toolbar .mce-btn:nth-of-type(14) {
    margin-left: 12px;
}

.simplepress-new-post-form__editor .mce-toolbar .mce-btn:nth-of-type(2)::before,
.simplepress-new-post-form__editor .mce-toolbar .mce-btn:nth-of-type(4)::before,
.simplepress-new-post-form__editor .mce-toolbar .mce-btn:nth-of-type(6)::before,
.simplepress-new-post-form__editor .mce-toolbar .mce-btn:nth-of-type(10)::before,
.simplepress-new-post-form__editor .mce-toolbar .mce-btn:nth-of-type(12)::before,
.simplepress-new-post-form__editor .mce-toolbar .mce-btn:nth-of-type(14)::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: -8px;
    width: 1px;
    background: var(--color-gray-4);
    opacity: 0.55;
}

.simplepress-new-post-form__editor .mce-toolbar .mce-listbox {
    border: 1px solid var(--color-gray-2);
    border-radius: var(--radius);
    box-shadow: none;
    background: var(--color-gray-1);
}

.simplepress-new-post-form__editor .mce-toolbar .mce-listbox .mce-txt {
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-text);
    color: var(--color-dark-text);
}

.simplepress-new-post-form__editor .mce-toolbar .mce-listbox .mce-caret {
    border-top-color: var(--color-gray-3);
}

.simplepress-new-post-form__editor .mce-edit-area {
    border: 0 !important;
    border-top: 1px solid rgba(222, 225, 229, 0.55) !important;
}

.simplepress-new-post-form__editor .mce-edit-area iframe {
    min-height: 260px;
}

.simplepress-new-post-form__editor .mce-statusbar {
    display: block;
    height: 14px;
    min-height: 14px;
    border-top: 1px solid rgba(222, 225, 229, 0.55) !important;
    background: var(--color-white) !important;
}

.simplepress-new-post-form__editor .mce-statusbar .mce-path {
    display: none;
}

.simplepress-new-post-form__editor .mce-statusbar .mce-resizehandle {
    width: 100% !important;
    height: 14px !important;
    margin: 0 !important;
    cursor: ns-resize;
}

.simplepress-new-post-form__editor .mce-statusbar .mce-resizehandle i {
    display: block;
    width: 36px;
    height: 3px;
    margin: 5px auto 0;
    border: 0;
    border-radius: 999px;
    background: var(--color-gray-2);
}

.simplepress-new-post-form__editor .quicktags-toolbar {
    background: var(--color-gray-1);
    border-bottom: 1px solid rgba(222, 225, 229, 0.55);
    min-height: 54px;
    padding: 10px 12px;
    box-sizing: border-box;
}

.simplepress-new-post-form__editor .quicktags-toolbar input.ed_button {
    border: 1px solid var(--color-gray-2);
    border-radius: var(--radius);
    background: var(--color-white);
    color: var(--color-dark-text);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-text);
    line-height: 20px;
    min-height: 34px;
    padding: 6px 10px;
    margin: 2px;
    cursor: pointer;
    box-shadow: none;
}

.simplepress-new-post-form__editor .quicktags-toolbar input.ed_button:hover {
    background: var(--color-gray-2);
    border-color: var(--color-gray-3);
}

.simplepress-new-post-form__editor .wp-editor-area {
    border: 0;
    padding: 18px 22px;
    font-family: var(--font-text);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-dark-text);
    resize: vertical;
}

.simplepress-new-post-form__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
}

@media (max-width: 800px) {
    .simplepress-new-post-form {
        padding-top: 22px;
    }

    #new-topic,
    #new-answer {
        padding-top: 32px;
    }

    .simplepress-new-post-form__header {
        margin-bottom: 22px;
    }

    .simplepress-new-post-form__header h3 {
        font-size: 28px;
    }

    .simplepress-new-post-form__label {
        font-size: 18px;
    }

    .simplepress-new-post-form__counter {
        font-size: 14px;
    }

    .simplepress-new-post-form input.simplepress-new-post-form__input {
        min-height: 42px;
        padding: 8px 12px;
        font-size: 16px;
    }
}
