/* Custom styles for payment form */

/* Smooth transitions */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

/* Input focus animations */
input:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

input:hover:not(:focus) {
    border-color: #94a3b8;
}

/* Card icon animations */
.card-icon {
    animation: fadeInScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.6) translateY(-50%);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(-50%);
    }
}

/* Error state styling */
input.error {
    border-color: #ef4444;
    background-color: #fef2f2;
    animation: shake 0.3s ease-in-out;
}

input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Success state styling */
input.success {
    border-color: #10b981;
    background-color: #f0fdf4;
}

input.success:focus {
    border-color: #10b981;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
}

/* Button loading state */
button:disabled {
    cursor: not-allowed;
}

/* Button hover effect */
#submit-btn:not(:disabled):hover {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.3);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Placeholder styling */
input::placeholder {
    color: #94a3b8;
    opacity: 0.7;
}

/* Selection styling */
::selection {
    background-color: #cbd5e1;
    color: #0f172a;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

