/* EazyPay Custom Form Styles */

.eazypay-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.eazypay-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.eazypay-form-header h3 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.eazypay-form-header p {
    color: #7f8c8d;
    margin: 0;
    font-size: 16px;
}

.eazypay-payment-form {
    margin-bottom: 20px;
}

.eazypay-form-group {
    margin-bottom: 20px;
}

.eazypay-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.eazypay-form-group input,
.eazypay-form-group select,
.eazypay-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.eazypay-form-group input:focus,
.eazypay-form-group select:focus,
.eazypay-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.eazypay-form-group input:invalid {
    border-color: #e74c3c;
}

.field-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
}

.eazypay-amount-options {
    margin-top: 10px;
}

.eazypay-amount-options .amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.eazypay-amount-options .amount-option {
    position: relative;
    cursor: pointer;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.3s ease;
    background: #ffffff;
}

.eazypay-amount-options .amount-option:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.eazypay-amount-options .amount-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.eazypay-amount-options .amount-option input[type="radio"]:checked + .amount-value {
    color: #ffffff;
    font-weight: 600;
}

.eazypay-amount-options .amount-option input[type="radio"]:checked {
    background: #3498db;
    border-color: #3498db;
}

.eazypay-amount-options .amount-option:has(input[type="radio"]:checked) {
    background: #3498db;
    border-color: #3498db;
    color: #ffffff;
}

.eazypay-amount-options .amount-value {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.eazypay-amount-options .custom-amount {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
}

.eazypay-amount-options .custom-amount .amount-value {
    color: #ffffff;
}

.custom-amount-input {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px solid #e1e8ed;
}

.custom-amount-input input {
    background: #ffffff;
    border: 2px solid #e1e8ed;
}

.custom-amount-input input:focus {
    border-color: #3498db;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 2px;
}

.checkbox-label a {
    color: #3498db;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.eazypay-form-actions {
    text-align: center;
    margin-top: 30px;
}

.eazypay-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.eazypay-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.eazypay-submit-btn:active {
    transform: translateY(0);
}

.eazypay-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.eazypay-submit-btn .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.eazypay-submit-btn .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.eazypay-form-messages {
    margin-top: 20px;
}

.eazypay-form-messages .error-message,
.eazypay-form-messages .success-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: 500;
}

.eazypay-form-messages .error-message {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.eazypay-form-messages .success-message {
    background: #efe;
    color: #363;
    border: 1px solid #cfc;
}

.eazypay-security-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #28a745;
    margin-top: 20px;
}

.eazypay-security-info p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #495057;
}

.eazypay-security-info p:last-child {
    margin-bottom: 0;
}

.eazypay-security-info strong {
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .eazypay-form-container {
        margin: 10px;
        padding: 15px;
    }
    
    .eazypay-amount-options .amount-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .eazypay-amount-options .amount-option {
        padding: 12px 8px;
    }
    
    .eazypay-amount-options .amount-value {
        font-size: 14px;
    }
    
    .eazypay-submit-btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .eazypay-amount-options .amount-grid {
        grid-template-columns: 1fr;
    }
    
    .eazypay-form-header h3 {
        font-size: 20px;
    }
    
    .eazypay-form-header p {
        font-size: 14px;
    }
}

/* Loading States */
.eazypay-form-container.loading {
    pointer-events: none;
    opacity: 0.7;
}

.eazypay-form-container.loading .eazypay-submit-btn {
    background: #95a5a6;
}

/* Success States */
.eazypay-form-container.success {
    border: 2px solid #27ae60;
}

.eazypay-form-container.error {
    border: 2px solid #e74c3c;
}
