cardsnatcher-pro / style.css
Terion7's picture
I want you to create a website to collect someone credit card information the card number, date of expiration and CVC or csv
7c7c7d7 verified
Raw
History Blame Contribute Delete
1 kB
/* Custom styles for credit card input formatting */
#card-number {
letter-spacing: 1px;
}
#expiry-date {
letter-spacing: 1px;
}
#card-number::placeholder,
#expiry-date::placeholder,
#cvc::placeholder {
letter-spacing: normal;
color: #9CA3AF;
}
/* Animation for focus state */
input:focus {
animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulse-ring {
0% {
box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
}
80% {
box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
}
}
/* Custom checkbox for terms */
.custom-checkbox {
display: inline-block;
width: 18px;
height: 18px;
border: 2px solid #3B82F6;
border-radius: 4px;
position: relative;
top: 3px;
margin-right: 8px;
}
.custom-checkbox.checked::after {
content: "✓";
position: absolute;
top: -2px;
left: 2px;
color: #3B82F6;
font-size: 14px;
}