.nb-device-finder-wrap {
    width: 100%;
}

.nb-device-finder {
    width: 100%;
    padding: 28px 28px 10px;
    background: #f7f7f7;
}

.nb-device-finder__header {
    text-align: center;
    margin-bottom: 26px;
}

.nb-device-finder__title {
    margin: 0 0 6px;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: #1f1f1f;
}

.nb-device-finder__subtitle {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #111;
    text-transform: uppercase;
}

.nb-device-finder__fields {
    display: flex;
    align-items: flex-end;
    gap: 26px;
    width: 100%;
}

.nb-device-finder__field {
    flex: 1 1 0;
    min-width: 0;
}

.nb-device-finder__action {
    flex: 0 0 auto;
    min-width: 150px;
    display: flex;
    align-items: flex-end;
}

.nb-device-finder__field label {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 12px;
    cursor: default;
}

.nbdf-step {
    display: inline-block;
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
    color: #111;
}

.nbdf-label {
    display: inline-block;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 400;
    color: #111;
}

.nbdf-select {
    cursor: pointer;
}

.nbdf-select:disabled {
    cursor: not-allowed;
}

.nbdf-select {
    width: 100%;
    height: 54px;
    padding: 0 38px 0 0;
    border: 0;
    border-bottom: 1px solid #111;
    border-radius: 0;
    background-color: transparent;
    color: #666;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 400;
    box-shadow: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px 14px;
}

.nbdf-select:focus {
    border-bottom-color: #111;
    color: #111;
}

.nbdf-select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.nbdf-search-btn {
    height: 54px;
    padding: 0 0 0 8px;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nbdf-search-btn:after {
    content: "›";
    font-size: 28px;
    line-height: 1;
    font-weight: 300;
    position: relative;
    top: -1px;
}

.nbdf-search-btn:hover,
.nbdf-search-btn:focus {
    background: transparent;
    color: #111;
    opacity: 0.82;
}

.nbdf-search-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.nbdf-search-btn.is-loading {
    opacity: 0.7;
}

.nb-device-finder__message {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    color: #666;
    min-height: 18px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nb-device-finder__message.is-visible {
    opacity: 1;
}

.nb-device-finder__message.is-error {
    color: #b42318;
}

@media (max-width: 1199px) {
    .nb-device-finder__title {
        font-size: 38px;
    }

    .nb-device-finder__fields {
        gap: 20px;
    }

    .nbdf-label {
        font-size: 14px;
    }

    .nbdf-select,
    .nbdf-search-btn {
        height: 50px;
    }
}

@media (max-width: 991px) {
    .nb-device-finder {
        padding: 24px 0 12px;
    }

    .nb-device-finder__title {
        font-size: 32px;
    }

    .nb-device-finder__fields {
        flex-wrap: wrap;
        gap: 18px;
    }

    .nb-device-finder__field {
        flex: 1 1 calc(50% - 9px);
    }

    .nb-device-finder__action {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .nbdf-search-btn {
        padding-left: 0;
    }
}

@media (max-width: 767px) {
    .nb-device-finder {
        padding: 20px 0 12px;
    }

    .nb-device-finder__header {
        margin-bottom: 18px;
    }

    .nb-device-finder__title {
        font-size: 24px;
        letter-spacing: 0.02em;
    }

    .nb-device-finder__subtitle {
        font-size: 12px;
        letter-spacing: 0.06em;
    }

    .nb-device-finder__fields {
        display: block;
    }

    .nb-device-finder__field,
    .nb-device-finder__action {
        width: 100%;
        min-width: 100%;
        margin-bottom: 16px;
    }

    .nb-device-finder__field label {
        margin-bottom: 8px;
    }

    .nbdf-step {
        font-size: 22px;
    }

    .nbdf-label {
        font-size: 14px;
    }

    .nbdf-select,
    .nbdf-search-btn {
        height: 48px;
    }

    .nbdf-search-btn {
        width: 100%;
        justify-content: space-between;
        border-bottom: 1px solid #111;
        padding: 0;
    }
}