.exoform-widget {
    --exoform-primary: #1976d2;
    --exoform-text: #333333;
    --exoform-bg: #ffffff;
    --exoform-radius: 8px;
    background: var(--exoform-bg);
    color: var(--exoform-text);
    border-radius: var(--exoform-radius);
    padding: 24px;
    max-width: 640px;
    box-sizing: border-box;
}

.exoform-title {
    margin: 0 0 16px;
    font-size: 1.25rem;
    color: var(--exoform-text);
}

.exoform-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.exoform-field {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
}

.exoform-field--half {
    flex: 1 1 calc(50% - 7px);
}

.exoform-field > label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--exoform-text);
}

.exoform-field input,
.exoform-field textarea,
.exoform-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    background: #fff;
    color: var(--exoform-text);
    font: inherit;
    box-sizing: border-box;
}

.exoform-field input:focus,
.exoform-field textarea:focus,
.exoform-field select:focus {
    outline: none;
    border-color: var(--exoform-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--exoform-primary) 25%, transparent);
}

.exoform-field--checkbox {
    flex-direction: row;
}

.exoform-field--checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.exoform-field--checkbox input {
    width: auto;
}

.exoform-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.exoform-radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

.exoform-help {
    margin-top: 4px;
    font-size: 0.75rem;
    opacity: 0.6;
}

.exoform-req {
    color: #d32f2f;
}

.exoform-consent {
    flex: 1 1 100%;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
}

.exoform-submit-btn {
    flex: 0 0 auto;
    background: var(--exoform-primary);
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 6px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.exoform-submit-btn:hover {
    opacity: 0.9;
}

.exoform-submit-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.exoform-error {
    flex: 1 1 100%;
    color: #d32f2f;
    font-size: 0.85rem;
}

.exoform-success {
    padding: 16px;
    border-radius: var(--exoform-radius);
    background: color-mix(in srgb, var(--exoform-primary) 10%, transparent);
    color: var(--exoform-text);
}

/* Honeypot — visually hidden but present for bots */
.exoform-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.exoform-notice {
    padding: 12px 16px;
    border: 1px dashed rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    background: #fffbe6;
    color: #614700;
    font-size: 0.85rem;
}
