/* ==========================================================================
   Contact Form to Email — Gutenberg Block Editor Preview (css/cfte-block-editor.css)
   ========================================================================== */

.cfte-gutenberg-preview {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    pointer-events: none;
    user-select: none;
    box-sizing: border-box;
}

.cfte-gutenberg-preview *,
.cfte-gutenberg-preview *::before,
.cfte-gutenberg-preview *::after {
    box-sizing: border-box;
}

.cfte-gb-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.cfte-gb-badge {
    font-size: 12px;
    font-weight: 700;
    color: #4f46e5;
    background: #eef2ff;
    padding: 3px 10px;
    border-radius: 999px;
}

.cfte-gb-tag {
    font-size: 11.5px;
    color: #64748b;
}

.cfte-gb-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.cfte-gb-desc {
    font-size: 13px;
    color: #475569;
    margin: 0 0 14px;
    line-height: 1.45;
}

.cfte-gb-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cfte-gb-field {
    flex: 0 0 100%;
    min-width: 120px;
}

.cfte-gb-field--col2 {
    flex-basis: calc(50% - 6px);
}

.cfte-gb-field--col3 {
    flex-basis: calc(33.333% - 8px);
}

.cfte-gb-field--col4 {
    flex-basis: calc(25% - 9px);
}

.cfte-gb-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 5px;
}

.cfte-gb-req {
    color: #dc2626;
    margin-left: 3px;
}

.cfte-gb-input {
    width: 100%;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #64748b;
    font-size: 13px;
}

.cfte-gb-input--sm {
    width: 35%;
}

.cfte-gb-input--md {
    width: 65%;
}

.cfte-gb-textarea {
    resize: none;
}

.cfte-gb-hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 8px 0;
}

.cfte-gb-section-title {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}

.cfte-gb-comment {
    font-size: 13px;
    color: #475569;
    padding: 4px 0;
}

.cfte-gb-acceptance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #0f172a;
    font-weight: 500;
}

.cfte-gb-acceptance input[type="checkbox"],
.cfte-gb-choice input[type="radio"],
.cfte-gb-choice input[type="checkbox"] {
    margin: 0;
}

.cfte-gb-choice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 14px;
    font-size: 13px;
    color: #334155;
}

.cfte-gb-help {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 4px;
}

.cfte-gb-empty {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}

.cfte-gb-captcha {
    margin-top: 12px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
    color: #475569;
    display: inline-block;
}

.cfte-gb-actions {
    margin-top: 16px;
}

.cfte-gb-submit {
    background: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    padding: 9px 20px;
    font-size: 13.5px;
    font-weight: 600;
    opacity: 0.95;
}
