/* Styling for WooCommerce checkout billing form */
body.woocommerce-checkout .woocommerce-billing-fields {
    /*background: linear-gradient(145deg, #e6f0fa 0%, #d4e4ff 100%);*/
    padding: 25px;
    /*border-radius: 0;*/
    /*box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);*/
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    border: 1px solid #dfdfdf;
}

body.woocommerce-checkout .woocommerce-billing-fields:hover {
    transform: translateY(-2px);
}

body.woocommerce-checkout .woocommerce-billing-fields h3 {
    font-size: 26px;
    color: #222;
    margin-bottom: 20px;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

body.woocommerce-checkout .woocommerce-billing-fields .form-row {
    margin-bottom: 20px;
    position: relative;
}

body.woocommerce-checkout .woocommerce-billing-fields label {
    font-weight: 600;
    color: #222;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.3s ease;
}

body.woocommerce-checkout .woocommerce-billing-fields label:hover {
    color: #0056b3;
}

body.woocommerce-checkout .woocommerce-billing-fields input,
body.woocommerce-checkout .woocommerce-billing-fields select {
    width: 100% !important;
    padding: 14px !important;
    border: 1px solid #ccc !important;
    font-size: 15px;
    color: #333 !important;
    background-color: #fff !important;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.woocommerce-checkout .woocommerce-billing-fields input:focus,
body.woocommerce-checkout .woocommerce-billing-fields select:focus {
    border-color: #0056b3;
    box-shadow: 0 0 10px rgba(0, 86, 179, 0.4);
    outline: none;
    transform: scale(1.02);
}

body.woocommerce-checkout .woocommerce-billing-fields input:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.2);
}

/* Style for Select2 dropdowns */
body.woocommerce-checkout .woocommerce-billing-fields .select2-container .select2-selection--single {
    height: 46px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
}

body.woocommerce-checkout .woocommerce-billing-fields .select2-container .select2-selection--single:hover {
    border-color: #0056b3;
    box-shadow: 0 0 10px rgba(0, 86, 179, 0.2);
}

body.woocommerce-checkout .woocommerce-billing-fields .select2-container .select2-selection__rendered {
    line-height: 46px;
    padding-left: 14px;
    color: #333;
    font-size: 15px;
}

body.woocommerce-checkout .woocommerce-billing-fields .select2-container .select2-selection__arrow {
    height: 46px;
    width: 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="gray" viewBox="0 0 16 16"><path d="M8 12l-6-6h12l-6 6z"/></svg>') no-repeat center;
}

body.woocommerce-checkout .woocommerce-billing-fields .select2-container .select2-selection__arrow b {
    display: none; /* Hide default arrow */
}

/* WhatsApp field styling with icon */
body.woocommerce-checkout .woocommerce-billing-fields #billing_whatsapp_field input {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="green" viewBox="0 0 16 16"><path d="M13.6 2.4C12 0.8 10 0 8 0 3.6 0 0 3.6 0 8c0 1.4 0.4 2.7 1 3.9L0 16l4.1-1c1.1 0.6 2.3 0.9 3.9 0.9 4.4 0 8-3.6 8-8 0-2-0.8-4-2.4-5.6zM8 14.5c-1.3 0-2.5-0.4-3.5-1l-0.3-0.2-2.4 0.6 0.6-2.4-0.2-0.3c-0.6-1-0.9-2.2-0.9-3.5 0-3.9 3.2-7 7-7s7 3.2 7 7-3.2 7-7 7zm4.2-2.2l-0.7 0.4c-0.2 0.1-0.5 0.2-0.8 0.2-0.7 0-1.4-0.3-1.9-0.8-0.6-0.6-1-1.3-1.2-2.1-0.1-0.4 0-0.7 0.2-1l0.3-0.4c0.1-0.1 0.1-0.2 0.1-0.3l-0.3-0.5c-0.1-0.1-0.2-0.1-0.3-0.1-0.1 0-0.2 0-0.3 0.1l-0.5 0.3c-0.2 0.1-0.4 0.1-0.6-0.1-0.5-0.2-1-0.7-1.5-1.2-0.2-0.2-0.3-0.4-0.1-0.6l0.3-0.4c0.1-0.1 0.1-0.2 0.1-0.3l0-0.5c0-0.1-0.1-0.2-0.2-0.3-0.2-0.1-0.4-0.2-0.6-0.3-0.1 0-0.2 0-0.3 0.1l-0.5 0.7c-0.1 0.1-0.2 0.2-0.1 0.4 0.2 0.7 0.5 1.4 1 2.1 0.6 0.8 1.3 1.4 2.2 1.7 0.3 0.1 0.5 0.1 0.7 0l0.7-0.4c0.1-0.1 0.2-0.1 0.3-0.1l0.5 0.3c0.1 0.1 0.2 0.1 0.3 0z"/></svg>') no-repeat 98% center;
    background-size: 22px;
    padding-right: 45px;
    transition: background-color 0.3s ease;
}

body.woocommerce-checkout .woocommerce-billing-fields #billing_whatsapp_field input:focus {
    background-color: #f0fff4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body.woocommerce-checkout .woocommerce-billing-fields {
        padding: 15px;
    }
    body.woocommerce-checkout .woocommerce-billing-fields input,
    body.woocommerce-checkout .woocommerce-billing-fields select {
        font-size: 14px;
        padding: 12px;
    }
    body.woocommerce-checkout .woocommerce-billing-fields .select2-container .select2-selection--single {
        height: 42px;
    }
    body.woocommerce-checkout .woocommerce-billing-fields .select2-container .select2-selection__rendered {
        line-height: 42px;
    }
    body.woocommerce-checkout .woocommerce-billing-fields .select2-container .select2-selection__arrow {
        height: 42px;
    }
}