/* ====== Base Layout ====== */
.cef-form-wrapper {
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
    box-sizing: border-box;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: Arial, sans-serif;
}

.cef-form-wrapper h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

/* ====== Input Fields ====== */
.cef-form-wrapper input[type="text"],
.cef-form-wrapper input[type="email"],
.cef-form-wrapper input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* ====== Table Wrapper (for responsiveness) ====== */
.cef-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 20px;
}

/* ====== Table Styles ====== */
.cef-table {
    width: 100%;
    font-size: 12px; /* Reduce font size for table */
    border-collapse: collapse;
    min-width: 1000px; /* Allow scrolling on smaller screens */
}

.cef-table th,
.cef-table td {
    font-size: 12px;
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}

.cef-table th {
    background: #0073aa;
    color: #fff;
    font-weight: bold;
}

.cef-table tfoot td {
    font-weight: bold;
    background: #f1f1f1;
}

/* ====== Submit Button ====== */
.cef-form-wrapper .button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cef-form-wrapper .button:hover {
    background-color: #005177;
}

/* ====== Status Message ====== */
#cef-status {
    font-weight: bold;
    color: green;
}

/* ====== Error Highlight ====== */
.cef-error {
    display: none;
    color: red;
    font-size: 12px;
    margin-top: 4px;
}

input[style*="border-color: red"] {
    outline: none;
}

/* ====== Responsive: Optional data-label stacking ====== */
@media screen and (max-width: 768px) {
    .cef-table {
        min-width: 100%;
    }

    .cef-table th,
    .cef-table td {
        font-size: 10px;
        padding: 6px;
    }

    /* If using data-label stacking — optional */
    .cef-table td[data-label]::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        color: #333;
    }
}
