/* Kopokopo STK Push - Payment Form Styles */

.kopokopo-payment-form {
    max-width: 500px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.kopokopo-form-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kopokopo-form-container h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    text-align: center;
    font-weight: 600;
}

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

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

.kopokopo-form input[type="tel"],
.kopokopo-form input[type="number"],
.kopokopo-form input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.kopokopo-form input[type="tel"]:focus,
.kopokopo-form input[type="number"]:focus,
.kopokopo-form input[type="text"]:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.kopokopo-form input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.kopokopo-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.kopokopo-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.kopokopo-submit-btn:hover {
    background: #45a049;
}

.kopokopo-submit-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.kopokopo-message {
    margin-top: 20px;
}

.kopokopo-message .success {
    padding: 12px 15px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
}

.kopokopo-message .error {
    padding: 12px 15px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
}

.kopokopo-message .info {
    padding: 12px 15px;
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-radius: 5px;
}

.kopokopo-info {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #4CAF50;
}

.kopokopo-info p {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
}

.kopokopo-info ol {
    margin: 10px 0 0 20px;
    padding: 0;
    color: #555;
    font-size: 14px;
}

.kopokopo-info li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .kopokopo-payment-form {
        margin: 10px;
    }
    
    .kopokopo-form-container {
        padding: 20px;
    }
    
    .kopokopo-form-container h3 {
        font-size: 20px;
    }
}

/* Loading Animation */
.btn-loading {
    display: inline-block;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}
