/* Form Container */
.stripe-checkout-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    background: #CCC;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

/* Form Styling */
#stripe-checkout-form, 
#stripe-checkout-form-oneoff {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Input Fields */
#stripe-price-id {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease-in-out;
}

#stripe-price-id-oneoff {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease-in-out;
}

#custom-amount {
    width: 95%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease-in-out;
}

#custom-amount-oneoff {
    width: 95%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease-in-out;
}

#donor-name,
#donor-email {
    width: 95%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease-in-out;
}

#stripe-price-id:focus, 
#donor-name:focus, 
#donor-email:focus,
#custom-amount-oneoff:focus, 
#custom-amount:focus {
    border-color: #0073e6;
    outline: none;
}

/* Custom Amount Input Containers */
#custom-amount-container, 
#custom-amount-container-oneoff {
    display: none;
    margin-top: 10px;
}

/* Stripe Card Element */
#card-element {
    padding: 12px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease-in-out;
}

#card-element:focus {
    border-color: #0073e6;
    outline: none;
}

/* Submit Button */
button {
    width: 100%;
    padding: 14px;
    background: #0073e6;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

button:hover {
    background: #005bb5;
    transform: scale(1.02);
}

/* Error Messages */
#card-errors {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stripe-checkout-form {
        max-width: 100%;
        padding: 20px;
    }
    
    #stripe-checkout-form, 
    #stripe-checkout-form-oneoff {
        gap: 12px;
    }

    button {
        font-size: 16px;
    }
}

/* Toggle Switch Style start ***********************/
.donation-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.toggle-label {
    color: #999;
    transition: color 0.3s ease;
}

.toggle-label.active {
    color: #000;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #EEE;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #0073e6;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Toggle Switch Style end ***********************/
