.joke-submit-page {
    padding: 48px 0 64px;
    background: #f7f3ec;
}

.joke-submit-page .container {
    max-width: 1180px;
    width: calc(100% - 32px);
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.joke-submit-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 28px;
    align-items: start;
}

.joke-submit-main,
.joke-submit-panel,
.joke-category-section {
    background: #f7f3ec;
    border: 1px solid #dfd2c3;
    border-radius: 12px;
}

.joke-submit-main {
    padding: 32px;
}

.joke-submit-header {
    margin-bottom: 28px;
}

.joke-submit-title {
    margin: 0 0 10px;
    font-size: 38px !important;
    line-height: 1.1;
    color: #21160f;
}

.joke-submit-intro {
    margin: 0;
    max-width: 620px;
    font-size: 16px;
    line-height: 1.6;
    color: #5f4b3b;
}

.joke-submit-notice {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.6;
}

.joke-submit-notice-success {
    color: #234233;
    background: #edf7ef;
    border: 1px solid #c9e2cf;
}

.joke-submit-notice-error {
    color: #692b1f;
    background: #fff0eb;
    border: 1px solid #f0c1b1;
}

.joke-submit-error-list {
    margin: 0;
    padding-left: 18px;
}

.joke-submit-form {
    display: grid;
    gap: 20px;
}

.joke-submit-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #2c2018;
}

.joke-submit-field label span {
    font-weight: 400;
    color: #756557;
}

.joke-submit-input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d5c7ba;
    border-radius: 10px;
    background: #fbfaf8;
    color: #1f1711;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.joke-submit-input:focus {
    outline: none;
    border-color: #d9732c;
    box-shadow: 0 0 0 3px rgba(217, 115, 44, 0.12);
    background: #ffffff;
}

.joke-submit-textarea {
    min-height: 220px;
    resize: vertical;
}

.joke-submit-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #8a6b56 50%), linear-gradient(135deg, #8a6b56 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px;
}

.joke-submit-actions {
    padding-top: 4px;
}

.joke-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid #c75f1c;
    border-radius: 10px;
    background: #d9732c;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.16s ease, border-color 0.16s ease;
}

.joke-submit-button:hover,
.joke-submit-button:focus {
    color: #ffffff;
    background: #bf6322;
    border-color: #bf6322;
    text-decoration: none;
}

.joke-submit-side {
    display: grid;
    gap: 20px;
}

.joke-submit-panel {
    padding: 24px;
}

.joke-submit-panel h2 {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.25;
    color: #241913;
}

.joke-submit-checklist {
    margin: 0;
    padding-left: 18px;
    color: #5f4b3b;
    font-size: 15px;
    line-height: 1.7;
}

.joke-submit-checklist li + li {
    margin-top: 8px;
}

.joke-submit-panel-widgets .widget,
.joke-submit-panel-widgets .wp-block-group {
    margin-bottom: 20px;
}

.joke-submit-panel-widgets .widget:last-child,
.joke-submit-panel-widgets .wp-block-group:last-child {
    margin-bottom: 0;
}

.joke-category-section {
    margin-top: 28px;
    padding: 28px 32px 32px;
}

.joke-category-section-header {
    margin-bottom: 20px;
}

.joke-category-section-header h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
    color: #241913;
}

.joke-category-section-header p {
    margin: 0;
    color: #6c5a4d;
    font-size: 15px;
    line-height: 1.6;
}

.joke-category-list {
    width: 100% !important;
    height: auto;
    font-size: 15px;
    position: static;
    top: auto;
    overflow: visible;
    max-height: none;
}

.joke-category-list .jokes_category {
    display: block;
    float: none;
    width: 100%;
    column-count: 2 !important;
    column-gap: 28px;
}

.joke-category-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.joke-category-list li {
    break-inside: avoid;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: transparent;
}

.joke-category-list li a {
    display: inline-block;
    color: #5f4735;
    line-height: 1.5;
}

.joke-category-list li a:hover,
.joke-category-list li a:focus {
    color: #d9732c;
    text-decoration: underline;
}

@media (max-width: 991px) {
    .joke-submit-layout {
        grid-template-columns: 1fr;
    }

    .joke-submit-main,
    .joke-submit-panel,
    .joke-category-section {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 767px) {
    .joke-submit-page {
        padding: 32px 0 48px;
    }

    .joke-submit-page .container {
        width: calc(100% - 24px);
    }

    .joke-submit-main,
    .joke-submit-panel,
    .joke-category-section {
        padding: 20px;
        border-radius: 10px;
    }

    .joke-submit-title {
        font-size: 30px !important;
    }

    .joke-category-list .jokes_category {
        column-count: 1 !important;
    }
}
