.cfep-custom-field {
    margin-bottom: 20px;
}

.cfep-custom-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.cfep-custom-field input[type="text"],
.cfep-custom-field input[type="email"],
.cfep-custom-field input[type="tel"],
.cfep-custom-field input[type="number"],
.cfep-custom-field input[type="url"],
.cfep-custom-field input[type="date"],
.cfep-custom-field textarea,
.cfep-custom-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cfep-custom-field textarea {
    min-height: 100px;
}

.cfep-custom-field .cfep-field-description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.cfep-custom-field.cfep-required label::after {
    content: " *";
    color: #f00;
}

.cfep-custom-field.cfep-hidden {
    display: none;
}


.cfep-custom-field {
    margin-bottom: 20px;
}

.cfep-custom-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.cfep-custom-field input[type="text"],
.cfep-custom-field input[type="email"],
.cfep-custom-field input[type="tel"],
.cfep-custom-field input[type="number"],
.cfep-custom-field input[type="url"],
.cfep-custom-field input[type="date"],
.cfep-custom-field textarea,
.cfep-custom-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cfep-custom-field textarea {
    min-height: 100px;
}

.cfep-custom-field .cfep-field-description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.cfep-custom-field.cfep-required label::after {
    content: " *";
    color: #f00;
}

.cfep-custom-field.cfep-hidden {
    display: none;
}

/* Hide corrupted billing_ field and similar issues */
.woocommerce-checkout input[name="billing_"],
.woocommerce-checkout select[name="billing_"],
.woocommerce-checkout textarea[name="billing_"],
.woocommerce-checkout input[name="shipping_"],
.woocommerce-checkout select[name="shipping_"],
.woocommerce-checkout textarea[name="shipping_"],
.woocommerce-checkout #billing_field,
.woocommerce-checkout .form-row.billing_-field,
.woocommerce-checkout .form-row.shipping_-field,
p.form-row:has(input[name="billing_"]),
p.form-row:has(select[name="billing_"]),
p.form-row:has(textarea[name="billing_"]),
p.form-row:has(input[name="shipping_"]),
p.form-row:has(select[name="shipping_"]),
p.form-row:has(textarea[name="shipping_"]) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -99999px !important;
    pointer-events: none !important;
}

/* Hide any empty or malformed form rows */
.woocommerce-billing-fields .form-row:empty,
.woocommerce-shipping-fields .form-row:empty,
.woocommerce-billing-fields p:empty,
.woocommerce-shipping-fields p:empty {
    display: none !important;
}


/* Field Type Specific Styles */
.cfep-heading {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px;
    color: #333;
}

.cfep-paragraph {
    margin: 10px 0;
    color: #666;
    line-height: 1.6;
}

.cfep-field-checkboxgroup label.checkbox {
    display: block;
    margin-bottom: 8px;
}

select[multiple] {
    min-height: 120px;
}

/* Date/Time Fields */
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}