/* Payment Request Module Styles */

/* Base responsive container */
.module-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 12px;
}

@media (max-width: 768px) {
    .module-container {
        padding: 8px;
        margin-bottom: 80px;
    }
}

/* Form Container */
.payment-request-form {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .payment-request-form {
        padding: 16px;
        border-radius: 12px;
        margin-bottom: 16px;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
}

/* Step Content */
.step-content {
    background: white;
}

.step-content.hidden {
    display: none;
}

.step-content.active {
    display: block;
}

/* Bank Selection Dropdown */
.bank-select-dropdown {
    position: relative;
    margin-bottom: 24px;
}

.bank-dropdown-toggle {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    font-size: 16px;
    color: #374151;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.bank-dropdown-toggle:hover {
    border-color: #3b82f6;
}

.bank-dropdown-toggle.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.bank-dropdown-toggle .placeholder {
    color: #9ca3af;
}

.bank-dropdown-toggle .selected-bank {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bank-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: none;
}

.bank-dropdown.active {
    display: block;
}

.bank-search-box {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.bank-search-box input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.bank-search-box input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.bank-options {
    max-height: 250px;
    overflow-y: auto;
}

.bank-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bank-option:last-child {
    border-bottom: none;
}

.bank-option:hover {
    background-color: #f9fafb;
}

.bank-option.selected {
    background-color: #f0f9ff;
    border-left: 3px solid #3b82f6;
}

.bank-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.bank-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 15px;
}

.bank-search-empty {
    padding: 20px;
    text-align: center;
    color: #6b7280;
}

.bank-search-empty i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

/* Selected Bank Display */
.selected-bank-display {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 16px;
    border: 2px solid #7dd3fc;
    margin-top: 12px;
    animation: fadeIn 0.3s ease-out;
    display: none;
}

.selected-bank-display.active {
    display: block;
}

.selected-bank-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.selected-bank-text {
    flex: 1;
}

.selected-bank-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0369a1;
    margin: 0 0 4px 0;
}

.selected-bank-text p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.change-bank-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.change-bank-btn:hover {
    background: #2563eb;
}

/* Selected Bank Card */
.selected-bank-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #7dd3fc;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.selected-bank-card .bank-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .form-group {
        margin-bottom: 20px;
    }
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-required {
    color: #ef4444;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Amount Input */
.amount-input {
    position: relative;
}

.amount-input .currency-symbol {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 700;
    color: #059669;
}

.amount-input input {
    padding-left: 45px !important;
    font-size: 18px;
    font-weight: 600;
}

.amount-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.field-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* File Upload */
.file-upload-container {
    margin-top: 8px;
}

.file-upload-box {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-box:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.file-upload-box.drag-over {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.file-preview {
    margin-top: 16px;
    animation: fadeIn 0.3s ease-out;
}

.file-preview.hidden {
    display: none;
}

.file-preview-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 4px;
    word-break: break-all;
}

.file-size {
    font-size: 12px;
    color: #6b7280;
}

.remove-file-btn {
    background: #fee2e2;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #dc2626;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.remove-file-btn:hover {
    background: #fecaca;
}

/* Buttons */
.btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

@media (max-width: 768px) {
    .btn {
        padding: 12px 20px;
        font-size: 15px;
        min-height: 44px;
        width: 100%;
    }
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-group {
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
    }
}

/* Loading States */
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.loading-overlay.hidden {
    display: none;
}

.loading-overlay-content {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Receipt Styles (Reusing from mobile_prepaid with modifications) */
.receipt-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    max-height: 96vh;
    display: flex;
    flex-direction: column;
}

.receipt-top-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 56px;
}

.receipt-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.receipt-logo {
    height: 32px;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 100%;
    width: 90px;
    filter: brightness(0) invert(1);
    max-width: 120px;
}

.logo-text {
    font-size: 16px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

.receipt-content {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.receipt-success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: -10px;
}

.success-circle {
    width: 60px;
    height: 60px;
  
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
 
}

.success-circle i {
    font-size: 24px;
    
}

.receipt-amount-display {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.amount-label {
    font-size: 14px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 500;
}

.amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.currency {
    font-size: 20px;
    font-weight: 600;
    color: #059669;
}

.amount-number {
    font-size: 32px;
    font-weight: 700;
    color: #059669;
    line-height: 1;
}

.details-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.details-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-title i {
    color: #3b82f6;
    font-size: 14px;
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    font-weight: 600;
    flex: 1;
}

.detail-label i {
    width: 14px;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
    flex-shrink: 0;
}

.detail-value {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    text-align: right;
    flex: 1;
    word-break: break-word;
    padding-left: 8px;
}

.status-badge {
    color: #166534;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.receipt-top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
}

.receipt-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.close-button {
    background: none;
    border: none;
    color: #fff7f7;
    font-size: 31px;
    
    cursor: pointer;

    padding: 5px 10px;
    line-height: 1;
    transition: color 0.2s ease;
    border-radius: 4px;
}

.close-button:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
}

.close-button:active {
    transform: scale(0.95);
}

.status-success {
    
    color: #166534;
}

.receipt-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.action-button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
}

.action-button i {
    font-size: 13px;
}

.action-button:hover {
    transform: translateY(-2px);
}

.share-button {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.download-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.done-button {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    color: white;
}

/* Success Details in Modal */
.success-details-content {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.success-details-content .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.success-details-content .detail-item:last-child {
    border-bottom: none;
}

.success-details-content .detail-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.success-details-content .detail-value {
    font-size: 13px;
    color: #1f2937;
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .receipt-card {
        max-width: 100%;
        border-radius: 16px;
        max-height: 100vh;
    }
    
    .receipt-top-actions {
        padding: 12px 16px;
        min-height: 52px;
    }
    
    .receipt-logo {
        height: 28px;
    }
    
    .logo-image {
        max-width: 100px;
    }
    
    .receipt-content {
        padding: 20px;
    }
    
    .success-circle {
        width: 52px;
        height: 52px;
    }
    
    .success-circle i {
        font-size: 20px;
    }
    
    .amount-number {
        font-size: 28px;
    }
    
    .currency {
        font-size: 18px;
    }
    
    .amount-label {
        font-size: 13px;
    }
    
    .details-card {
        padding: 16px;
    }
    
    .details-title {
        font-size: 15px;
        margin-bottom: 14px;
    }
    
    .detail-label,
    .detail-value {
        font-size: 12px;
    }
    
    .detail-label i {
        width: 13px;
        font-size: 11px;
    }
    
    .receipt-action-buttons {
        padding: 16px;
        gap: 6px;
    }
    
    .action-button {
        padding: 10px;
        font-size: 12px;
        min-height: 38px;
    }
    
    .action-button i {
        font-size: 12px;
    }
    
    /* Adjust form elements for mobile */
    .form-control {
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    input[type="date"] {
        font-size: 16px;
    }
}

/* Fix for iOS safe areas */
@supports (padding: max(0px)) {
    .page-content-wrapper {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}

.mobile-bottom-spacing {
    padding-bottom: 100px;
}

.safe-area-padding {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}