.csb-contact-form-wrap {
    max-width: 640px;
    margin: 0 auto 2rem;
    font-family: inherit;
    color: #33475b;
}

.csb-cf-alert {
    padding: 0.85rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.csb-cf-alert-error {
    background: #fdecea;
    border: 1px solid #f5c2c0;
    color: #842029;
}

.csb-cf-client-error {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 4px;
    background: #fdecea;
    border: 1px solid #f5c2c0;
    color: #842029;
    font-size: 0.95rem;
    line-height: 1.45;
}

.csb-cf-field input.csb-cf-invalid,
.csb-cf-field select.csb-cf-invalid,
.csb-cf-field textarea.csb-cf-invalid {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 1px #c0392b !important;
    background: #fff5f5 !important;
}

.csb-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.csb-cf-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.csb-cf-field label,
.csb-cf-checkboxes legend {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    color: #33475b;
}

.csb-cf-req {
    color: #c0392b;
}

.csb-cf-field input[type="text"],
.csb-cf-field input[type="email"],
.csb-cf-field input[type="tel"],
.csb-cf-field input[type="file"],
.csb-cf-field select,
.csb-cf-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
    border: 1px solid #cbd6e2;
    border-radius: 3px;
    background: #f5f8fa;
    font-size: 1rem;
    line-height: 1.4;
}

.csb-cf-field textarea {
    min-height: 120px;
    resize: vertical;
}

.csb-cf-field input:focus,
.csb-cf-field select:focus,
.csb-cf-field textarea:focus {
    outline: none;
    border-color: #0091ae;
    background: #fff;
    box-shadow: 0 0 0 1px #0091ae;
}

.csb-cf-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.csb-cf-half {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 140px;
}

.csb-cf-third {
    flex: 1 1 calc(33.333% - 0.67rem);
    min-width: 100px;
}

.csb-cf-checkboxes {
    border: none;
    padding: 0;
    margin: 0;
}

.csb-cf-checkboxes legend {
    padding: 0;
    margin-bottom: 0.5rem;
}

.csb-cf-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
    cursor: pointer;
}

.csb-cf-check input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.csb-cf-instructions {
    font-size: 0.92rem;
    color: #516f90;
    background: #f5f8fa;
    border-left: 3px solid #0091ae;
    padding: 0.75rem 1rem;
    border-radius: 0 3px 3px 0;
}

.csb-cf-instructions ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.csb-cf-hint {
    display: block;
    font-size: 0.82rem;
    color: #7c98b6;
    margin-top: 0.25rem;
}

.csb-cf-turnstile {
    margin: 0.25rem 0;
}

.csb-cf-actions {
    margin-top: 0.5rem;
}

.csb-cf-submit {
    appearance: none;
    border: none;
    border-radius: 3px;
    background: #e66a3a;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.csb-cf-submit:hover {
    background: #d45a2e;
}

.csb-cf-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .csb-cf-half,
    .csb-cf-third {
        flex: 1 1 100%;
    }
}
