/* Compact - Minimal Space */
div.cmbsqf-wrap {
    max-width: 450px;
    margin: 20px auto;
    padding: 24px;
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cmbsqf-wrap h2.cmbsqf-title {
    margin-bottom: 6px;
    color: #1f2937;
    font-weight: 600;
    font-size: 18px;
}

.cmbsqf-wrap div.cmbsqf-header {
    color: #6b7280;
    margin-bottom: 18px;
    line-height: 1.4;
    font-size: 14px;
}

/* Reset user-added HTML inside header */
.cmbsqf-wrap .cmbsqf-header * {
    margin: 0;
    padding: 0;
    color: inherit;
    line-height: inherit;
}

.cmbsqf-wrap .cmbsqf-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.cmbsqf-wrap form.cmbsqf-form {
    display: grid;
    gap: 14px;
}

.cmbsqf-wrap .cmbsqf-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #374151;
    font-size: 13px;
}

.cmbsqf-wrap .cmbsqf-required {
    color: #dc2626;
}

.cmbsqf-wrap .cmbsqf-input,
.cmbsqf-wrap .cmbsqf-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #b8b8b8;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    background: #ffffff;
    color: #111827;
    transition: all 0.2s ease;
}

.cmbsqf-wrap .cmbsqf-input:focus,
.cmbsqf-wrap .cmbsqf-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.cmbsqf-wrap .cmbsqf-textarea {
    resize: vertical;
    min-height: 80px;
}

.cmbsqf-wrap button.cmbsqf-button {
    background: #3b82f6;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
}

.cmbsqf-wrap button.cmbsqf-button:hover {
    background: #2563eb;
}

.cmbsqf-wrap div.cmbsqf-message {
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.cmbsqf-wrap .cmbsqf-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.cmbsqf-wrap .cmbsqf-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}
/* Privacy checkbox */
.cmbsqf-wrap .cmbsqf-field--privacy {
    margin-top: 5px;
}

.cmbsqf-wrap .cmbsqf-privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
}

.cmbsqf-wrap .cmbsqf-privacy-checkbox {
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.cmbsqf-wrap .cmbsqf-privacy-text {
    color: inherit;
}

.cmbsqf-wrap .cmbsqf-privacy-text a {
    color: #3b82f6;
    text-decoration: underline;
}
