.ppp-company-autocomplete-wrap {
    position: relative;
}

.ppp-company-native-hidden {
    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;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ppp-company-editor {
    outline: none;
    box-sizing: border-box;
}

.ppp-company-editor:empty::before {
    content: attr(data-placeholder);
    color: rgba(31, 41, 51, .42);
    pointer-events: none;
}

.ppp-company-editor:focus {
    outline: none;
}

.ppp-company-results {
    position: absolute;
    z-index: 99999;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 340px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid rgba(18, 31, 48, .10);
    border-radius: 14px;
    background: #fff;
    box-shadow:
        0 18px 45px rgba(18, 31, 48, .14),
        0 2px 8px rgba(18, 31, 48, .06);
}

.ppp-company-result,
.ppp-company-result:visited,
.ppp-company-result:hover,
.ppp-company-result:focus,
.ppp-company-result:active,
.ppp-company-result[aria-selected="true"] {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 0 !important;
    border-radius: 10px;
    color: #1f2933 !important;
    background: #fff !important;
    background-image: none !important;
    text-align: left;
    cursor: pointer;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.ppp-company-result + .ppp-company-result {
    margin-top: 2px;
}

.ppp-company-result:hover,
.ppp-company-result:focus {
    background: #f3f5f7 !important;
}

.ppp-company-result strong,
.ppp-company-result span {
    display: block;
    color: inherit !important;
}

.ppp-company-result strong {
    font-size: .96em;
    font-weight: 600;
    line-height: 1.35;
}

.ppp-company-result span {
    margin-top: 3px;
    font-size: .80em;
    line-height: 1.3;
    opacity: .58;
}

.ppp-company-message {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: .9em;
    opacity: .75;
}

.ppp-company-status {
    min-height: 0;
    margin-top: 5px;
    font-size: .78em;
}

.ppp-company-autocomplete-field.is-valid .ppp-company-editor {
    /* Le style du champ reste identique aux autres champs Gravity Forms. */
}

.ppp-company-autocomplete-field.is-valid .ppp-company-status {
    color: #2e7d32;
}


/* Sécurité : le champ doit toujours remplir toute sa colonne Gravity Forms. */
#field_3_6 .ginput_container,
#field_3_6 .ppp-company-autocomplete-wrap,
#field_3_6 .ppp-company-editor {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

#field_3_6 .ppp-company-editor {
    display: block !important;
}


/* Liste de résultats plus lisible et mieux séparée */
.ppp-company-results {
    padding: 8px !important;
}

.ppp-company-result {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(17, 35, 55, .10) !important;
}

.ppp-company-result + .ppp-company-result {
    margin-top: 8px !important;
}

.ppp-company-result__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 13px 14px;
    box-sizing: border-box;
}

.ppp-company-result:hover,
.ppp-company-result:focus {
    background: #f7f3ef !important;
    border-color: rgba(224, 109, 59, .22) !important;
}

.ppp-company-result__text {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
}

.ppp-company-result__name {
    display: block;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.32;
    color: #1f2933 !important;
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
}

.ppp-company-result__meta {
    display: inline-flex;
    align-items: center;
    margin-top: 7px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(17, 35, 55, .06);
    color: rgba(31, 41, 51, .72) !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: normal;
}

.ppp-company-result__chevron {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1;
    color: rgba(224, 109, 59, .9);
    transform: translateX(0);
    transition: transform .16s ease;
}

.ppp-company-result:hover .ppp-company-result__chevron,
.ppp-company-result:focus .ppp-company-result__chevron {
    transform: translateX(2px);
}


/* v1.1.8 – liste ultra lisible */
.ppp-company-results {
    padding: 6px !important;
    border: 1px solid rgba(17, 35, 55, .12) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 34px rgba(17, 35, 55, .12) !important;
    max-height: 300px;
    overflow-y: auto;
}

.ppp-company-result,
.ppp-company-result:visited,
.ppp-company-result:hover,
.ppp-company-result:focus,
.ppp-company-result:active {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #1e2430 !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.ppp-company-result + .ppp-company-result {
    margin-top: 4px !important;
}

.ppp-company-result__inner {
    display: block !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
}

.ppp-company-result:hover .ppp-company-result__inner,
.ppp-company-result:focus .ppp-company-result__inner {
    background: #f8f2ec !important;
}

.ppp-company-result__name {
    display: block !important;
    margin: 0 !important;
    color: #1f2430 !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
}

.ppp-company-result__meta {
    display: block !important;
    margin-top: 4px !important;
    color: rgba(31, 36, 48, .68) !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
}

.ppp-company-result__meta::before {
    content: "• ";
    color: #e06d3b;
}

.ppp-company-result__chevron {
    display: none !important;
}

/* sécurité contre les styles de thème qui mettent tout en uppercase / minuscule / trop petit */
.ppp-company-results *,
.ppp-company-results strong,
.ppp-company-results span,
.ppp-company-results button {
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.ppp-company-message {
    padding: 12px 14px !important;
    color: rgba(31, 36, 48, .75) !important;
    font-size: 13px !important;
}


