/* General Styles */
.ofp-card {
    max-width: 900px;
    margin: 20px auto;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 1px solid #eee;
}

.ofp-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.ofp-header h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ofp-header h2 i {
    color: #3498db;
}

.ofp-user-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

.ofp-product-link, .ofp-order-link {
    color: #e74c3c;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #e74c3c;
    transition: all 0.3s;
}

.ofp-product-link:hover, .ofp-order-link:hover {
    color: #c0392b;
    border-bottom-style: solid;
}

/* Form Styles */
.ofp-form {
    margin-top: 20px;
}

.ofp-row {
    margin-bottom: 25px;
}

.ofp-row label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #34495e;
    font-size: 16px;
}

.ofp-stars {
    font-size: 36px;
    cursor: pointer;
    display: flex;
    gap: 5px;
    color: #ddd;
    justify-content: center;
    margin: 15px 0;
}

.ofp-stars .fas {
    color: #ffb400;
}

.ofp-form textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    resize: vertical;
}

.ofp-form textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

/* File Upload Styles */
.ofp-file-upload {
    position: relative;
    margin-top: 10px;
}

.ofp-input-files, #ofp_video {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.ofp-upload-area {
    border: 2px dashed #3498db;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8faff;
}

.ofp-upload-area.dragover {
    background: #e3f2fd;
    border-color: #1e88e5;
}

.ofp-upload-area i {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 15px;
    display: block;
}

.ofp-upload-area span {
    color: #555;
    font-size: 16px;
    display: block;
}

.ofp-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* Button Styles */
.ofp-submit-row {
    text-align: center;
    margin-top: 30px;
}

.ofp-btn {
    background: linear-gradient(135deg, #3498db, #1a5276);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
}

.ofp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.ofp-btn:active {
    transform: translateY(0);
}

.ofp-btn .ofp-spinner {
    display: none;
    gap: 5px;
}

.ofp-spinner-dot {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    animation: ofp-spinner 1.4s infinite ease-in-out both;
}

.ofp-spinner-dot:nth-child(1) { animation-delay: -0.32s; }
.ofp-spinner-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes ofp-spinner {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Notice Styles */
.ofp-notice {
    background: #fff3cd;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ffeeba;
    margin-bottom: 25px;
    font-size: 16px;
    text-align: center;
}

.ofp-success {
    background: #d4edda;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #c3e6cb;
    margin-bottom: 25px;
    font-size: 16px;
    text-align: center;
    color: #155724;
}

/* Responsive Styles */
@media(max-width: 768px) {
    .ofp-card {
        padding: 20px;
        margin: 15px;
    }
    
    .ofp-header h2 {
        font-size: 24px;
    }
    
    .ofp-stars {
        font-size: 30px;
    }
    
    .ofp-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media(max-width: 480px) {
    .ofp-card {
        padding: 15px;
        margin: 10px;
        border-radius: 12px;
    }
    
    .ofp-header h2 {
        font-size: 20px;
    }
    
    .ofp-stars {
        font-size: 24px;
    }
    
    .ofp-user-info {
        padding: 10px;
        font-size: 14px;
    }
}