/* POP Review Plugin Styles */

#pop-review-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.pop-form-group {
    margin-bottom: 24px;
}

.pop-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.pop-form-group input[type="text"],
.pop-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    box-sizing: border-box;
}

.pop-form-group input[type="text"]:focus,
.pop-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.pop-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* File Upload Styles */
.pop-file-upload-container {
    position: relative;
}

.pop-file-upload-container input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.pop-file-upload-area {
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pop-file-upload-area:hover {
    border-color: #3498db;
    background-color: #ebf3fd;
}

.pop-file-upload-area.dragover {
    border-color: #2ecc71;
    background-color: #d5f4e6;
}

.pop-upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.pop-file-upload-area p {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
}

.pop-file-upload-area small {
    color: #7f8c8d;
    font-size: 14px;
}

.pop-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #ecf0f1;
    border-radius: 8px;
    margin-top: 12px;
}

.pop-file-name {
    font-weight: 500;
    color: #2c3e50;
}

.pop-file-size {
    color: #7f8c8d;
    font-size: 14px;
}

.pop-remove-file {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background-color 0.3s ease;
}

.pop-remove-file:hover {
    background: #c0392b;
}

/* Progress bar for upload */
.pop-upload-progress {
    width: 100%;
    background-color: #ecf0f1;
    border-radius: 8px;
    margin-top: 16px;
    overflow: hidden;
    position: relative;
    height: 24px;
}

.pop-upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 8px;
}

.pop-upload-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    z-index: 1;
}

/* Submit Button */
#pop-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

#pop-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #21618c);
}

#pop-submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.pop-loading {
    display: none;
}

#pop-submit-btn.loading .pop-btn-text {
    display: none;
}

#pop-submit-btn.loading .pop-loading {
    display: inline;
}

/* Success Message */
#pop-success-message {
    text-align: center;
    padding: 40px 20px;
}

.pop-success-content {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
}

.pop-success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: #28a745;
}

.pop-success-content h3 {
    margin: 0 0 16px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.pop-success-content p {
    margin: 0 0 30px 0;
    font-size: 18px;
    line-height: 1.5;
    color: #6c757d;
}

.pop-back-to-form-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pop-back-to-form-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
}

/* Messages */
#pop-form-messages {
    margin-top: 20px;
}

.pop-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-weight: 500;
}

.pop-message.success {
    background-color: #d5f4e6;
    color: #27ae60;
    border: 1px solid #2ecc71;
}

.pop-message.error {
    background-color: #fadbd8;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
    #pop-review-form-container {
        margin: 0 10px;
        padding: 16px;
    }
    
    .pop-file-upload-area {
        padding: 30px 15px;
    }
    
    .pop-upload-icon {
        font-size: 36px;
    }
    
    .pop-file-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .pop-success-content {
        padding: 30px 20px;
    }
    
    .pop-success-icon {
        font-size: 48px;
    }
    
    .pop-success-content h3 {
        font-size: 24px;
    }
    
    .pop-success-content p {
        font-size: 16px;
    }
}