.piu-upload-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.piu-upload-form h3 {
    margin-top: 0;
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
}

.piu-field {
    margin-bottom: 20px;
}

.piu-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.piu-field small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

.piu-field input[type="text"],
.piu-field input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.piu-field input[type="text"]:focus,
.piu-field input[type="file"]:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.1);
}

.piu-field .required {
    color: #e74c3c;
    font-weight: bold;
}

.gallery-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    min-height: 20px;
    border: 1px dashed #ddd;
}

.gallery-preview:empty {
    display: none;
}

.gallery-preview p {
    margin: 5px 0;
    font-size: 13px;
    color: #555;
}

.gallery-preview strong {
    color: #2ecc71;
}

.gallery-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin: 5px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
}

.gallery-preview em {
    color: #999;
    font-size: 12px;
}

.piu-submit {
    width: 100%;
    padding: 12px;
    background: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    margin-top: 10px;
}

.piu-submit:hover {
    background: #27ae60;
    transform: translateY(-1px);
}

.piu-submit:active {
    transform: translateY(0);
}

.piu-submit:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.piu-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    display: none;
    font-size: 14px;
    line-height: 1.5;
}

.piu-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.piu-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.piu-access-denied {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    text-align: center;
}

.piu-access-denied p {
    margin: 0;
    color: #856404;
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .piu-upload-form {
        margin: 10px;
        padding: 20px;
    }
    
    .piu-upload-form h3 {
        font-size: 20px;
    }
    
    .gallery-preview img {
        width: 60px;
        height: 60px;
    }
}
