.nts-wrapper {
    width: 100%;
    max-width: 1024px;
    /* margin: 0 auto; */
    font-family: Arial, Helvetica, sans-serif;
}

.nts-search-box {
    background: #ffffff;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.nts-search-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px 200px auto;
    gap: 12px;
    align-items: end;
}

.nts-field {
    min-width: 0;
}

.nts-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin: 0 0 6px 4px;
}

.nts-input-box,
.nts-select-box {
    height: 46px;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 16px;
    transition: all 0.2s ease;
}

.nts-input-box:focus-within {
    border-color: #2563eb;
    background: #ffffff;
}

.nts-input-box:hover,
.nts-select-box:hover {
    border-color: #cbd5e1;
}

.nts-icon {
    color: #94a3b8;
    margin-right: 8px;
    flex-shrink: 0;
}

.nts-input-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.nts-input-box input::placeholder {
    color: #94a3b8;
}

.nts-select-box {
    position: relative;
    padding: 0;
}

.nts-select-box select {
    width: 100%;
    height: 100%;
    padding: 0 40px 0 16px;
    border: none;
    outline: none;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    box-shadow: none;
    margin: 0;
}

.nts-select-icon {
    position: absolute;
    right: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.nts-button-wrap {
    min-width: 0;
}

.nts-search-button {
    height: 46px;
    padding: 0 32px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
}

.nts-search-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.nts-search-button:active {
    transform: translateY(0);
}

.nts-search-button svg {
    flex-shrink: 0;
}

.nts-popular-search {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.nts-popular-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.nts-popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nts-tag {
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nts-tag:hover {
    border-color: #93c5fd;
    color: #2563eb;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

@media (max-width: 992px) {
    .nts-search-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nts-keyword-field {
        grid-column: span 2;
    }

    .nts-button-wrap {
        grid-column: span 2;
    }

    .nts-search-button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .nts-search-box {
        padding: 10px;
        border-radius: 14px;
    }

    .nts-search-grid {
        grid-template-columns: 1fr;
    }

    .nts-keyword-field,
    .nts-button-wrap {
        grid-column: span 1;
    }

    .nts-popular-search {
        align-items: flex-start;
        gap: 10px;
    }

    .nts-popular-title {
        width: 100%;
    }

    .nts-tag {
        font-size: 12px;
    }
}