/* Digivam KYC Frontend Styles - RTL & Responsive */
.digivam-kyc-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    direction: rtl;
    text-align: right;
    font-family: inherit;
}
.digivam-kyc-container h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}
.digivam-kyc-container p {
    margin-bottom: 15px;
}
.digivam-kyc-container label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}
.digivam-kyc-container input[type="tel"],
.digivam-kyc-container input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    direction: ltr; /* برای اعداد */
    box-sizing: border-box;
    transition: border-color 0.3s;
}
.digivam-kyc-container input:focus {
    border-color: #0073aa;
    outline: none;
}
.digivam-kyc-container select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    direction: ltr;
}
.digivam-kyc-container button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}
.digivam-kyc-container button[type="submit"]:hover:not(:disabled) {
    background: linear-gradient(135deg, #005a87, #003d5b);
}
.digivam-kyc-container button[type="submit"]:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.digivam-kyc-notice {
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin: 20px auto;
    max-width: 500px;
}
.digivam-kyc-notice.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.digivam-kyc-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    border: 1px solid #c3e6cb;
}
.digivam-kyc-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    border: 1px solid #f5c6cb;
}

/* کارت‌های نتیجه */
.kyc-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.kyc-card h4 {
    margin: 0 0 10px;
    color: #333;
    font-size: 18px;
}
.kyc-card .status {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
}
.kyc-card .status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
}
.kyc-card .status-icon.success {
    background: #28a745;
}
.kyc-card .status-icon.success::after {
    content: "✓";
}
.kyc-card .status-icon.fail {
    background: #dc3545;
}
.kyc-card .status-icon.fail::after {
    content: "✗";
}
.kyc-card .user-data p {
    margin: 5px 0;
    font-size: 14px;
}
.kyc-card.kyc-success {
    background: #d4edda;
    border-color: #c3e6cb;
}
.kyc-card.kyc-fail {
    background: #f8d7da;
    border-color: #f5c6cb;
}
.kyc-card.kyc-deceased {
    background: #f5c2c7;
    border-color: #e27d90;
}
.kyc-card.kyc-deceased .status-icon {
    background: #28a745;  /* تیک سبز حتی در قرمز */
}
.deceased-notice {
    background: #dc3545;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 768px) {
    .digivam-kyc-container {
        margin: -15px;
        padding: 15px;
    }
    .kyc-card .status {
        flex-direction: column;
        align-items: flex-start;
    }
    .kyc-card .status-icon {
        margin-left: 0;
        margin-bottom: 5px;
    }
}

.retry-btn {
    margin-top: 10px;
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}
.retry-btn:hover {
    background: #005a87;
}