/**
 * Iyzico Checkout Form Custom Styles
 * ----------------------------------
 * This file contains custom CSS to improve the look and feel of the 
 * default Iyzico checkout form.
 */

/* --- General Form Container --- */
#iyzipay-checkout-form,
.iyzi-checkout-form {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    max-width: 480px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #e0e0e0;
    background: #ffffff;
}

/* --- Form Headings --- */
#iyzipay-checkout-form h2,
#iyzipay-checkout-form h3 {
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* --- Form Fields: Inputs and Selects --- */
#iyzipay-checkout-form .input,
#iyzipay-checkout-form .select,
#iyzipay-checkout-form input[type='text'],
#iyzipay-checkout-form input[type='email'],
#iyzipay-checkout-form input[type='tel'] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#iyzipay-checkout-form .input:focus,
#iyzipay-checkout-form input[type='text']:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* --- Labels --- */
#iyzipay-checkout-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

/* --- Submit Button --- */
#iyzipay-checkout-form button[type='submit'],
#iyzipay-checkout-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#iyzipay-checkout-form button[type='submit']:hover,
#iyzipay-checkout-form .btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* --- Helper/Error Messages --- */
.iyzi-error-message, .iyzi-info-message {
    text-align: center;
    padding: 10px;
    margin-top: 1rem;
    border-radius: 6px;
}

.iyzi-error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* --- Responsive Design --- */
@media (max-width: 600px) {
    #iyzipay-checkout-form {
        padding: 1rem;
        margin: 1rem;
        box-shadow: none;
        border: none;
    }
}
