/* Custom styles for the payment interface */

#payment-element {
    min-height: 150px;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

#payment-element:focus-within {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

#submit-button {
    position: relative;
    overflow: hidden;
}

#submit-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

#submit-button:disabled::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%
    );
    background-size: 1rem 1rem;
    animation: stripe-loading 1s linear infinite;
}

@keyframes stripe-loading {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 1rem 0;
    }
}

#error-message {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    #submit-button {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}