.lthfw-widget,
.lthfw-widget * {
    box-sizing: border-box;
}

.lthfw-widget {
    --lthfw-max-width: 720px;
    --lthfw-padding: 24px;
    --lthfw-gap: 16px;
    --lthfw-font-family: inherit;
    --lthfw-font-size: 16px;
    --lthfw-form-bg: #ffffff;
    --lthfw-text: #1f2933;
    --lthfw-label: #1f2933;
    --lthfw-input-bg: #ffffff;
    --lthfw-input-text: #1f2933;
    --lthfw-input-border: #c7ced6;
    --lthfw-input-focus: #d63638;
    --lthfw-form-border: #e5e7eb;
    --lthfw-form-radius: 8px;
    --lthfw-input-radius: 6px;
    --lthfw-button-bg: #d63638;
    --lthfw-button-text: #ffffff;
    --lthfw-button-hover-bg: #b8292b;
    --lthfw-button-radius: 6px;
    --lthfw-success: #0f766e;
    --lthfw-error: #b42318;
    width: 100%;
    max-width: var(--lthfw-max-width);
    margin: 0 auto;
    padding: var(--lthfw-padding);
    color: var(--lthfw-text);
    font-family: var(--lthfw-font-family);
    font-size: var(--lthfw-font-size);
    background: var(--lthfw-form-bg);
    border: 1px solid var(--lthfw-form-border);
    border-radius: var(--lthfw-form-radius);
}

.lthfw-entry {
    display: flex;
    flex-direction: column;
    gap: var(--lthfw-gap);
    margin: 0;
}

.lthfw-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: var(--lthfw-gap);
}

.lthfw-grid > .lthfw-field {
    grid-column: span var(--lthfw-field-span, 12) !important;
    min-width: 0;
}

@media (max-width: 640px) {
    .lthfw-grid > .lthfw-field {
        grid-column: 1 / -1 !important;
    }
}

.lthfw-label {
    display: block;
    margin: 0 0 6px;
    color: var(--lthfw-label);
    font-size: 0.92em;
    font-weight: 600;
    line-height: 1.3;
}

.lthfw-field input,
.lthfw-field select {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 11px 13px;
    color: var(--lthfw-input-text);
    font: inherit;
    line-height: 1.35;
    background: var(--lthfw-input-bg);
    border: 1px solid var(--lthfw-input-border);
    border-radius: var(--lthfw-input-radius);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.lthfw-field select {
    appearance: auto;
}

.lthfw-field input::placeholder {
    color: var(--lthfw-input-text);
    opacity: 0.58;
}

.lthfw-field input:focus,
.lthfw-field select:focus {
    border-color: var(--lthfw-input-focus);
    box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.18);
}

.lthfw-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--lthfw-text);
    font-size: 0.92em;
    line-height: 1.45;
    cursor: pointer;
}

.lthfw-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 2px 0 0;
    accent-color: var(--lthfw-button-bg);
}

.lthfw-consent span {
    min-width: 0;
}

.lthfw-actions {
    display: flex;
    justify-content: flex-start;
}

.lthfw-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    color: var(--lthfw-button-text);
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    background: var(--lthfw-button-bg);
    border: 0;
    border-radius: var(--lthfw-button-radius);
    transition: background-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.lthfw-widget.has-full-button .lthfw-send {
    width: 100%;
}

.lthfw-send:hover,
.lthfw-send:focus-visible {
    color: var(--lthfw-button-text);
    background: var(--lthfw-button-hover-bg);
}

.lthfw-send:active {
    transform: translateY(1px);
}

.lthfw-send[disabled] {
    cursor: wait;
    opacity: 0.7;
}

.lthfw-send-loading {
    display: none;
}

.lthfw-entry.is-loading .lthfw-send-text {
    display: none;
}

.lthfw-entry.is-loading .lthfw-send-loading {
    display: inline;
}

.lthfw-message {
    min-height: 1.35em;
    margin: 0;
    font-size: 0.95em;
    line-height: 1.4;
}

.lthfw-message.is-success {
    color: var(--lthfw-success);
}

.lthfw-message.is-error {
    color: var(--lthfw-error);
}

.lthfw-honeypot,
.lthfw-collector-guard {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.lthfw-widget .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
