.sp-wrap {
    width: 50%;
    margin: 0 auto;
    padding: 2rem 0;
    font-family: inherit;
    box-sizing: border-box;
}

#sp-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sp-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sp-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sp-field input {
    border: 1.5px solid #d1d5db;
    border-radius: 50px;
    padding: 0.65rem 1.2rem;
    font-size: 1rem;
    color: #111827;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.sp-field input:focus {
    border-color: #E2B906;
    box-shadow: 0 0 0 3px rgba(226, 185, 6, 0.15);
    background: #fff;
}

.sp-field input::placeholder {
    color: #9ca3af;
}

#sp-form button[type="submit"] {
    align-self: flex-start;
    background: #E2B906;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.7rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

#sp-form button[type="submit"]:hover {
    background: #cfa800;
}

#sp-form button[type="submit"]:active {
    transform: scale(0.97);
}

#sp-form button[type="submit"]:disabled {
    background: #d4ac05;
    cursor: not-allowed;
    opacity: 0.7;
}

.sp-field-checkbox {
    margin-top: 0.25rem;
}

.sp-wrap .sp-checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
}

.sp-wrap .sp-checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    order: -1;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
    cursor: pointer;
    accent-color: #E2B906;
}

#sp-message {
    margin-top: 1rem;
}

#sp-message p {
    border-radius: 10px;
    padding: 0.75rem 1.2rem;
    margin: 0;
    font-size: 0.95rem;
}

.sp-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.sp-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

#sp-list-container {
    margin-top: 2rem;
}

.sp-loading {
    color: #6b7280;
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
}

.sp-count {
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
    font-weight: bold;
    text-align: center;
}

.sp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sp-list li {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.65rem 1.1rem;
    font-size: 0.95rem;
    color: #374151;
    transition: background 0.15s;
}

.sp-list li:hover {
    background: #f3f4f6;
}

.sp-empty {
    color: #9ca3af;
    text-align: center;
    padding: 1.5rem 0;
}

.sp-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.sp-page-btn {
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #374151;
    border-radius: 50px;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.sp-page-btn {
    background: #9c7f00 !important;
    border-color: #9c7f00 !important;
    padding: 4px;
}
.sp-page-btn:hover {
    border-color: #E2B906;
    color: #E2B906;
}

.sp-page-btn[aria-current="page"] {
    background: #E2B906 !important;
    border-color: #E2B906 !important;
    color: #fff;
    padding: 4px;
}

@media (max-width: 768px) {
    .sp-wrap {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .sp-wrap {
        width: 100%;
        padding: 1rem 0;
    }

    #sp-form {
        padding: 1.25rem;
    }

    #sp-form button[type="submit"] {
        align-self: stretch;
        text-align: center;
    }
}
