/* CRM Lead Form — front.css */

.clf-form-wrap { width: 100%; box-sizing: border-box; }

.clf-fields-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

/* Width helpers */
.clf-field-wrap { box-sizing: border-box; }
.clf-width-100  { width: 100%; }
.clf-width-75   { width: calc(75% - 8px); }
.clf-width-66   { width: calc(66.6667% - 8px); }
.clf-width-50   { width: calc(50% - 8px); }
.clf-width-33   { width: calc(33.3333% - 8px); }
.clf-width-25   { width: calc(25% - 8px); }

@media (max-width: 767px) {
    .clf-width-75,
    .clf-width-66,
    .clf-width-50,
    .clf-width-33,
    .clf-width-25 { width: 100%; }
}

/* Labels */
.clf-field-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}
.clf-required { color: #e53935; margin-left: 2px; }

/* Inputs */
.clf-input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    line-height: 1.5;
    color: #1a1a2e;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.clf-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.clf-input.clf-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}
select.clf-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}
textarea.clf-input { resize: vertical; height: 120px; }

/* Radio / Checkbox */
.clf-radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.clf-radio-label,
.clf-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 400;
}
.clf-radio-label input,
.clf-checkbox-label input { width: auto; }

/* Submit */
.clf-submit-wrap { margin-top: 18px; }
.clf-submit {
    display: inline-block;
    padding: 12px 28px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.01em;
}
.clf-submit:hover  { background: #4338ca; }
.clf-submit:active { transform: scale(.98); }
.clf-submit:disabled { opacity: .65; cursor: not-allowed; }

/* Messages */
.clf-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
}
.clf-message.clf-success { background: #d4edda; color: #155724; }
.clf-message.clf-error   { background: #f8d7da; color: #721c24; }


.clf-input[multiple] {
    height: auto;
    min-height: 120px;
}