/* ========================================
   Behnis Frontend Styles
   ======================================== */

.behnis-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 0 15px;
}

.behnis-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.behnis-card h2 {
    margin-top: 0;
    color: #1e3a5f;
    font-size: 24px;
    border-bottom: 2px solid #f0f4f8;
    padding-bottom: 15px;
    text-align: center;
}

/* Form Elements */
.behnis-form-group {
    margin-bottom: 18px;
}

.behnis-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.behnis-form-group input,
.behnis-form-group textarea,
.behnis-form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.behnis-form-group input:focus,
.behnis-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.behnis-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    display: block;
}

/* Buttons */
.behnis-btn {
    width: 100%;
    padding: 12px;
    background: #1e3a5f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.behnis-btn:hover {
    background: #2b4f7a;
}

.behnis-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.behnis-btn-link {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 14px;
    margin-top: 12px;
    display: block;
    width: 100%;
    text-align: center;
}

.behnis-btn-link:hover {
    text-decoration: underline;
}

/* Steps */
.behnis-step {
    margin-top: 20px;
}

/* Messages */
.behnis-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    display: none;
}

.behnis-message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.behnis-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.behnis-message.info {
    display: block;
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.behnis-error {
    color: #dc2626;
    font-size: 13px;
    display: none;
}

.behnis-error.show {
    display: block;
}

/* Bank Info */
.behnis-bank-info {
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.behnis-bank-info h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #1e3a5f;
}

.behnis-bank-info p {
    margin: 5px 0;
    font-size: 14px;
}

/* Loading */
.behnis-loading {
    text-align: center;
    padding: 30px;
    color: #6b7280;
}

.behnis-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: behnis-spin 0.8s linear infinite;
}

@keyframes behnis-spin {
    to { transform: rotate(360deg); }
}

/* Panel Info */
#behnis-panel-info .panel-data {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 20px;
}

#behnis-panel-info .panel-data p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #e5e7eb;
}

#behnis-panel-info .panel-data p:last-child {
    border-bottom: none;
}

#behnis-panel-info .panel-data strong {
    color: #374151;
}

/* Responsive */
@media (max-width: 480px) {
    .behnis-card {
        padding: 20px 15px;
    }

    .behnis-card h2 {
        font-size: 20px;
    }
}