/* stripe-payment.css */
#stripe-payment-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e6e6e6;
}
#stripe-payment-form input[type=email],
#stripe-payment-form input[type=text],
#stripe-payment-form input[type=date],
#stripe-payment-form input[type=number],
#stripe-payment-form textarea,
#stripe-payment-form input[type=password],
#stripe-payment-form input[type=tel]{ 
    background: #ffffff;
    border: solid 1px #E5E5E5;
    color: #000;
}
#stripe-payment-form #payment-form .form-group label {
    font-weight: 500;
    color: #737373;
    font-size: 14px;
    margin-bottom: 5px;
    padding-left: 12px;
}
#stripe-payment-form #payment-form .form-group input[type="email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    background-size: 16px;
}
#payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#stripe-payment-form #payment-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#stripe-payment-form #payment-form  .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

#stripe-payment-form #payment-form .form-group.half {
    flex: 1;
}
.form-group input {
    padding: 14px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

#stripe-payment-form #payment-form .form-group input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
    background: #ffffff;
}
/* 
.card-field {
    padding: 14px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: #fafafa;
    transition: all 0.3s ease;
    min-height: 20px;
} */

.card-field:focus-within {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
    background: #ffffff;
}

.card-errors {
    color: #FF0000;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
    padding-left: 12px;
}

.secure-payment-img {
    text-align: center;
    margin: 25px 0;
}
.stripe-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a52e5 0%, #4f46d9 100%);
    /* transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 91, 255, 0.3); */
}
.secure-payment-img img {
    width: 100%;
    max-width: 410px;
}
.stripe-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.spinner {
    width: 18px;
    height: 18px;
    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); }
}

#payment-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

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

#payment-result .success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#payment-result .success::before {
    content: "✓";
    font-weight: bold;
    font-size: 18px;
}

#payment-result .error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #FF0000;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#payment-result .error::before {
    content: "⚠";
    font-weight: bold;
    font-size: 18px;
}

/* Card field specific styling */
#card-number {
    background: #ffffff;
    border: solid 1px #E5E5E5;
    border-radius: 80px;
    padding: 17.42px;
}

#card-expiry {
    border-radius: 0;
    border-right: 1px solid #e1e5e9;
    border: solid 1px #E5E5E5;
    min-height: 56px;
    border-radius: 40px;
    padding: 17.42px 16px;
}

#card-cvc {
    border-radius: 0 0 6px 6px;
    border: solid 1px #E5E5E5;
    min-height: 56px;
    border-radius: 40px;
    padding: 17.42px 16px;
}

/* Enhanced form styling */
.form-group input::placeholder {
    color: #a0a0a0;
}

.form-group input[type="email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M2 2a2 2 0 0 0-2 2v8.01A2 2 0 0 0 2 14h5.5a.5.5 0 0 0 0-1H2a1 1 0 0 1-.966-.741l5.64-3.471L8 9.583l7-4.2V8.5a.5.5 0 0 0 1 0V4a2 2 0 0 0-2-2H2Zm3.708 6.208L1 11.105V5.383l4.708 2.825ZM1 4.217V4a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v.217l-7 4.2-7-4.2Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Responsive design */
@media (max-width: 600px) {
    #stripe-payment-form {
        margin: 0 15px;
        padding:40px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-group.half {
        flex: none;
    }
    
    .form-group input,
    .card-field,
    .stripe-button {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    #stripe-payment-form {
        padding: 40px 15px;
        border-radius: 25px;
    }
}