/**
 * Khaime Contact Form — frontend styles.
 *
 * Deliberately light: inputs mostly inherit the active theme so the form
 * doesn't fight the site's design. Only structure, spacing, the required
 * marker, and the notice states are opinionated.
 */

.khcf-root {
    max-width: 640px;
}

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

/* Honeypot: hidden from people without display:none, which some bots detect. */
.khcf-hp {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.khcf-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.khcf-field label {
    font-weight: 600;
    font-size: 0.95em;
}

.khcf-required {
    color: #d63638;
    margin-left: 0.25em;
}

/* Two classes + element outranks themes' input[type="…"] attribute selectors
   (which tie a single-class selector and win on load order) — otherwise the
   theme styles the inputs while we style the textarea and they diverge. */
.khcf-form .khcf-field input,
.khcf-form .khcf-field textarea {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    color: #111827;
    padding: 0.6em 0.75em;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.khcf-form .khcf-field input:focus,
.khcf-form .khcf-field textarea:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12);
}

.khcf-turnstile {
    min-height: 65px;
}

.khcf-notice[hidden] {
    display: none;
}

.khcf-notice--success,
.khcf-notice--error {
    display: block;
    padding: 0.65em 0.9em;
    border-radius: 6px;
    font-size: 0.95em;
}

.khcf-notice--success {
    background: rgba(0, 163, 42, 0.12);
    color: #00631a;
}

.khcf-notice--error {
    background: rgba(214, 54, 56, 0.12);
    color: #a4262c;
}

.khcf-submit {
    align-self: flex-start;
    cursor: pointer;
    font: inherit;
    /* 500, not 600: most themes render their own buttons at medium weight,
       and two different "bolds" side-by-side reads as a mismatch. */
    font-weight: 500;
    padding: 0.65em 1.6em;
    border: 0;
    border-radius: 6px;
    background: #1d2327;
    color: #ffffff;
    transition: opacity 0.15s ease;
}

.khcf-submit:hover {
    opacity: 0.85;
}

.khcf-submit[disabled] {
    opacity: 0.6;
    cursor: default;
}
