/* ============================================================
   Contact form
   ============================================================ */
.clcf-wrap { font-family: var(--font-body); width: 100%; }
.clcf-row { display: flex; gap: 20px; margin-bottom: 16px; }
.clcf-field { flex: 1; display: flex; flex-direction: column; }
.clcf-field.full { flex: 1 1 100%; }
.clcf-field input, .clcf-field textarea {
    font-family: var(--font-body); font-size: 16px;
    color: rgba(0,0,0,0.8); background: #fff;
    border: 1px solid rgba(0,0,0,0.18); border-radius: 5px;
    padding: 14px 18px; width: 100%; box-sizing: border-box;
    outline: none; transition: border-color 0.2s;
}
.clcf-field input:focus, .clcf-field textarea:focus { border-color: var(--color-text-primary); }
.clcf-field textarea { min-height: 130px; resize: vertical; }
.clcf-field input::placeholder, .clcf-field textarea::placeholder { color: rgba(0,0,0,0.4); }

.clcf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.clcf-consent {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 8px 0 16px; font-size: 14px; line-height: 1.5;
    color: var(--color-text-muted);
}
.clcf-consent input[type="checkbox"] {
    width: 18px; height: 18px; min-width: 18px; margin-top: 2px;
    cursor: pointer; accent-color: var(--color-text-primary);
}
.clcf-consent a { color: inherit; text-decoration: underline; }

.clcf-submit {
    font-family: var(--font-heading); font-size: 16px; font-weight: 500;
    color: var(--color-button-text); background: var(--color-button-bg);
    border: none; border-radius: var(--button-radius);
    padding: 14px 36px; cursor: pointer;
    transition: opacity 0.2s;
}
.clcf-submit:hover { opacity: 0.9; }
.clcf-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.clcf-error { color: #c0392b; font-size: 14px; margin-top: 12px; display: none; }

.clcf-toast {
    display: flex; align-items: center; gap: 10px;
    margin-top: 0; padding: 0 16px; max-height: 0; overflow: hidden;
    background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0;
    border-radius: 6px; font-size: 14px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, max-height 0.3s, margin-top 0.3s, padding 0.3s, visibility 0s linear 0.3s;
}
.clcf-toast.clcf-toast-visible {
    opacity: 1; visibility: visible; max-height: 60px;
    margin-top: 12px; padding: 12px 16px;
    transition: opacity 0.3s, max-height 0.3s, margin-top 0.3s, padding 0.3s;
}

/* .clcf-light = form is embedded on a LIGHT page background (e.g. inside a
 * blog post body, not inside the dark .contact-section wrapper). The form
 * itself uses dark text + dark button to contrast with the light page. */
.clcf-wrap.clcf-light .clcf-consent { color: rgba(0,0,0,0.6); }
.clcf-wrap.clcf-light .clcf-consent a { color: rgba(0,0,0,0.7); text-decoration: underline; }
.clcf-wrap.clcf-light .clcf-consent a:hover { color: rgba(0,0,0,0.95); }
.clcf-wrap.clcf-light .clcf-consent input[type="checkbox"] { accent-color: var(--color-text-primary); }
.clcf-wrap.clcf-light .clcf-submit { background: var(--color-button-bg); color: var(--color-button-text); }
.clcf-wrap.clcf-light .clcf-submit:hover { opacity: 0.9; }
.clcf-wrap.clcf-light .clcf-field input,
.clcf-wrap.clcf-light .clcf-field textarea {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.18);
    color: rgba(0,0,0,0.85);
}
.clcf-wrap.clcf-light .clcf-field input::placeholder,
.clcf-wrap.clcf-light .clcf-field textarea::placeholder { color: rgba(0,0,0,0.45); }

@media (max-width: 600px) {
    .clcf-row { flex-direction: column; gap: 0; margin-bottom: 0; }
    .clcf-field { margin-bottom: 16px; }
}
