.onpp-form-wrap,
.onpp-signatures-wrap {
    margin-top: 2rem;
    padding: 1.25rem;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #ffffff;
    box-sizing: border-box;
}

.onpp-form-wrap h2,
.onpp-signatures-wrap h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.onpp-form-intro {
    margin-bottom: 1rem;
}

.onpp-sign-form p {
    margin: 0 0 1rem;
}

.onpp-sign-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.onpp-sign-form input[type="text"],
.onpp-sign-form input[type="email"],
.onpp-sign-form input[type="number"],
.onpp-sign-form input[type="date"],
.onpp-sign-form select,
.onpp-sign-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    box-sizing: border-box;
    background: #ffffff;
    line-height: 1.4;
}

.onpp-sign-form textarea {
    min-height: 110px;
    resize: vertical;
}

.onpp-sign-form button {
    width: 100%;
    padding: 0.95rem 1.2rem;
    border: 1px solid #eb7132;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    background: #eb7132;
    color: #ffffff;
}

.onpp-sign-form button:hover,
.onpp-sign-form button:focus {
    background: #d96428;
    border-color: #d96428;
    color: #ffffff;
}

.onpp-checkbox-row label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 400;
}

.onpp-checkbox-row input {
    width: auto;
    margin-top: 0.2rem;
}

.onpp-privacy-text {
    font-size: 0.9rem;
    opacity: 0.86;
    line-height: 1.45;
}

.onpp-notice {
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    border: 1px solid #d9d9d9;
    background: #f7f7f7;
}

.onpp-notice p {
    margin: 0;
}

.onpp-notice-pending,
.onpp-notice-pending-existing {
    border-color: #d4d4d4;
    background: #f7f7f7;
}

.onpp-notice-verified,
.onpp-notice-already-verified {
    border-color: #cfe8cf;
    background: #f3fbf3;
}

.onpp-notice-invalid,
.onpp-notice-error,
.onpp-notice-rate-limited,
.onpp-notice-duplicate,
.onpp-notice-spam,
.onpp-notice-closed,
.onpp-notice-not-active {
    border-color: #ecd0d0;
    background: #fff5f5;
}

.onpp-signature-count {
    margin-bottom: 1rem;
}

.onpp-signature-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.onpp-signature-table th,
.onpp-signature-table td {
    border-bottom: 1px solid #e5e5e5;
    padding: 0.75rem 0.5rem;
    text-align: left;
    vertical-align: top;
}

.onpp-signature-table th {
    font-weight: 700;
}

.onpp-custom-row {
    margin-bottom: 0.25rem;
}

.onpp-custom-row:last-child {
    margin-bottom: 0;
}

.onpp-muted {
    opacity: 0.7;
}

.onpp-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.onpp-pagination {
    margin-top: 20px;
}

.onpp-pagination a,
.onpp-pagination strong {
    display: inline-block;
    margin-right: 8px;
    margin-top: 6px;
    padding: 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    text-decoration: none;
    line-height: 1.2;
}

.onpp-pagination strong {
    background: #f5f5f5;
}

/* Enhanced Layout */

.onpp-enhanced-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
    box-sizing: border-box;
}

.onpp-enhanced-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.onpp-enhanced-image {
    overflow: hidden;
    border-radius: 18px;
    background: #f3f3f3;
    min-height: 260px;
}

.onpp-enhanced-image img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

.onpp-enhanced-hero-content {
    padding: 1.6rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #101828 0%, #1f2937 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.onpp-enhanced-type {
    margin: 0 0 0.75rem;
    display: inline-flex;
    width: fit-content;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(235, 113, 50, 0.18);
    color: #ffb08a;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.onpp-enhanced-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.onpp-status-pill {
    display: inline-flex;
    width: fit-content;
    margin-top: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.onpp-status-active {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

.onpp-status-closed,
.onpp-status-submitted {
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

.onpp-status-suspended {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

.onpp-authority-card {
    margin-top: 1.35rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.onpp-authority-card span {
    display: block;
    margin-bottom: 0.2rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
}

.onpp-authority-card strong {
    display: block;
    color: #ffffff;
    font-size: 1.15rem;
}

.onpp-authority-card p {
    margin: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.45;
}

.onpp-enhanced-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.5rem;
    align-items: start;
}

.onpp-enhanced-main {
    min-width: 0;
}

.onpp-enhanced-sidebar {
    position: sticky;
    top: 1.5rem;
}

.onpp-enhanced-content-card,
.onpp-updates-section,
.onpp-activity-section,
.onpp-signing-panel {
    border: 1px solid #e6e8ec;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
}

.onpp-enhanced-content-card {
    padding: 1.5rem;
}

.onpp-enhanced-content-card > *:first-child {
    margin-top: 0;
}

.onpp-enhanced-content-card > *:last-child {
    margin-bottom: 0;
}

.onpp-signing-panel {
    overflow: hidden;
}

.onpp-progress-card {
    padding: 1.35rem;
    background: #ffffff;
    border-bottom: 1px solid #edf0f3;
}

.onpp-progress-count strong {
    display: block;
    color: #101828;
    font-size: 2.4rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.onpp-progress-count span {
    display: block;
    margin-top: 0.3rem;
    color: #667085;
    font-size: 0.95rem;
}

.onpp-progress-bar {
    height: 12px;
    margin-top: 1rem;
    border-radius: 999px;
    background: #eef1f5;
    overflow: hidden;
}

.onpp-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: #eb7132;
    transition: width 0.25s ease;
}

.onpp-progress-target {
    margin: 0.75rem 0 0;
    color: #344054;
    font-weight: 700;
    font-size: 0.95rem;
}

.onpp-form-wrap-compact {
    margin: 0;
    padding: 1.35rem;
    border: 0;
    border-radius: 0;
    background: #ffffff;
}

.onpp-form-wrap-compact h2 {
    font-size: 1.3rem;
}

.onpp-updates-section,
.onpp-activity-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
}

.onpp-updates-section h2,
.onpp-activity-section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #101828;
    font-size: 1.45rem;
}

.onpp-updates-list {
    display: grid;
    gap: 1rem;
}

.onpp-update-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #edf0f3;
    border-radius: 14px;
    background: #fbfcfd;
}

.onpp-update-image {
    overflow: hidden;
    border-radius: 12px;
    background: #f2f4f7;
}

.onpp-update-image img {
    width: 100%;
    height: 100%;
    min-height: 110px;
    object-fit: cover;
    display: block;
}

.onpp-update-date {
    display: block;
    margin-bottom: 0.35rem;
    color: #eb7132;
    font-size: 0.84rem;
    font-weight: 700;
}

.onpp-update-body h3 {
    margin: 0 0 0.45rem;
    color: #101828;
    font-size: 1.1rem;
}

.onpp-update-content {
    color: #475467;
    line-height: 1.55;
}

.onpp-update-content > *:first-child {
    margin-top: 0;
}

.onpp-update-content > *:last-child {
    margin-bottom: 0;
}

.onpp-activity-feed {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.onpp-activity-item {
    display: flex;
    gap: 0.8rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid #edf0f3;
}

.onpp-activity-item:last-child {
    border-bottom: 0;
}

.onpp-activity-avatar {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #fff1e8;
    color: #eb7132;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.onpp-activity-body {
    min-width: 0;
}

.onpp-activity-line {
    margin: 0;
    color: #344054;
    line-height: 1.35;
}

.onpp-activity-line strong {
    color: #101828;
}

.onpp-activity-line span {
    color: #667085;
}

.onpp-activity-comment {
    margin: 0.45rem 0 0;
    padding: 0.75rem;
    border-radius: 12px;
    background: #f8fafc;
    color: #475467;
    line-height: 1.45;
    font-size: 0.95rem;
}

@media (max-width: 980px) {
    .onpp-enhanced-hero {
        grid-template-columns: 1fr;
    }

    .onpp-enhanced-grid {
        grid-template-columns: 1fr;
    }

    .onpp-enhanced-sidebar {
        position: static;
        order: -1;
    }

    .onpp-signing-panel {
        display: grid;
        grid-template-columns: 1fr 1.1fr;
    }

    .onpp-progress-card {
        border-bottom: 0;
        border-right: 1px solid #edf0f3;
    }
}

@media (max-width: 782px) {
    .onpp-signature-table,
    .onpp-signature-table thead,
    .onpp-signature-table tbody,
    .onpp-signature-table tr,
    .onpp-signature-table th,
    .onpp-signature-table td {
        display: block;
        width: 100%;
    }

    .onpp-signature-table thead {
        display: none;
    }

    .onpp-signature-table tr {
        margin-bottom: 1rem;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        padding: 0.5rem;
    }

    .onpp-signature-table td {
        border: none;
        padding: 0.4rem 0;
    }

    .onpp-enhanced-wrap {
        padding: 1rem 0.75rem 2rem;
    }

    .onpp-enhanced-hero {
        gap: 0.9rem;
        margin-bottom: 0.9rem;
    }

    .onpp-enhanced-image,
    .onpp-enhanced-image img {
        min-height: 210px;
    }

    .onpp-enhanced-hero-content {
        padding: 1.15rem;
        border-radius: 16px;
    }

    .onpp-authority-card {
        padding: 0.85rem;
    }

    .onpp-enhanced-grid {
        gap: 0.9rem;
    }

    .onpp-enhanced-content-card,
    .onpp-updates-section,
    .onpp-activity-section,
    .onpp-signing-panel {
        border-radius: 16px;
    }

    .onpp-enhanced-content-card,
    .onpp-updates-section,
    .onpp-activity-section {
        padding: 1rem;
    }

    .onpp-signing-panel {
        display: block;
    }

    .onpp-progress-card {
        border-right: 0;
        border-bottom: 1px solid #edf0f3;
        padding: 1rem;
    }

    .onpp-progress-count strong {
        font-size: 2rem;
    }

    .onpp-form-wrap-compact {
        padding: 1rem;
    }

    .onpp-update-card {
        grid-template-columns: 1fr;
    }

    .onpp-update-image img {
        min-height: 160px;
    }

    .onpp-activity-feed {
        max-height: 460px;
    }
}