/* Minimal clean UI for Custom Form Manager */
.cfm-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.cfm-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.cfm-form-group {
    margin-bottom: 0;
    box-sizing: border-box;
}

/* Width Classes */
.cfm-col-100 { width: 100%; }
.cfm-col-50  { width: calc(50% - 7.5px); }
.cfm-col-33  { width: calc(33.333% - 10px); }
.cfm-col-25  { width: calc(25% - 11.25px); }

.cfm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.cfm-form-group input,
.cfm-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.cfm-form-group input:focus,
.cfm-form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.cfm-submit-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cfm-submit-btn {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cfm-submit-btn:hover {
    background: #2980b9;
}

.cfm-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.cfm-form-response {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.cfm-form-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cfm-form-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Checkbox UI */
.cfm-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 500 !important;
    padding: 10px 0;
}
.cfm-checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin-top: 4px;
    transform: scale(1.2);
}

/* Signature Pad UI */
.cfm-signature-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.cfm-signature-pad {
    border: 2px dashed #ccc;
    border-radius: 8px;
    background-color: #fafafa;
    cursor: crosshair;
    width: 100%;
    max-width: 100%;
    touch-action: none; /* Important for drawing on mobile */
}

.cfm-signature-clear {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.cfm-signature-clear:hover {
    background: #c0392b;
}

/* Range Slider value output */
.cfm-range-value {
    display: inline-block;
    margin-left: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #3498db;
    min-width: 32px;
    text-align: center;
    background: #eaf4fd;
    border-radius: 4px;
    padding: 2px 8px;
    vertical-align: middle;
}

.cfm-form-group input[type="range"] {
    padding: 0;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #dde4ea;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    width: calc(100% - 56px);
}
.cfm-form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
}

/* Display Text / Plain Text message box */
.cfm-display-text-wrapper {
    background: #f0f6fc;
    border-left: 4px solid #3498db;
    border-radius: 4px;
    padding: 14px 16px;
    width: 100%;
}
.cfm-display-text-title {
    color: #1a3a5c;
    font-size: 14px;
}
.cfm-display-text-content {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
}
.cfm-display-text-content a {
    color: #3498db;
}
