/* WooCommerce Product Referral Survey PRO Styles - Version 3.0 */

.wprs-pro-referral-survey {
    margin: 40px 0;
    padding: 30px;
    border: 2px solid #eaeaea;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    text-align: right;
    direction: rtl;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    font-family: 'Vazir', 'Tahoma', sans-serif;
    position: relative;
    overflow: hidden;
}

.wprs-pro-referral-survey:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0073aa, #28a745, #ffc107);
}

.wprs-pro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.wprs-pro-title {
    margin: 0;
    font-size: 24px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wprs-pro-icon {
    font-size: 28px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.wprs-pro-user-points .points-badge {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #333;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(255, 193, 7, 0.2);
}

.wprs-pro-form-group {
    margin-bottom: 25px;
}

.wprs-pro-form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #444;
    font-size: 16px;
}

.wprs-pro-form-group .required {
    color: #ff3860;
    font-size: 18px;
}

.wprs-pro-form-group .optional {
    color: #888;
    font-size: 14px;
    font-weight: normal;
}

.wprs-pro-input,
.wprs-pro-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.wprs-pro-input:focus,
.wprs-pro-textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    transform: translateY(-2px);
}

.wprs-pro-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.wprs-pro-message-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-right: 3px solid #0073aa;
}

.wprs-pro-message-preview small {
    color: #666;
}

.wprs-pro-form-actions {
    margin-top: 30px;
}

.wprs-pro-submit-btn {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    width: 100%;
    box-shadow: 0 6px 12px rgba(0, 115, 170, 0.3);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.wprs-pro-submit-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004670 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 115, 170, 0.4);
}

.wprs-pro-submit-btn:active {
    transform: translateY(-1px);
}

.wprs-pro-submit-btn .points-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 10px;
}

.wprs-pro-note {
    margin-top: 15px;
    padding: 12px;
    background: #e8f5e9;
    border-radius: 8px;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

/* Quick Share */
.wprs-pro-quick-share {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed #eaeaea;
}

.wprs-pro-quick-share h4 {
    margin: 0 0 15px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wprs-pro-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wprs-pro-share-buttons button {
    flex: 1;
    min-width: 150px;
    padding: 12px;
    border: 2px solid;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.wprs-pro-whatsapp-btn {
    border-color: #25d366;
    color: #25d366;
}

.wprs-pro-whatsapp-btn:hover {
    background: #25d366;
    color: white;
}

.wprs-pro-copy-btn {
    border-color: #0073aa;
    color: #0073aa;
}

.wprs-pro-copy-btn:hover {
    background: #0073aa;
    color: white;
}

.wprs-pro-telegram-btn {
    border-color: #0088cc;
    color: #0088cc;
}

.wprs-pro-telegram-btn:hover {
    background: #0088cc;
    color: white;
}

/* Messages */
.wprs-pro-message {
    margin-bottom: 30px;
    border-radius: 12px;
    padding: 25px;
    animation: fadeIn 0.5s ease;
    border: 2px solid transparent;
}

.wprs-pro-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #0f5132;
    border-color: #b1d8b7;
}

.wprs-pro-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-color: #f1b0b7;
}

.wprs-pro-info {
    background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
    color: #004085;
    border-color: #9fcdff;
}

/* Response Boxes */
.wprs-pro-response {
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wprs-pro-success-box {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border: 2px solid #28a745;
    text-align: center;
}

.wprs-pro-success-box h4 {
    margin-top: 0;
    color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wprs-pro-points-awarded {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px dashed #ffc107;
}

.wprs-pro-points-awarded strong {
    font-size: 24px;
    color: #333;
}

/* Alternative Methods */
.wprs-pro-alternative-box {
    background: white;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.wprs-pro-alert {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 20px;
    border-bottom: 2px solid #ffc107;
}

.wprs-pro-alert h4 {
    margin: 0;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wprs-pro-method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.wprs-pro-method-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.wprs-pro-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #0073aa;
}

.method-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.wprs-pro-method-card h5 {
    margin: 0 0 10px 0;
    color: #333;
}

.wprs-pro-method-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.link-container {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.tracking-link {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    direction: ltr;
    text-align: left;
}

.email-text {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    margin: 10px 0;
    background: white;
    resize: vertical;
}

.copy-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease;
    min-width: 100px;
}

.copy-btn:hover {
    background: #005a87;
}

.method-note {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    font-style: italic;
}

.wprs-pro-tracking-info {
    background: #e7f3ff;
    padding: 15px;
    border-top: 2px solid #c3d4e7;
    text-align: center;
}

.wprs-pro-tracking-info code {
    background: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
}

/* Quick Share Box */
.wprs-pro-quick-share-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
    border: 2px solid #dee2e6;
}

.wprs-pro-quick-share-box h5 {
    margin: 0 0 15px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wprs-pro-share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.wprs-pro-share-btn {
    padding: 12px;
    border: 2px solid;
    border-radius: 8px;
    background: white;
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
}

.wprs-pro-share-btn.whatsapp {
    border-color: #25d366;
    color: #25d366;
}

.wprs-pro-share-btn.whatsapp:hover {
    background: #25d366;
    color: white;
}

.wprs-pro-share-btn.telegram {
    border-color: #0088cc;
    color: #0088cc;
}

.wprs-pro-share-btn.telegram:hover {
    background: #0088cc;
    color: white;
}

.wprs-pro-share-btn.copy {
    border-color: #6c757d;
    color: #6c757d;
}

.wprs-pro-share-btn.copy:hover {
    background: #6c757d;
    color: white;
}

.wprs-pro-share-btn.instagram {
    border-color: #e4405f;
    color: #e4405f;
}

.wprs-pro-share-btn.instagram:hover {
    background: #e4405f;
    color: white;
}

.wprs-pro-share-tip {
    background: #fff3cd;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #856404;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wprs-pro-referral-survey {
        padding: 20px;
        margin: 20px 0;
    }
    
    .wprs-pro-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wprs-pro-title {
        font-size: 20px;
    }
    
    .wprs-pro-share-buttons button {
        min-width: 100%;
    }
    
    .wprs-pro-method-cards {
        grid-template-columns: 1fr;
    }
    
    .wprs-pro-share-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .wprs-pro-share-grid {
        grid-template-columns: 1fr;
    }
    
    .link-container {
        flex-direction: column;
    }
    
    .wprs-pro-submit-btn {
        padding: 15px;
        font-size: 16px;
    }
}