.jc-hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.jc-form-section,
.jc-messages-section {
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.jc-messages-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0ddd8;
}

.jc-form-section {
    text-align: center;
    margin-bottom: 0.5rem;
}

.jc-toggle-form-btn {
    display: inline-block;
    padding: 0;
    background: none;
    color: #5c4033;
    border: none;
    border-bottom: 1px solid #5c4033;
    font-size: 1rem;
    font-style: italic;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1.4;
    font-family: inherit;
}

.jc-toggle-form-btn:hover {
    color: #4a3328;
    border-bottom-color: #4a3328;
}

#jc-form-content {
    padding-top: 1.2rem;
    text-align: left;
}

.jc-condolence-form .jc-field {
    margin-bottom: 0.9rem;
}

.jc-condolence-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #4a4a4a;
}

.jc-condolence-form input[type="text"],
.jc-condolence-form textarea {
    width: 100%;
    padding: 0.45rem 0.65rem;
    border: 1px solid #d5d0ca;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.jc-condolence-form input[type="text"]:focus,
.jc-condolence-form textarea:focus {
    border-color: #5c4033;
    outline: none;
    box-shadow: 0 0 0 2px rgba(92, 64, 51, 0.15);
}

.jc-condolence-form input[type="file"] {
    font-size: 0.85rem;
}

.jc-submit-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #5c4033;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.jc-submit-btn:hover {
    background: #4a3328;
}

.jc-notice {
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    transition: opacity 0.5s ease;
}

.jc-notice--hidden {
    opacity: 0;
}

.jc-notice-success {
    background: #ecf5e8;
    border: 1px solid #a3d48e;
    color: #2e5a1e;
}

.jc-notice-error {
    background: #fce8e8;
    border: 1px solid #e5a0a0;
    color: #8b1a1a;
}

.jc-messages-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.jc-message-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #fafaf8;
    border: 1px solid #e8e5e0;
    border-radius: 6px;
}

.jc-message-photo {
    flex-shrink: 0;
    width: 120px;
}

.jc-message-photo img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.jc-message-content {
    flex: 1;
    min-width: 0;
}

.jc-message-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.jc-message-author {
    font-size: 1.05rem;
    color: #2c2c2c;
}

.jc-message-date {
    font-size: 0.85rem;
    color: #6b6b6b;
}

.jc-message-text {
    line-height: 1.6;
    color: #4a4a4a;
}

.jc-pagination {
    margin-top: 2rem;
    text-align: center;
}

.jc-pagination .page-numbers {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    margin: 0 0.15rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #5c4033;
}

.jc-pagination .page-numbers.current {
    background: #5c4033;
    color: #fff;
    border-color: #5c4033;
}

.jc-pagination .page-numbers:hover:not(.current) {
    background: #f0ede8;
}

.jc-no-messages {
    text-align: center;
    color: #6b6b6b;
    font-style: italic;
    padding: 2rem 0;
}

@media (max-width: 600px) {
    .jc-message-card {
        flex-direction: column;
    }

    .jc-message-photo {
        width: 100%;
        max-width: 200px;
    }
}
