/* HOLOOLAND Payment Gateway Styles */

/* Main Container */
.holooland-payment-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
}

/* Form Styles */
.holooland-payment-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.holooland-payment-fields {
    margin-bottom: 25px;
}

.holooland-field-group {
    margin-bottom: 20px;
}

.holooland-field-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.holooland-field-group input,
.holooland-field-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.holooland-field-group input:focus,
.holooland-field-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.holooland-field-group input[type="number"] {
    direction: ltr;
    text-align: left;
}

/* User Fields Section */
.holooland-user-fields {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.holooland-user-fields h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 16px;
}

/* Button Styles */
.holooland-payment-actions {
    text-align: center;
    margin-top: 30px;
}

.holooland-payment-button {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    position: relative;
}

.holooland-payment-button:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.holooland-payment-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.holooland-payment-button .button-loading {
    display: none;
}

/* Messages */
.holooland-payment-messages {
    margin-top: 20px;
}

.holooland-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin-bottom: 10px;
}

.holooland-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    margin-bottom: 10px;
}

.holooland-info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #bee5eb;
    margin-bottom: 10px;
}

/* Payment Result Styles */
.holooland-payment-result {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
}

.holooland-payment-result.completed {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
}

.holooland-payment-result.failed {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
}

.holooland-payment-result.pending,
.holooland-payment-result.processing {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 2px solid #17a2b8;
}

.holooland-payment-result.canceled {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
}

.result-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.result-icon .holooland-icon-check {
    color: #28a745;
}

.result-icon .holooland-icon-x {
    color: #dc3545;
}

.result-icon .holooland-icon-clock,
.result-icon .holooland-icon-loading {
    color: #17a2b8;
}

.result-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.result-message {
    font-size: 16px;
    margin-bottom: 30px;
    color: #666;
    line-height: 1.6;
}

/* Payment Details */
.payment-details {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    text-align: right;
}

.payment-details h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.payment-info-table {
    width: 100%;
    border-collapse: collapse;
}

.payment-info-table td {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.payment-info-table td:first-child {
    font-weight: bold;
    color: #555;
    width: 40%;
}

.payment-info-table td:last-child {
    color: #333;
}

/* Action Buttons */
.result-actions {
    margin-top: 30px;
}

.holooland-button {
    display: inline-block;
    padding: 12px 24px;
    margin: 0 10px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.holooland-button-primary {
    background: #007cba;
    color: white;
}

.holooland-button-primary:hover {
    background: #005a87;
    color: white;
}

.holooland-button-secondary {
    background: #6c757d;
    color: white;
}

.holooland-button-secondary:hover {
    background: #545b62;
    color: white;
}

/* Redirect Notice */
.redirect-notice {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    font-style: italic;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .holooland-payment-container,
    .holooland-payment-result {
        margin: 20px;
        padding: 20px;
    }
    
    .holooland-payment-form {
        padding: 20px;
    }
    
    .result-title {
        font-size: 20px;
    }
    
    .payment-details {
        padding: 15px;
    }
    
    .holooland-button {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
}

/* Loading Animation */
.holooland-icon-loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Validation */
.holooland-field-group input:invalid,
.holooland-field-group textarea:invalid {
    border-color: #dc3545;
}

.holooland-field-group input:valid,
.holooland-field-group textarea:valid {
    border-color: #28a745;
}

/* Accessibility */
.holooland-payment-button:focus,
.holooland-field-group input:focus,
.holooland-field-group textarea:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .holooland-payment-button,
    .result-actions,
    .redirect-notice {
        display: none;
    }
    
    .holooland-payment-result {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
