.kcb-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999998;
    animation: fadeIn 0.3s ease;
}

.kcb-modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.kcb-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    padding: 0;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.kcb-modal-header {
    background: linear-gradient(135deg, #0F6938 0%, #0A4526 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.kcb-modal-logo {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.kcb-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.kcb-modal-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
}

.kcb-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.kcb-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.kcb-modal-body {
    padding: 25px;
}

.kcb-form-group {
    margin-bottom: 20px;
}

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

.kcb-form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.kcb-form-input:focus {
    outline: none;
    border-color: #0F6938;
}

.kcb-form-input.error {
    border-color: #dc3545;
}

.kcb-error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.kcb-error-message.show {
    display: block;
}

.kcb-amount-display {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.kcb-amount-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 5px;
}

.kcb-amount-value {
    font-size: 28px;
    font-weight: bold;
    color: #0F6938;
}

.kcb-phone-hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.kcb-submit-btn {
    width: 100%;
    padding: 14px;
    background: #0F6938;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.kcb-submit-btn:hover:not(:disabled) {
    background: #0A4526;
}

.kcb-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.kcb-processing-state {
    display: none;
    text-align: center;
    padding: 20px;
}

.kcb-processing-state.active {
    display: block;
}

.kcb-form-state {
    display: block;
}

.kcb-form-state.hidden {
    display: none;
}

.kcb-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0F6938;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.kcb-processing-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.kcb-processing-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
}

.kcb-phone-display {
    font-size: 16px;
    font-weight: 600;
    color: #0F6938;
    margin-bottom: 10px;
}

.kcb-timer {
    font-size: 14px;
    color: #6c757d;
}

.kcb-status-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.kcb-status-icon.success {
    background: #d4edda;
    color: #155724;
}

.kcb-status-icon.error {
    background: #f8d7da;
    color: #721c24;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@media (max-width: 480px) {
    .kcb-modal {
        width: 95%;
        margin: 10px;
    }

    .kcb-modal-body {
        padding: 20px;
    }
}