/**
 * VAT Refund IL - Public Styles
 */

/* Form Container */
.vat-refund-form-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* RTL Support */
[dir="rtl"] .vat-refund-form-wrapper {
    text-align: right;
}

/* Calculator Widget */
.vat-calculator-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.vat-calculator-widget h3 {
    margin-top: 0;
    color: #ffffff;
}

.calculator-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.calculator-row input {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
}

.calculator-row .button {
    background: #ffffff;
    color: #667eea;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.calculator-row .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.calculator-result {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.calculator-result strong {
    font-size: 1.5rem;
    color: #ffffff;
}

/* Form Styles */
.vat-refund-form {
    margin-top: 2rem;
}

.vat-refund-form fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.vat-refund-form legend {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    padding: 0 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    margin-top: 0.25rem;
    color: #888;
    font-size: 0.875rem;
}

.required {
    color: #e74c3c;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.payment-method input[type="radio"] {
    margin-right: 0.5rem;
}

[dir="rtl"] .payment-method input[type="radio"] {
    margin-right: 0;
    margin-left: 0.5rem;
}

.payment-method input[type="radio"]:checked + span {
    font-weight: 600;
    color: #667eea;
}

/* Bank Details */
#bank-details {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 1rem;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
}

[dir="rtl"] .checkbox-label input[type="checkbox"] {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.button {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.button-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Status Check */
.vat-status-wrapper {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.vat-status-form {
    margin: 1.5rem 0;
}

.status-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

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

.status-table th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    color: #6c757d;
    font-weight: 500;
}

[dir="rtl"] .status-table th {
    text-align: right;
}

.status-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #cce5ff;
    color: #004085;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-paid {
    background: #d1ecf1;
    color: #0c5460;
}

.status-cancelled {
    background: #e2e3e5;
    color: #383d41;
}

/* Responsive */
@media (max-width: 768px) {
    .vat-refund-form-wrapper,
    .vat-status-wrapper {
        padding: 1rem;
        margin: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .calculator-row {
        flex-direction: column;
    }
    
    .calculator-row input {
        width: 100%;
    }
}

/* Loading Spinner */
.vat-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: vat-spin 1s linear infinite;
}

@keyframes vat-spin {
    to { transform: rotate(360deg); }
}

/* Accessibility */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .vat-refund-form-wrapper {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .button,
    .form-actions {
        display: none;
    }
}
