.olf-lead-form input[type="email"],
.olf-lead-form select,
.olf-lead-form textarea {
    width: 100%;
    padding: 13px 12px;
    border: 1px solid #d7d3cd;
    border-radius: 10px;
    font: inherit;
    outline: none;
    background: #fff;
}

.olf-lead-form input[type="email"]:focus,
.olf-lead-form select:focus,
.olf-lead-form textarea:focus {
    border-color: var(--orange, #ff7900);
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.12);
}

.olf-lead-form textarea {
    min-height: 110px;
    resize: vertical;
}

.olf-address-group {
    display: grid;
    gap: 13px;
}

.olf-address-heading {
    font-size: 14px;
    font-weight: 900;
    margin-top: 2px;
}

.olf-required-mark {
    color: var(--orange, #ff7900);
}

.olf-autocomplete-wrap {
    position: relative;
}

.olf-autocomplete-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 100;

    max-height: 320px;
    overflow-y: auto;

    background: #ffffff;
    border: 1px solid #d7d3cd;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.olf-autocomplete-results[hidden] {
    display: none;
}

.olf-autocomplete-option {
    width: 100%;
    display: grid;
    gap: 3px;

    padding: 11px 12px;

    border: 0;
    border-bottom: 1px solid #ece9e4;
    background: #ffffff;

    color: #111111;
    font: inherit;
    text-align: left;

    cursor: pointer;
}

.olf-autocomplete-option:last-child {
    border-bottom: 0;
}

.olf-autocomplete-option:hover,
.olf-autocomplete-option:focus {
    background: #fff5ec;
    outline: none;
}

.olf-autocomplete-option:focus {
    box-shadow: inset 3px 0 0 var(--orange, #ff7900);
}

.olf-autocomplete-primary {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.olf-autocomplete-locality-type {
    font-weight: 400;
}

.olf-autocomplete-meta {
    color: #68645f;
    font-size: 12px;
    line-height: 1.4;
}

.olf-autocomplete-message {
    padding: 12px;
    color: #68645f;
    font-size: 12px;
    line-height: 1.4;
}

.olf-address-help,
.olf-address-note {
    margin: -2px 0 0;
    color: #777;
    font-size: 11px;
    line-height: 1.4;
}

.olf-address-no-street {
    margin-top: -3px;
}

.olf-address-no-street label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
}

.olf-address-no-street input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.olf-checkbox-field {
    margin-top: 2px;
}

.olf-lead-form input:disabled {
    cursor: not-allowed;
    background: #f3f1ed;
    color: #777;
}

.olf-form-status {
    padding: 12px;
    border: 1px solid #c8c8c8;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    background: #f5f5f5;
    color: #333;
}

.olf-form-status[hidden] {
    display: none;
}

.olf-form-status[data-state="success"] {
    background: #edf8f1;
    border-color: #b8dfc8;
    color: #0e6d3c;
}

.olf-form-status[data-state="error"] {
    background: #fff2f2;
    border-color: #d99;
    color: #9b1c1c;
}

.olf-field-error {
    margin: 4px 0 0;
    color: #9b1c1c;
    font-size: 12px;
    line-height: 1.4;
}

.olf-checkbox-field:has(.olf-field-error) {
    flex-wrap: wrap;
}

.olf-checkbox-field > .olf-field-error {
    flex-basis: 100%;
}

.olf-lead-form [aria-invalid="true"] {
    border-color: #b42318;
    outline: 1px solid #b42318;
}

.olf-legal-notice {
    font-size: 13px;
    line-height: 1.6;
    margin: 8px 0 20px;
    overflow-wrap: anywhere;
}
.olf-checkbox-field label {
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.olf-checkbox-field a, .olf-legal-notice a {
    text-decoration: underline;
}
.olf-checkbox-field input[type="checkbox"] {
    flex-shrink: 0;
}
.olf-lead-form [data-olf-submit]:disabled {
    opacity: 0.65;
    cursor: default;
}

@media (max-width: 560px) {
    .olf-autocomplete-results {
        max-height: 280px;
    }

    .olf-autocomplete-option {
        padding: 12px;
    }
}
