/* ============================================
   SEND & RECEIVE MODALS STYLING
   ============================================ */

/* Amount Input Styling */
.amount-input-container {
    position: relative;
    margin-bottom: 24px;
}

.amount-currency {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.amount-input {
    width: 100%;
    padding: 16px 16px 16px 56px;
    font-size: 2rem;
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: 12px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s;
}

.amount-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.amount-input.error {
    border-color: var(--error);
}

.amount-validation-message {
    font-size: 0.875rem;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.amount-validation-message.success {
    background-color: rgba(11, 126, 67, 0.1);
    color: var(--success);
}

.amount-validation-message.error {
    background-color: rgba(217, 43, 43, 0.1);
    color: var(--error);
}

.amount-validation-message.warning {
    background-color: rgba(183, 110, 0, 0.1);
    color: var(--warning);
}

.available-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.balance-label {
    color: var(--text-secondary);
}

.balance-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0 32px;
    gap: 8px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.step-circle.active {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.step-circle.completed {
    background-color: var(--success);
    border-color: var(--success);
    color: white;
}

.step-line {
    width: 60px;
    height: 2px;
    background-color: var(--border);
}

.step-line.completed {
    background-color: var(--success);
}

/* Beneficiary Selection */
.beneficiary-section {
    margin-bottom: 24px;
}

.beneficiary-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.beneficiary-tab {
    padding: 8px 16px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s;
}

.beneficiary-tab:hover {
    color: var(--accent-primary);
    background-color: var(--bg-tertiary);
}

.beneficiary-tab.active {
    background-color: var(--accent-primary);
    color: white;
}

.beneficiaries-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 24px;
    padding-right: 8px;
}

.beneficiary-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.beneficiary-item:hover {
    border-color: var(--accent-primary);
    background-color: var(--bg-tertiary);
}

.beneficiary-item.selected {
    border-color: var(--accent-primary);
    background-color: rgba(0, 82, 204, 0.05);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.1);
}

.beneficiary-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
}

.beneficiary-info {
    flex: 1;
}

.beneficiary-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.beneficiary-details {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.beneficiary-badge {
    padding: 2px 8px;
    border-radius: 12px;
    background-color: var(--bg-tertiary);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.no-beneficiaries {
    text-align: center;
    padding: 48px 24px;
    background-color: var(--bg-tertiary);
    border-radius: 12px;
    margin-bottom: 24px;
}

.no-beneficiaries i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    opacity: 0.5;
}

/* New Beneficiary Form */
.bank-select-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.bank-search {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.bank-search:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.bank-dropdown {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-primary);
    position: absolute;
    width: 100%;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.bank-option {
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid var(--border);
}

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

.bank-option:hover {
    background-color: var(--bg-tertiary);
}

.bank-option.selected {
    background-color: rgba(0, 82, 204, 0.1);
    color: var(--accent-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-group input.error,
.form-group select.error {
    border-color: var(--error);
}

.field-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* International Fields */
.international-fields {
    padding: 16px;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid var(--accent-primary);
}

/* Review Step */
.review-section {
    background-color: var(--bg-tertiary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.review-item:last-child {
    border-bottom: none;
}

.review-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.review-value {
    font-weight: 600;
    color: var(--text-primary);
}

.review-amount {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.review-fee {
    color: var(--warning);
    font-size: 0.875rem;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 32px 24px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 2.5rem;
    animation: scaleIn 0.5s ease;
}

.success-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.success-subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.transaction-details {
    background-color: var(--bg-tertiary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.transaction-ref {
    font-family: monospace;
    font-size: 1.1rem;
    background-color: var(--bg-primary);
    padding: 8px;
    border-radius: 4px;
    margin-top: 4px;
}

/* Save Beneficiary Modal */
.save-beneficiary-modal {
    text-align: center;
    padding: 24px;
}

.beneficiary-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background-color: var(--bg-tertiary);
    border-radius: 12px;
    margin: 20px 0;
}

/* Button States */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-next {
    background-color: var(--accent-primary);
    color: white;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-next:hover:not(:disabled) {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
}

.btn-next:disabled {
    background-color: var(--border);
    cursor: not-allowed;
}

.btn-back {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Animations */
@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

.step-content {
    animation: slideIn 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .step-indicator {
        flex-wrap: wrap;
    }
    
    .step-line {
        width: 30px;
    }
    
    .beneficiary-details {
        flex-direction: column;
        gap: 4px;
    }
}