/**
 * PlugZone Company Lookup & Autocomplete Styles
 */

/* Dropdown konténer a cégnév mező alatt */
.company-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #0f1c18;
    border: 1px solid rgba(0, 230, 153, 0.35);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    z-index: 1050;
    max-height: 260px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.company-ac-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease, color 0.15s ease;
}

.company-ac-item:last-child {
    border-bottom: none;
}

.company-ac-item:hover,
.company-ac-item.is-active {
    background: rgba(0, 230, 153, 0.12);
}

.company-ac-title {
    font-weight: 600;
    font-size: 13.5px;
    color: #e6fbf4;
    line-height: 1.35;
    margin-bottom: 3px;
}

.company-ac-sub {
    font-size: 11.5px;
    color: #8da39b;
    line-height: 1.25;
}

/* Keresés gomb az adószám mező mellett */
.field--with-action {
    display: flex !important;
    align-items: stretch;
    position: relative;
    gap: 8px;
}

.field--with-action .form-input,
.field--with-action .pz-input {
    flex: 1 1 auto;
}

.field__btn-lookup,
.btn-company-lookup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #00231b;
    background: linear-gradient(135deg, #00e699 0%, #00b377 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 230, 153, 0.25);
}

.field__btn-lookup:hover,
.btn-company-lookup:hover {
    background: linear-gradient(135deg, #1affaa 0%, #00cc88 100%);
    box-shadow: 0 4px 12px rgba(0, 230, 153, 0.4);
    transform: translateY(-1px);
}

.field__btn-lookup:disabled,
.btn-company-lookup:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Visszajelző státuszcsík */
.company-lookup-status {
    margin-top: 6px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.4;
    animation: fadeInStatus 0.2s ease-in-out;
}

@keyframes fadeInStatus {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.company-lookup-status--info {
    background: rgba(0, 180, 255, 0.12);
    border: 1px solid rgba(0, 180, 255, 0.3);
    color: #66d9ff;
}

.company-lookup-status--success {
    background: rgba(0, 230, 153, 0.12);
    border: 1px solid rgba(0, 230, 153, 0.35);
    color: #55f3be;
}

.company-lookup-status--warning {
    background: rgba(255, 170, 0, 0.12);
    border: 1px solid rgba(255, 170, 0, 0.35);
    color: #ffbb33;
}

.company-lookup-status--error {
    background: rgba(255, 68, 68, 0.12);
    border: 1px solid rgba(255, 68, 68, 0.35);
    color: #ff7777;
}

/* Cégmezők lenyíló animációja a regisztrációs oldalon */
.company-field-group {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
    margin-top: -12px;
}

.company-field-group.is-visible {
    max-height: 500px;
    opacity: 1;
    overflow: visible;
    margin-top: 8px;
    margin-bottom: 14px;
}
