.fce-form-wrapper,
.fce-public-responses {
    max-width: 900px;
    margin: 24px auto;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.fce-form {
    display: grid;
    gap: 18px;
}


.fce-form-intro-message,
.fce-form-final-message {
    border-radius: 14px;
    border: 1px solid #c7d7ea;
    background: #f0f7ff;
    color: #123b63;
    line-height: 1.6;
}

.fce-form-intro-message {
    margin-bottom: 20px;
    padding: 20px 22px;
    font-size: 19px;
    font-weight: 700;
}

.fce-form-final-message {
    margin-top: 4px;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 600;
}


.fce-field {
    display: grid;
    gap: 7px;
}

.fce-label {
    font-weight: 700;
}

.fce-required {
    color: #b42318;
}

.fce-form input[type="text"],
.fce-form input[type="email"],
.fce-form input[type="tel"],
.fce-form input[type="date"],
.fce-form input[type="number"],
.fce-form input[type="url"],
.fce-form input[type="file"],
.fce-form textarea,
.fce-form select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 16px;
    background: #fff;
}

.fce-form textarea {
    min-height: 140px;
}

.fce-form textarea.fce-big-textarea {
    min-height: 260px;
}

.fce-options {
    display: grid;
    gap: 8px;
}

.fce-options label {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 400;
}

.fce-submit-button {
    border: 0;
    border-radius: 999px;
    padding: 13px 26px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    background: #154f88;
    color: #fff;
    justify-self: start;
}

.fce-submit-button:hover,
.fce-submit-button:focus {
    filter: brightness(0.95);
}

.fce-message {
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.fce-success {
    background: #ecfdf3;
    color: #05603a;
    border: 1px solid #abefc6;
}

.fce-error {
    background: #fff1f3;
    color: #b42318;
    border: 1px solid #fecdd6;
}

.fce-help {
    margin: 0;
    font-size: 13px;
    color: #667085;
}


.fce-success-page {
    max-width: 760px;
}

.fce-success-page-message {
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.6;
}

.fce-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}


.fce-response-period-note {
    color: #475467;
    margin-top: -6px;
}

.fce-response-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    margin: 18px 0 20px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.fce-filter-field {
    display: grid;
    gap: 6px;
    min-width: 180px;
}

.fce-filter-field label {
    font-weight: 700;
    font-size: 14px;
}

.fce-response-filter select,
.fce-response-filter input[type="week"],
.fce-response-filter input[type="month"] {
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
}

.fce-filter-button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 700;
    cursor: pointer;
    background: #154f88;
    color: #fff;
}

.fce-filter-button:hover,
.fce-filter-button:focus {
    filter: brightness(0.95);
}

.fce-responsive-table {
    overflow-x: auto;
}

.fce-public-responses table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.fce-public-responses th,
.fce-public-responses td {
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.fce-public-responses th {
    background: #f8fafc;
    font-weight: 700;
}

@media (max-width: 700px) {
    .fce-form-wrapper,
    .fce-public-responses {
        padding: 16px;
        border-radius: 10px;
    }

    .fce-submit-button,
    .fce-filter-button {
        width: 100%;
    }

    .fce-filter-field {
        width: 100%;
    }
}

.fce-response-summary {
    margin-bottom: 14px;
}

.fce-response-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0 20px;
    padding: 16px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: #f9fafb;
}

.fce-response-actions-info {
    color: #344054;
}

.fce-response-actions-info span,
.fce-selected-count {
    color: #667085;
    font-size: 14px;
}

.fce-response-actions-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fce-print-selected-button,
.fce-pdf-selected-button,
.fce-download-print-file-button,
.fce-delete-selected-button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
    background: #154f88;
    color: #fff;
}

.fce-pdf-selected-button {
    background: #0f766e;
}

.fce-download-print-file-button {
    background: #475467;
}

.fce-delete-selected-button {
    background: #b42318;
}

.fce-print-selected-button:disabled,
.fce-pdf-selected-button:disabled,
.fce-download-print-file-button:disabled,
.fce-delete-selected-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.fce-selected-count {
    flex-basis: 100%;
    margin: 0;
}

.fce-select-column {
    width: 96px;
    text-align: center !important;
}

.fce-select-all-label,
.fce-response-select-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0;
}

.fce-response-select,
.fce-select-all-responses {
    width: 18px;
    height: 18px;
}

.fce-print-area {
    display: none;
}

@media print {
    .fce-response-filter,
    .fce-response-actions,
    .fce-select-column {
        display: none !important;
    }

    .fce-print-area {
        display: none;
    }

    body.fce-is-printing-selected * {
        visibility: hidden !important;
    }

    body.fce-is-printing-selected .fce-print-area,
    body.fce-is-printing-selected .fce-print-area * {
        visibility: visible !important;
    }

    body.fce-is-printing-selected .fce-print-area {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 20px;
        background: #fff;
        color: #111827;
    }

    body.fce-is-printing-selected .fce-print-area h1 {
        font-size: 22px;
        margin: 0 0 10px;
    }

    body.fce-is-printing-selected .fce-print-area table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }

    body.fce-is-printing-selected .fce-print-area th,
    body.fce-is-printing-selected .fce-print-area td {
        border: 1px solid #d0d5dd;
        padding: 8px 10px;
        text-align: left;
        vertical-align: top;
    }

    body.fce-is-printing-selected .fce-print-area th {
        background: #f2f4f7;
    }

    body.fce-is-printing-selected .fce-print-instruction {
        display: none !important;
    }
}

@media (max-width: 700px) {
    .fce-response-actions {
        align-items: stretch;
    }

    .fce-response-actions-buttons,
    .fce-print-selected-button,
    .fce-pdf-selected-button,
    .fce-download-print-file-button,
    .fce-delete-selected-button {
        width: 100%;
    }
}
